Changeset 195922 in webkit
- Timestamp:
- Jan 30, 2016, 8:11:36 PM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r195920 r195922 1 2016-01-30 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] Get rid of many WK_ macros for nullability 4 https://bugs.webkit.org/show_bug.cgi?id=153718 5 6 Sam Weinig reviewed an earlier version of this change, and Simon Fraser rubber-stamped this version. 7 8 * Shared/API/Cocoa/WKFoundation.h: Removed definitions of WK_ASSUME_NONNULL_{BEGIN, END}, 9 WK_NULLABLE, WK_NULL_UNSPECIFIED, and WK_NULLABLE_PROPERTY. Removed the 10 !__has_feature(assume_nonnull) case. 11 12 * mac/postprocess-framework-headers.sh: Removed rules for rewriting the above macros. Also 13 chanegd to rewrite WK_NULLABLE_SPECIFIER to the modern _Nullable instead of __nullable. 14 15 Replaced instances of the above macros with their expansions. 16 17 * UIProcess/API/Cocoa/WKBackForwardList.h: 18 * UIProcess/API/Cocoa/WKBackForwardListItem.h: 19 * UIProcess/API/Cocoa/WKError.h: 20 * UIProcess/API/Cocoa/WKFrameInfo.h: 21 * UIProcess/API/Cocoa/WKNavigationAction.h: 22 * UIProcess/API/Cocoa/WKNavigationDelegate.h: 23 * UIProcess/API/Cocoa/WKNavigationResponse.h: 24 * UIProcess/API/Cocoa/WKScriptMessage.h: 25 * UIProcess/API/Cocoa/WKScriptMessageHandler.h: 26 * UIProcess/API/Cocoa/WKSecurityOrigin.h: 27 * UIProcess/API/Cocoa/WKUIDelegate.h: 28 * UIProcess/API/Cocoa/WKUserContentController.h: 29 * UIProcess/API/Cocoa/WKUserScript.h: 30 * UIProcess/API/Cocoa/WKWebView.h: 31 * UIProcess/API/Cocoa/WKWebViewConfiguration.h: 32 * UIProcess/API/Cocoa/WKWebsiteDataRecord.h: 33 * UIProcess/API/Cocoa/WKWebsiteDataStore.h: 34 * UIProcess/API/Cocoa/WKWindowFeatures.h: 35 * UIProcess/API/Cocoa/_WKContextMenuElementInfo.h: 36 * UIProcess/API/Cocoa/_WKElementInfo.h: 37 * UIProcess/API/Cocoa/_WKPreviewElementInfo.h: 38 * UIProcess/API/Cocoa/_WKUserStyleSheet.h: 39 1 40 2016-01-30 Dan Bernstein <mitz@apple.com> 2 41 -
trunk/Source/WebKit2/Shared/API/Cocoa/WKFoundation.h
r195920 r195922 83 83 #endif 84 84 85 #if __has_feature(assume_nonnull)86 87 #ifdef NS_ASSUME_NONNULL_BEGIN88 #define WK_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN89 #else90 #define WK_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")91 #endif92 93 #ifdef NS_ASSUME_NONNULL_END94 #define WK_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END95 #else96 #define WK_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")97 #endif98 99 #define WK_NULLABLE nullable100 #define WK_NULL_UNSPECIFIED null_unspecified101 85 #define WK_NULLABLE_SPECIFIER __nullable 102 #define WK_NULLABLE_PROPERTY nullable,103 104 #else105 106 #define WK_ASSUME_NONNULL_BEGIN107 #define WK_ASSUME_NONNULL_END108 109 #define WK_NULLABLE110 #define WK_NULL_UNSPECIFIED111 #define WK_NULLABLE_SPECIFIER112 #define WK_NULLABLE_PROPERTY113 86 114 87 #endif … … 116 89 #endif 117 90 118 #endif119 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBackForwardList.h
r195920 r195922 33 33 visited in a web view that can be reached by going back or forward. 34 34 */ 35 WK_ASSUME_NONNULL_BEGIN35 NS_ASSUME_NONNULL_BEGIN 36 36 37 37 WK_CLASS_AVAILABLE(10_10, 8_0) … … 40 40 /*! @abstract The current item. 41 41 */ 42 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly, strong) WKBackForwardListItem *currentItem;42 @property (nullable, nonatomic, readonly, strong) WKBackForwardListItem *currentItem; 43 43 44 44 /*! @abstract The item immediately preceding the current item, or nil 45 45 if there isn't one. 46 46 */ 47 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly, strong) WKBackForwardListItem *backItem;47 @property (nullable, nonatomic, readonly, strong) WKBackForwardListItem *backItem; 48 48 49 49 /*! @abstract The item immediately following the current item, or nil 50 50 if there isn't one. 51 51 */ 52 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly, strong) WKBackForwardListItem *forwardItem;52 @property (nullable, nonatomic, readonly, strong) WKBackForwardListItem *forwardItem; 53 53 54 54 /*! @abstract Returns the item at a specified distance from the current … … 60 60 if the index parameter exceeds the limits of the list. 61 61 */ 62 - ( WK_NULLABLEWKBackForwardListItem *)itemAtIndex:(NSInteger)index;62 - (nullable WKBackForwardListItem *)itemAtIndex:(NSInteger)index; 63 63 64 64 /*! @abstract The portion of the list preceding the current item. … … 76 76 @end 77 77 78 WK_ASSUME_NONNULL_END78 NS_ASSUME_NONNULL_END 79 79 80 80 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBackForwardListItem.h
r195920 r195922 32 32 /*! A WKBackForwardListItem object represents a webpage in the back-forward list of a web view. 33 33 */ 34 WK_ASSUME_NONNULL_BEGIN34 NS_ASSUME_NONNULL_BEGIN 35 35 36 36 WK_CLASS_AVAILABLE(10_10, 8_0) … … 43 43 /*! @abstract The title of the webpage represented by this item. 44 44 */ 45 @property ( WK_NULLABLE_PROPERTYreadonly, copy) NSString *title;45 @property (nullable, readonly, copy) NSString *title; 46 46 47 47 /*! @abstract The URL of the initial request that created this item. … … 51 51 @end 52 52 53 WK_ASSUME_NONNULL_END53 NS_ASSUME_NONNULL_END 54 54 55 55 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKError.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 /*! @constant WKErrorDomain Indicates a WebKit error. */ … … 51 51 } WK_ENUM_AVAILABLE(10_10, 8_0); 52 52 53 WK_ASSUME_NONNULL_END53 NS_ASSUME_NONNULL_END 54 54 55 55 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKFrameInfo.h
r195920 r195922 36 36 calls. 37 37 */ 38 WK_ASSUME_NONNULL_BEGIN38 NS_ASSUME_NONNULL_BEGIN 39 39 40 40 WK_CLASS_AVAILABLE(10_10, 8_0) … … 56 56 @end 57 57 58 WK_ASSUME_NONNULL_END58 NS_ASSUME_NONNULL_END 59 59 60 60 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationAction.h
r195920 r195922 34 34 #endif 35 35 36 WK_ASSUME_NONNULL_BEGIN36 NS_ASSUME_NONNULL_BEGIN 37 37 38 38 @class WKFrameInfo; … … 68 68 /*! @abstract The target frame, or nil if this is a new window navigation. 69 69 */ 70 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly, copy) WKFrameInfo *targetFrame;70 @property (nullable, nonatomic, readonly, copy) WKFrameInfo *targetFrame; 71 71 72 72 /*! @abstract The type of action that triggered the navigation. … … 93 93 @end 94 94 95 WK_ASSUME_NONNULL_END95 NS_ASSUME_NONNULL_END 96 96 97 97 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationDelegate.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKNavigation; … … 91 91 @param navigation The navigation. 92 92 */ 93 - (void)webView:(WKWebView *)webView didStartProvisionalNavigation:( WK_NULL_UNSPECIFIEDWKNavigation *)navigation;93 - (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(null_unspecified WKNavigation *)navigation; 94 94 95 95 /*! @abstract Invoked when a server redirect is received for the main … … 98 98 @param navigation The navigation. 99 99 */ 100 - (void)webView:(WKWebView *)webView didReceiveServerRedirectForProvisionalNavigation:( WK_NULL_UNSPECIFIEDWKNavigation *)navigation;100 - (void)webView:(WKWebView *)webView didReceiveServerRedirectForProvisionalNavigation:(null_unspecified WKNavigation *)navigation; 101 101 102 102 /*! @abstract Invoked when an error occurs while starting to load data for … … 106 106 @param error The error that occurred. 107 107 */ 108 - (void)webView:(WKWebView *)webView didFailProvisionalNavigation:( WK_NULL_UNSPECIFIEDWKNavigation *)navigation withError:(NSError *)error;108 - (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(null_unspecified WKNavigation *)navigation withError:(NSError *)error; 109 109 110 110 /*! @abstract Invoked when content starts arriving for the main frame. … … 112 112 @param navigation The navigation. 113 113 */ 114 - (void)webView:(WKWebView *)webView didCommitNavigation:( WK_NULL_UNSPECIFIEDWKNavigation *)navigation;114 - (void)webView:(WKWebView *)webView didCommitNavigation:(null_unspecified WKNavigation *)navigation; 115 115 116 116 /*! @abstract Invoked when a main frame navigation completes. … … 118 118 @param navigation The navigation. 119 119 */ 120 - (void)webView:(WKWebView *)webView didFinishNavigation:( WK_NULL_UNSPECIFIEDWKNavigation *)navigation;120 - (void)webView:(WKWebView *)webView didFinishNavigation:(null_unspecified WKNavigation *)navigation; 121 121 122 122 /*! @abstract Invoked when an error occurs during a committed main frame … … 126 126 @param error The error that occurred. 127 127 */ 128 - (void)webView:(WKWebView *)webView didFailNavigation:( WK_NULL_UNSPECIFIEDWKNavigation *)navigation withError:(NSError *)error;128 - (void)webView:(WKWebView *)webView didFailNavigation:(null_unspecified WKNavigation *)navigation withError:(NSError *)error; 129 129 130 130 /*! @abstract Invoked when the web view needs to respond to an authentication challenge. … … 147 147 @end 148 148 149 WK_ASSUME_NONNULL_END149 NS_ASSUME_NONNULL_END 150 150 151 151 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationResponse.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKFrameInfo; … … 54 54 @end 55 55 56 WK_ASSUME_NONNULL_END56 NS_ASSUME_NONNULL_END 57 57 58 58 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKScriptMessage.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKFrameInfo; … … 48 48 49 49 /*! @abstract The web view sending the message. */ 50 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly, weak) WKWebView *webView;50 @property (nullable, nonatomic, readonly, weak) WKWebView *webView; 51 51 52 52 /*! @abstract The frame sending the message. */ … … 59 59 @end 60 60 61 WK_ASSUME_NONNULL_END61 NS_ASSUME_NONNULL_END 62 62 63 63 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKScriptMessageHandler.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKScriptMessage; … … 51 51 @end 52 52 53 WK_ASSUME_NONNULL_END53 NS_ASSUME_NONNULL_END 54 54 55 55 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKSecurityOrigin.h
r195920 r195922 35 35 calls. 36 36 */ 37 WK_ASSUME_NONNULL_BEGIN37 NS_ASSUME_NONNULL_BEGIN 38 38 39 39 WK_CLASS_AVAILABLE(10_11, 9_0) … … 56 56 @end 57 57 58 WK_ASSUME_NONNULL_END58 NS_ASSUME_NONNULL_END 59 59 60 60 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegate.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKFrameInfo; … … 56 56 If you do not implement this method, the web view will cancel the navigation. 57 57 */ 58 - ( WK_NULLABLEWKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures;58 - (nullable WKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures; 59 59 60 60 /*! @abstract Notifies your app that the DOM window object's close() method completed successfully. … … 113 113 If you do not implement this method, the web view will behave as if the user selected the Cancel button. 114 114 */ 115 - (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:( WK_NULLABLENSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString * WK_NULLABLE_SPECIFIER result))completionHandler;115 - (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(nullable NSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString * WK_NULLABLE_SPECIFIER result))completionHandler; 116 116 117 117 @end 118 118 119 WK_ASSUME_NONNULL_END119 NS_ASSUME_NONNULL_END 120 120 121 121 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUserContentController.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKUserScript; … … 73 73 @end 74 74 75 WK_ASSUME_NONNULL_END75 NS_ASSUME_NONNULL_END 76 76 77 77 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUserScript.h
r195920 r195922 35 35 @constant WKUserScriptInjectionTimeAtDocumentEnd Inject the script after the document has finished loading, but before any subresources may have finished loading. 36 36 */ 37 WK_ASSUME_NONNULL_BEGIN37 NS_ASSUME_NONNULL_BEGIN 38 38 39 39 typedef NS_ENUM(NSInteger, WKUserScriptInjectionTime) { … … 65 65 @end 66 66 67 WK_ASSUME_NONNULL_END67 NS_ASSUME_NONNULL_END 68 68 69 69 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h
r195920 r195922 34 34 #endif 35 35 36 WK_ASSUME_NONNULL_BEGIN36 NS_ASSUME_NONNULL_BEGIN 37 37 38 38 @class WKBackForwardList; … … 62 62 63 63 /*! @abstract The web view's navigation delegate. */ 64 @property ( WK_NULLABLE_PROPERTYnonatomic, weak) id <WKNavigationDelegate> navigationDelegate;64 @property (nullable, nonatomic, weak) id <WKNavigationDelegate> navigationDelegate; 65 65 66 66 /*! @abstract The web view's user interface delegate. */ 67 @property ( WK_NULLABLE_PROPERTYnonatomic, weak) id <WKUIDelegate> UIDelegate;67 @property (nullable, nonatomic, weak) id <WKUIDelegate> UIDelegate; 68 68 69 69 /*! @abstract The web view's back-forward list. */ … … 90 90 @result A new navigation for the given request. 91 91 */ 92 - ( WK_NULLABLEWKNavigation *)loadRequest:(NSURLRequest *)request;92 - (nullable WKNavigation *)loadRequest:(NSURLRequest *)request; 93 93 94 94 /*! @abstract Navigates to the requested file URL on the filesystem. … … 99 99 @result A new navigation for the given file URL. 100 100 */ 101 - ( WK_NULLABLEWKNavigation *)loadFileURL:(NSURL *)URL allowingReadAccessToURL:(NSURL *)readAccessURL WK_AVAILABLE(10_11, 9_0);101 - (nullable WKNavigation *)loadFileURL:(NSURL *)URL allowingReadAccessToURL:(NSURL *)readAccessURL WK_AVAILABLE(10_11, 9_0); 102 102 103 103 /*! @abstract Sets the webpage contents and base URL. … … 106 106 @result A new navigation. 107 107 */ 108 - ( WK_NULLABLE WKNavigation *)loadHTMLString:(NSString *)string baseURL:(WK_NULLABLENSURL *)baseURL;108 - (nullable WKNavigation *)loadHTMLString:(NSString *)string baseURL:(nullable NSURL *)baseURL; 109 109 110 110 /*! @abstract Sets the webpage contents and base URL. … … 115 115 @result A new navigation. 116 116 */ 117 - ( WK_NULLABLEWKNavigation *)loadData:(NSData *)data MIMEType:(NSString *)MIMEType characterEncodingName:(NSString *)characterEncodingName baseURL:(NSURL *)baseURL WK_AVAILABLE(10_11, 9_0);117 - (nullable WKNavigation *)loadData:(NSData *)data MIMEType:(NSString *)MIMEType characterEncodingName:(NSString *)characterEncodingName baseURL:(NSURL *)baseURL WK_AVAILABLE(10_11, 9_0); 118 118 119 119 /*! @abstract Navigates to an item from the back-forward list and sets it … … 125 125 @seealso backForwardList 126 126 */ 127 - ( WK_NULLABLEWKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item;127 - (nullable WKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item; 128 128 129 129 /*! @abstract The page title. … … 131 131 for this property. 132 132 */ 133 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly, copy) NSString *title;133 @property (nullable, nonatomic, readonly, copy) NSString *title; 134 134 135 135 /*! @abstract The active URL. … … 139 139 property. 140 140 */ 141 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly, copy) NSURL *URL;141 @property (nullable, nonatomic, readonly, copy) NSURL *URL; 142 142 143 143 /*! @abstract A Boolean value indicating whether the view is currently … … 192 192 item in the back-forward list. 193 193 */ 194 - ( WK_NULLABLEWKNavigation *)goBack;194 - (nullable WKNavigation *)goBack; 195 195 196 196 /*! @abstract Navigates to the forward item in the back-forward list. … … 198 198 forward item in the back-forward list. 199 199 */ 200 - ( WK_NULLABLEWKNavigation *)goForward;200 - (nullable WKNavigation *)goForward; 201 201 202 202 /*! @abstract Reloads the current page. 203 203 @result A new navigation representing the reload. 204 204 */ 205 - ( WK_NULLABLEWKNavigation *)reload;205 - (nullable WKNavigation *)reload; 206 206 207 207 /*! @abstract Reloads the current page, performing end-to-end revalidation … … 209 209 @result A new navigation representing the reload. 210 210 */ 211 - ( WK_NULLABLEWKNavigation *)reloadFromOrigin;211 - (nullable WKNavigation *)reloadFromOrigin; 212 212 213 213 /*! @abstract Stops loading all resources on the current page. … … 230 230 /*! @abstract The custom user agent string or nil if no custom user agent string has been set. 231 231 */ 232 @property ( WK_NULLABLE_PROPERTYnonatomic, copy) NSString *customUserAgent WK_AVAILABLE(10_11, 9_0);232 @property (nullable, nonatomic, copy) NSString *customUserAgent WK_AVAILABLE(10_11, 9_0); 233 233 234 234 /*! @abstract A Boolean value indicating whether link preview is allowed for any … … 277 277 @param sender The object that sent this message. 278 278 */ 279 - (IBAction)goBack:( WK_NULLABLEid)sender;279 - (IBAction)goBack:(nullable id)sender; 280 280 281 281 /*! @abstract Action method that navigates to the forward item in the … … 283 283 @param sender The object that sent this message. 284 284 */ 285 - (IBAction)goForward:( WK_NULLABLEid)sender;285 - (IBAction)goForward:(nullable id)sender; 286 286 287 287 /*! @abstract Action method that reloads the current page. 288 288 @param sender The object that sent this message. 289 289 */ 290 - (IBAction)reload:( WK_NULLABLEid)sender;290 - (IBAction)reload:(nullable id)sender; 291 291 292 292 /*! @abstract Action method that reloads the current page, performing … … 294 294 @param sender The object that sent this message. 295 295 */ 296 - (IBAction)reloadFromOrigin:( WK_NULLABLEid)sender;296 - (IBAction)reloadFromOrigin:(nullable id)sender; 297 297 298 298 /*! @abstract Action method that stops loading all resources on the current … … 300 300 @param sender The object that sent this message. 301 301 */ 302 - (IBAction)stopLoading:( WK_NULLABLEid)sender;302 - (IBAction)stopLoading:(nullable id)sender; 303 303 304 304 @end … … 306 306 #endif 307 307 308 WK_ASSUME_NONNULL_END309 310 #endif 308 NS_ASSUME_NONNULL_END 309 310 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKPreferences; … … 106 106 /*! @abstract The name of the application as used in the user agent string. 107 107 */ 108 @property ( WK_NULLABLE_PROPERTYnonatomic, copy) NSString *applicationNameForUserAgent WK_AVAILABLE(10_11, 9_0);108 @property (nullable, nonatomic, copy) NSString *applicationNameForUserAgent WK_AVAILABLE(10_11, 9_0); 109 109 110 110 /*! @abstract A Boolean value indicating whether AirPlay is allowed. … … 161 161 @end 162 162 163 WK_ASSUME_NONNULL_END163 NS_ASSUME_NONNULL_END 164 164 165 165 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebsiteDataRecord.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 /*! @constant WKWebsiteDataTypeDiskCache On-disk caches. */ … … 68 68 @end 69 69 70 WK_ASSUME_NONNULL_END70 NS_ASSUME_NONNULL_END 71 71 72 72 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebsiteDataStore.h
r195920 r195922 30 30 #import <WebKit/WKWebsiteDataRecord.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 /*! A WKWebsiteDataStore represents various types of data that a website might … … 78 78 @end 79 79 80 WK_ASSUME_NONNULL_END80 NS_ASSUME_NONNULL_END 81 81 82 82 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWindowFeatures.h
r195920 r195922 32 32 /*! WKWindowFeatures specifies optional attributes for the containing window when a new WKWebView is requested. 33 33 */ 34 WK_ASSUME_NONNULL_BEGIN34 NS_ASSUME_NONNULL_BEGIN 35 35 36 36 WK_CLASS_AVAILABLE(10_10, 8_0) … … 39 39 /*! @abstract BOOL. Whether the menu bar should be visible. nil if menu bar visibility was not specified. 40 40 */ 41 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly) NSNumber *menuBarVisibility;41 @property (nullable, nonatomic, readonly) NSNumber *menuBarVisibility; 42 42 43 43 /*! @abstract BOOL. Whether the status bar should be visible. nil if status bar visibility was not specified. 44 44 */ 45 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly) NSNumber *statusBarVisibility;45 @property (nullable, nonatomic, readonly) NSNumber *statusBarVisibility; 46 46 47 47 /*! @abstract BOOL. Whether toolbars should be visible. nil if toolbar visibility was not specified. 48 48 */ 49 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly) NSNumber *toolbarsVisibility;49 @property (nullable, nonatomic, readonly) NSNumber *toolbarsVisibility; 50 50 51 51 /*! @abstract BOOL. Whether the containing window should be resizable. nil if resizability was not specified. 52 52 */ 53 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly) NSNumber *allowsResizing;53 @property (nullable, nonatomic, readonly) NSNumber *allowsResizing; 54 54 55 55 /*! @abstract CGFloat. The x coordinate of the containing window. nil if the x coordinate was not specified. 56 56 */ 57 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly) NSNumber *x;57 @property (nullable, nonatomic, readonly) NSNumber *x; 58 58 59 59 /*! @abstract CGFloat. The y coordinate of the containing window. nil if the y coordinate was not specified. 60 60 */ 61 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly) NSNumber *y;61 @property (nullable, nonatomic, readonly) NSNumber *y; 62 62 63 63 /*! @abstract CGFloat. The width coordinate of the containing window. nil if the width was not specified. 64 64 */ 65 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly) NSNumber *width;65 @property (nullable, nonatomic, readonly) NSNumber *width; 66 66 67 67 /*! @abstract CGFloat. The height coordinate of the containing window. nil if the height was not specified. 68 68 */ 69 @property ( WK_NULLABLE_PROPERTYnonatomic, readonly) NSNumber *height;69 @property (nullable, nonatomic, readonly) NSNumber *height; 70 70 71 71 @end 72 72 73 WK_ASSUME_NONNULL_END73 NS_ASSUME_NONNULL_END 74 74 75 75 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKContextMenuElementInfo.h
r195920 r195922 30 30 #import <WebKit/_WKElementInfo.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 WK_CLASS_AVAILABLE(WK_MAC_TBA, NA) … … 37 37 @end 38 38 39 WK_ASSUME_NONNULL_END39 NS_ASSUME_NONNULL_END 40 40 41 41 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKElementInfo.h
r195920 r195922 28 28 #if WK_API_ENABLED 29 29 30 WK_ASSUME_NONNULL_BEGIN30 NS_ASSUME_NONNULL_BEGIN 31 31 32 32 WK_CLASS_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) … … 37 37 @end 38 38 39 WK_ASSUME_NONNULL_END39 NS_ASSUME_NONNULL_END 40 40 41 41 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKPreviewElementInfo.h
r195920 r195922 30 30 #import <WebKit/_WKElementInfo.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 WK_CLASS_AVAILABLE(NA, WK_IOS_TBA) … … 37 37 @end 38 38 39 WK_ASSUME_NONNULL_END39 NS_ASSUME_NONNULL_END 40 40 41 41 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKUserStyleSheet.h
r195920 r195922 30 30 #import <Foundation/Foundation.h> 31 31 32 WK_ASSUME_NONNULL_BEGIN32 NS_ASSUME_NONNULL_BEGIN 33 33 34 34 WK_CLASS_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) … … 43 43 @end 44 44 45 WK_ASSUME_NONNULL_END45 NS_ASSUME_NONNULL_END 46 46 47 47 #endif -
trunk/Source/WebKit2/mac/postprocess-framework-headers.sh
r195920 r195922 62 62 -e 's/WK_DICTIONARY\(([^\)]+)\)/NSDictionary<\1>/g' 63 63 -e 's/WK_SET\(([^\)]+)\)/NSSet<\1>/g' 64 -e s/WK_ASSUME_NONNULL_BEGIN/NS_ASSUME_NONNULL_BEGIN/65 -e s/WK_ASSUME_NONNULL_END/NS_ASSUME_NONNULL_END/66 64 -e s/WK_DESIGNATED_INITIALIZER/NS_DESIGNATED_INITIALIZER/ 67 -e s/WK_NULLABLE_PROPERTY/nullable,/ 68 -e s/WK_NULLABLE_SPECIFIER/__nullable/g 69 -e s/WK_NULLABLE/nullable/g 70 -e s/WK_NULL_UNSPECIFIED/null_unspecified/ 65 -e s/WK_NULLABLE_SPECIFIER/_Nullable/g 71 66 -e s/WK_UNAVAILABLE/NS_UNAVAILABLE/ 72 67 )
Note:
See TracChangeset
for help on using the changeset viewer.