Changeset 202746 in webkit
- Timestamp:
- Jul 1, 2016 12:07:20 PM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r202728 r202746 1 2016-07-01 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] Get rid of WK_NULLABLE_SPECIFIER now that all supported compilers understand _Nullable 4 https://bugs.webkit.org/show_bug.cgi?id=159361 5 6 Reviewed by Anders Carlsson. 7 8 * Shared/API/Cocoa/WKFoundation.h: 9 * UIProcess/API/Cocoa/WKNavigationDelegate.h: 10 * UIProcess/API/Cocoa/WKUIDelegate.h: 11 * UIProcess/API/Cocoa/WKWebView.h: 12 * mac/postprocess-framework-headers.sh: 13 1 14 2016-07-01 Youenn Fablet <youennf@gmail.com> 2 15 -
trunk/Source/WebKit2/Shared/API/Cocoa/WKFoundation.h
r200874 r202746 65 65 #endif 66 66 67 #ifdef __OBJC__68 #define WK_NULLABLE_SPECIFIER __nullable69 67 #endif 70 68 71 #endif72 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationDelegate.h
r195922 r202746 138 138 @discussion If you do not implement this method, the web view will respond to the authentication challenge with the NSURLSessionAuthChallengeRejectProtectionSpace disposition. 139 139 */ 140 - (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * WK_NULLABLE_SPECIFIERcredential))completionHandler;140 - (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler; 141 141 142 142 /*! @abstract Invoked when the web view's web content process is terminated. -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegate.h
r199558 r202746 116 116 If you do not implement this method, the web view will behave as if the user selected the Cancel button. 117 117 */ 118 - (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(nullable NSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString * WK_NULLABLE_SPECIFIERresult))completionHandler;118 - (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(nullable NSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString * _Nullable result))completionHandler; 119 119 120 120 #if TARGET_OS_IPHONE … … 165 165 If you do not implement this method, the web view will behave as if the user selected the Cancel button. 166 166 */ 167 - (void)webView:(WKWebView *)webView runOpenPanelWithParameters:(WKOpenPanelParameters *)parameters initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(WK_ARRAY(NSURL *) * WK_NULLABLE_SPECIFIERURLs))completionHandler WK_AVAILABLE(WK_MAC_TBA, NA);167 - (void)webView:(WKWebView *)webView runOpenPanelWithParameters:(WKOpenPanelParameters *)parameters initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(WK_ARRAY(NSURL *) * _Nullable URLs))completionHandler WK_AVAILABLE(WK_MAC_TBA, NA); 168 168 169 169 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h
r200866 r202746 219 219 @discussion The completionHandler is passed the result of the script evaluation or an error. 220 220 */ 221 - (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^ WK_NULLABLE_SPECIFIER)(WK_NULLABLE_SPECIFIER id, NSError * WK_NULLABLE_SPECIFIERerror))completionHandler;221 - (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^ _Nullable)(_Nullable id, NSError * _Nullable error))completionHandler; 222 222 223 223 /*! @abstract A Boolean value indicating whether horizontal swipe gestures -
trunk/Source/WebKit2/mac/postprocess-framework-headers.sh
r200891 r202746 62 62 -e 's/WK_DICTIONARY\(([^\)]+)\)/NSDictionary<\1>/g' 63 63 -e 's/WK_SET\(([^\)]+)\)/NSSet<\1>/g' 64 -e s/WK_NULLABLE_SPECIFIER/_Nullable/g65 64 ) 66 65
Note: See TracChangeset
for help on using the changeset viewer.