Changeset 195920 in webkit
- Timestamp:
- Jan 30, 2016, 5:22:38 PM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r195917 r195920 1 2016-01-30 Dan Bernstein <mitz@apple.com> 2 3 Reverted r195914, because at least one of the build.webkit.org builders still uses a compiler that doesn’t understand _Nullable. 4 5 * Shared/API/Cocoa/WKFoundation.h: 6 * UIProcess/API/Cocoa/WKBackForwardList.h: 7 * UIProcess/API/Cocoa/WKBackForwardListItem.h: 8 * UIProcess/API/Cocoa/WKError.h: 9 * UIProcess/API/Cocoa/WKFrameInfo.h: 10 * UIProcess/API/Cocoa/WKNavigationAction.h: 11 * UIProcess/API/Cocoa/WKNavigationDelegate.h: 12 * UIProcess/API/Cocoa/WKNavigationResponse.h: 13 * UIProcess/API/Cocoa/WKScriptMessage.h: 14 * UIProcess/API/Cocoa/WKScriptMessageHandler.h: 15 * UIProcess/API/Cocoa/WKSecurityOrigin.h: 16 * UIProcess/API/Cocoa/WKUIDelegate.h: 17 * UIProcess/API/Cocoa/WKUserContentController.h: 18 * UIProcess/API/Cocoa/WKUserScript.h: 19 * UIProcess/API/Cocoa/WKWebView.h: 20 * UIProcess/API/Cocoa/WKWebViewConfiguration.h: 21 * UIProcess/API/Cocoa/WKWebsiteDataRecord.h: 22 * UIProcess/API/Cocoa/WKWebsiteDataStore.h: 23 * UIProcess/API/Cocoa/WKWindowFeatures.h: 24 * UIProcess/API/Cocoa/_WKContextMenuElementInfo.h: 25 * UIProcess/API/Cocoa/_WKElementInfo.h: 26 * UIProcess/API/Cocoa/_WKPreviewElementInfo.h: 27 * UIProcess/API/Cocoa/_WKUserStyleSheet.h: 28 * mac/postprocess-framework-headers.sh: 29 1 30 2016-01-30 Commit Queue <commit-queue@webkit.org> 2 31 -
trunk/Source/WebKit2/Shared/API/Cocoa/WKFoundation.h
r195914 r195920 83 83 #endif 84 84 85 #if __has_feature(assume_nonnull) 86 87 #ifdef NS_ASSUME_NONNULL_BEGIN 88 #define WK_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN 89 #else 90 #define WK_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin") 91 #endif 92 93 #ifdef NS_ASSUME_NONNULL_END 94 #define WK_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END 95 #else 96 #define WK_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end") 97 #endif 98 99 #define WK_NULLABLE nullable 100 #define WK_NULL_UNSPECIFIED null_unspecified 101 #define WK_NULLABLE_SPECIFIER __nullable 102 #define WK_NULLABLE_PROPERTY nullable, 103 104 #else 105 106 #define WK_ASSUME_NONNULL_BEGIN 107 #define WK_ASSUME_NONNULL_END 108 109 #define WK_NULLABLE 110 #define WK_NULL_UNSPECIFIED 111 #define WK_NULLABLE_SPECIFIER 112 #define WK_NULLABLE_PROPERTY 113 85 114 #endif 86 115 87 116 #endif 88 117 118 #endif 119 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBackForwardList.h
r195914 r195920 33 33 visited in a web view that can be reached by going back or forward. 34 34 */ 35 NS_ASSUME_NONNULL_BEGIN35 WK_ASSUME_NONNULL_BEGIN 36 36 37 37 WK_CLASS_AVAILABLE(10_10, 8_0) … … 40 40 /*! @abstract The current item. 41 41 */ 42 @property ( nullable,nonatomic, readonly, strong) WKBackForwardListItem *currentItem;42 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly, strong) WKBackForwardListItem *backItem;47 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly, strong) WKBackForwardListItem *forwardItem;52 @property (WK_NULLABLE_PROPERTY 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 - ( nullableWKBackForwardListItem *)itemAtIndex:(NSInteger)index;62 - (WK_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 NS_ASSUME_NONNULL_END78 WK_ASSUME_NONNULL_END 79 79 80 80 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBackForwardListItem.h
r195914 r195920 32 32 /*! A WKBackForwardListItem object represents a webpage in the back-forward list of a web view. 33 33 */ 34 NS_ASSUME_NONNULL_BEGIN34 WK_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 ( nullable,readonly, copy) NSString *title;45 @property (WK_NULLABLE_PROPERTY 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 NS_ASSUME_NONNULL_END53 WK_ASSUME_NONNULL_END 54 54 55 55 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKError.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_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 NS_ASSUME_NONNULL_END53 WK_ASSUME_NONNULL_END 54 54 55 55 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKFrameInfo.h
r195914 r195920 36 36 calls. 37 37 */ 38 NS_ASSUME_NONNULL_BEGIN38 WK_ASSUME_NONNULL_BEGIN 39 39 40 40 WK_CLASS_AVAILABLE(10_10, 8_0) … … 56 56 @end 57 57 58 NS_ASSUME_NONNULL_END58 WK_ASSUME_NONNULL_END 59 59 60 60 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationAction.h
r195914 r195920 34 34 #endif 35 35 36 NS_ASSUME_NONNULL_BEGIN36 WK_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 ( nullable,nonatomic, readonly, copy) WKFrameInfo *targetFrame;70 @property (WK_NULLABLE_PROPERTY nonatomic, readonly, copy) WKFrameInfo *targetFrame; 71 71 72 72 /*! @abstract The type of action that triggered the navigation. … … 93 93 @end 94 94 95 NS_ASSUME_NONNULL_END95 WK_ASSUME_NONNULL_END 96 96 97 97 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationDelegate.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKNavigation; … … 91 91 @param navigation The navigation. 92 92 */ 93 - (void)webView:(WKWebView *)webView didStartProvisionalNavigation:( null_unspecifiedWKNavigation *)navigation;93 - (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WK_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:( null_unspecifiedWKNavigation *)navigation;100 - (void)webView:(WKWebView *)webView didReceiveServerRedirectForProvisionalNavigation:(WK_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:( null_unspecifiedWKNavigation *)navigation withError:(NSError *)error;108 - (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WK_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:( null_unspecifiedWKNavigation *)navigation;114 - (void)webView:(WKWebView *)webView didCommitNavigation:(WK_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:( null_unspecifiedWKNavigation *)navigation;120 - (void)webView:(WKWebView *)webView didFinishNavigation:(WK_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:( null_unspecifiedWKNavigation *)navigation withError:(NSError *)error;128 - (void)webView:(WKWebView *)webView didFailNavigation:(WK_NULL_UNSPECIFIED WKNavigation *)navigation withError:(NSError *)error; 129 129 130 130 /*! @abstract Invoked when the web view needs to respond to an authentication challenge. … … 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 * _Nullablecredential))completionHandler;140 - (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *WK_NULLABLE_SPECIFIER credential))completionHandler; 141 141 142 142 /*! @abstract Invoked when the web view's web content process is terminated. … … 147 147 @end 148 148 149 NS_ASSUME_NONNULL_END149 WK_ASSUME_NONNULL_END 150 150 151 151 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationResponse.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKFrameInfo; … … 54 54 @end 55 55 56 NS_ASSUME_NONNULL_END56 WK_ASSUME_NONNULL_END 57 57 58 58 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKScriptMessage.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKFrameInfo; … … 48 48 49 49 /*! @abstract The web view sending the message. */ 50 @property ( nullable,nonatomic, readonly, weak) WKWebView *webView;50 @property (WK_NULLABLE_PROPERTY nonatomic, readonly, weak) WKWebView *webView; 51 51 52 52 /*! @abstract The frame sending the message. */ … … 59 59 @end 60 60 61 NS_ASSUME_NONNULL_END61 WK_ASSUME_NONNULL_END 62 62 63 63 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKScriptMessageHandler.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKScriptMessage; … … 51 51 @end 52 52 53 NS_ASSUME_NONNULL_END53 WK_ASSUME_NONNULL_END 54 54 55 55 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKSecurityOrigin.h
r195914 r195920 35 35 calls. 36 36 */ 37 NS_ASSUME_NONNULL_BEGIN37 WK_ASSUME_NONNULL_BEGIN 38 38 39 39 WK_CLASS_AVAILABLE(10_11, 9_0) … … 56 56 @end 57 57 58 NS_ASSUME_NONNULL_END58 WK_ASSUME_NONNULL_END 59 59 60 60 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegate.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_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 - ( nullableWKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures;58 - (WK_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:( nullable NSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString * _Nullableresult))completionHandler;115 - (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(WK_NULLABLE NSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString * WK_NULLABLE_SPECIFIER result))completionHandler; 116 116 117 117 @end 118 118 119 NS_ASSUME_NONNULL_END119 WK_ASSUME_NONNULL_END 120 120 121 121 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUserContentController.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 @class WKUserScript; … … 73 73 @end 74 74 75 NS_ASSUME_NONNULL_END75 WK_ASSUME_NONNULL_END 76 76 77 77 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUserScript.h
r195914 r195920 35 35 @constant WKUserScriptInjectionTimeAtDocumentEnd Inject the script after the document has finished loading, but before any subresources may have finished loading. 36 36 */ 37 NS_ASSUME_NONNULL_BEGIN37 WK_ASSUME_NONNULL_BEGIN 38 38 39 39 typedef NS_ENUM(NSInteger, WKUserScriptInjectionTime) { … … 65 65 @end 66 66 67 NS_ASSUME_NONNULL_END67 WK_ASSUME_NONNULL_END 68 68 69 69 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h
r195914 r195920 34 34 #endif 35 35 36 NS_ASSUME_NONNULL_BEGIN36 WK_ASSUME_NONNULL_BEGIN 37 37 38 38 @class WKBackForwardList; … … 62 62 63 63 /*! @abstract The web view's navigation delegate. */ 64 @property ( nullable,nonatomic, weak) id <WKNavigationDelegate> navigationDelegate;64 @property (WK_NULLABLE_PROPERTY nonatomic, weak) id <WKNavigationDelegate> navigationDelegate; 65 65 66 66 /*! @abstract The web view's user interface delegate. */ 67 @property ( nullable,nonatomic, weak) id <WKUIDelegate> UIDelegate;67 @property (WK_NULLABLE_PROPERTY 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 - ( nullableWKNavigation *)loadRequest:(NSURLRequest *)request;92 - (WK_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 - ( nullableWKNavigation *)loadFileURL:(NSURL *)URL allowingReadAccessToURL:(NSURL *)readAccessURL WK_AVAILABLE(10_11, 9_0);101 - (WK_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 - ( nullable WKNavigation *)loadHTMLString:(NSString *)string baseURL:(nullableNSURL *)baseURL;108 - (WK_NULLABLE WKNavigation *)loadHTMLString:(NSString *)string baseURL:(WK_NULLABLE NSURL *)baseURL; 109 109 110 110 /*! @abstract Sets the webpage contents and base URL. … … 115 115 @result A new navigation. 116 116 */ 117 - ( nullableWKNavigation *)loadData:(NSData *)data MIMEType:(NSString *)MIMEType characterEncodingName:(NSString *)characterEncodingName baseURL:(NSURL *)baseURL WK_AVAILABLE(10_11, 9_0);117 - (WK_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 - ( nullableWKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item;127 - (WK_NULLABLE WKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item; 128 128 129 129 /*! @abstract The page title. … … 131 131 for this property. 132 132 */ 133 @property ( nullable,nonatomic, readonly, copy) NSString *title;133 @property (WK_NULLABLE_PROPERTY nonatomic, readonly, copy) NSString *title; 134 134 135 135 /*! @abstract The active URL. … … 139 139 property. 140 140 */ 141 @property ( nullable,nonatomic, readonly, copy) NSURL *URL;141 @property (WK_NULLABLE_PROPERTY 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 - ( nullableWKNavigation *)goBack;194 - (WK_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 - ( nullableWKNavigation *)goForward;200 - (WK_NULLABLE WKNavigation *)goForward; 201 201 202 202 /*! @abstract Reloads the current page. 203 203 @result A new navigation representing the reload. 204 204 */ 205 - ( nullableWKNavigation *)reload;205 - (WK_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 - ( nullableWKNavigation *)reloadFromOrigin;211 - (WK_NULLABLE WKNavigation *)reloadFromOrigin; 212 212 213 213 /*! @abstract Stops loading all resources on the current page. … … 220 220 @discussion The completionHandler is passed the result of the script evaluation or an error. 221 221 */ 222 - (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^ _Nullable)(_Nullable id, NSError * _Nullableerror))completionHandler;222 - (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^ WK_NULLABLE_SPECIFIER)(WK_NULLABLE_SPECIFIER id, NSError * WK_NULLABLE_SPECIFIER error))completionHandler; 223 223 224 224 /*! @abstract A Boolean value indicating whether horizontal swipe gestures … … 230 230 /*! @abstract The custom user agent string or nil if no custom user agent string has been set. 231 231 */ 232 @property ( nullable,nonatomic, copy) NSString *customUserAgent WK_AVAILABLE(10_11, 9_0);232 @property (WK_NULLABLE_PROPERTY 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:( nullableid)sender;279 - (IBAction)goBack:(WK_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:( nullableid)sender;285 - (IBAction)goForward:(WK_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:( nullableid)sender;290 - (IBAction)reload:(WK_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:( nullableid)sender;296 - (IBAction)reloadFromOrigin:(WK_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:( nullableid)sender;302 - (IBAction)stopLoading:(WK_NULLABLE id)sender; 303 303 304 304 @end … … 306 306 #endif 307 307 308 NS_ASSUME_NONNULL_END309 310 #endif 308 WK_ASSUME_NONNULL_END 309 310 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_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 ( nullable,nonatomic, copy) NSString *applicationNameForUserAgent WK_AVAILABLE(10_11, 9_0);108 @property (WK_NULLABLE_PROPERTY 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 NS_ASSUME_NONNULL_END163 WK_ASSUME_NONNULL_END 164 164 165 165 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebsiteDataRecord.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 /*! @constant WKWebsiteDataTypeDiskCache On-disk caches. */ … … 68 68 @end 69 69 70 NS_ASSUME_NONNULL_END70 WK_ASSUME_NONNULL_END 71 71 72 72 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebsiteDataStore.h
r195914 r195920 30 30 #import <WebKit/WKWebsiteDataRecord.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 /*! A WKWebsiteDataStore represents various types of data that a website might … … 78 78 @end 79 79 80 NS_ASSUME_NONNULL_END80 WK_ASSUME_NONNULL_END 81 81 82 82 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWindowFeatures.h
r195914 r195920 32 32 /*! WKWindowFeatures specifies optional attributes for the containing window when a new WKWebView is requested. 33 33 */ 34 NS_ASSUME_NONNULL_BEGIN34 WK_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 ( nullable,nonatomic, readonly) NSNumber *menuBarVisibility;41 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly) NSNumber *statusBarVisibility;45 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly) NSNumber *toolbarsVisibility;49 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly) NSNumber *allowsResizing;53 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly) NSNumber *x;57 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly) NSNumber *y;61 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly) NSNumber *width;65 @property (WK_NULLABLE_PROPERTY 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 ( nullable,nonatomic, readonly) NSNumber *height;69 @property (WK_NULLABLE_PROPERTY nonatomic, readonly) NSNumber *height; 70 70 71 71 @end 72 72 73 NS_ASSUME_NONNULL_END73 WK_ASSUME_NONNULL_END 74 74 75 75 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKContextMenuElementInfo.h
r195914 r195920 30 30 #import <WebKit/_WKElementInfo.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 WK_CLASS_AVAILABLE(WK_MAC_TBA, NA) … … 37 37 @end 38 38 39 NS_ASSUME_NONNULL_END39 WK_ASSUME_NONNULL_END 40 40 41 41 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKElementInfo.h
r195914 r195920 28 28 #if WK_API_ENABLED 29 29 30 NS_ASSUME_NONNULL_BEGIN30 WK_ASSUME_NONNULL_BEGIN 31 31 32 32 WK_CLASS_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) … … 37 37 @end 38 38 39 NS_ASSUME_NONNULL_END39 WK_ASSUME_NONNULL_END 40 40 41 41 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKPreviewElementInfo.h
r195914 r195920 30 30 #import <WebKit/_WKElementInfo.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 WK_CLASS_AVAILABLE(NA, WK_IOS_TBA) … … 37 37 @end 38 38 39 NS_ASSUME_NONNULL_END39 WK_ASSUME_NONNULL_END 40 40 41 41 #endif -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKUserStyleSheet.h
r195914 r195920 30 30 #import <Foundation/Foundation.h> 31 31 32 NS_ASSUME_NONNULL_BEGIN32 WK_ASSUME_NONNULL_BEGIN 33 33 34 34 WK_CLASS_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) … … 43 43 @end 44 44 45 NS_ASSUME_NONNULL_END45 WK_ASSUME_NONNULL_END 46 46 47 47 #endif -
trunk/Source/WebKit2/mac/postprocess-framework-headers.sh
r195914 r195920 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/ 64 66 -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 71 -e s/WK_UNAVAILABLE/NS_UNAVAILABLE/ 66 72 )
Note:
See TracChangeset
for help on using the changeset viewer.