Changeset 182930 in webkit
- Timestamp:
- Apr 16, 2015, 5:46:07 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r182922 r182930 1 2015-04-16 Anders Carlsson <andersca@apple.com> 2 3 Deprecate _WKWebsiteDataStore in favor of WKWebsiteDataStore 4 https://bugs.webkit.org/show_bug.cgi?id=143844 5 6 Reviewed by Dan Bernstein. 7 8 * Shared/API/Cocoa/WKFoundation.h: 9 * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: 10 (-[WKWebViewConfiguration _validate]): 11 * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: 12 * UIProcess/API/Cocoa/_WKWebsiteDataRecord.h: 13 * UIProcess/API/Cocoa/_WKWebsiteDataStore.h: 14 * mac/postprocess-framework-headers.sh: 15 1 16 2015-04-16 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Source/WebKit2/Shared/API/Cocoa/WKFoundation.h
r182846 r182930 51 51 #define WK_CLASS_AVAILABLE(_mac, _ios) __attribute__((visibility ("default"))) 52 52 #define WK_DEPRECATED(_macIntro, _macDep, _iosIntro, _iosDep, ...) __attribute__((deprecated(__VA_ARGS__))) 53 #define WK_CLASS_DEPRECATED(_macIntro, _macDep, _iosIntro, _iosDep, ...) __attribute__((visibility("default"))) __attribute__((deprecated(__VA_ARGS__))) 53 54 #define WK_ENUM_AVAILABLE(_mac, _ios) 54 55 #define WK_ENUM_AVAILABLE_IOS(_ios) -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm
r182875 r182930 216 216 } 217 217 218 #pragma clang diagnostic push 219 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 220 218 221 - (_WKWebsiteDataStore *)_websiteDataStore 219 222 { … … 225 228 self.websiteDataStore = websiteDataStore; 226 229 } 230 231 #pragma clang diagnostic pop 227 232 228 233 #if PLATFORM(IOS) … … 249 254 [NSException raise:NSInvalidArgumentException format:@"configuration.userContentController is nil"]; 250 255 256 if (!self.websiteDataStore) 257 [NSException raise:NSInvalidArgumentException format:@"configuration.websiteDataStore is nil"]; 258 251 259 if (!self._visitedLinkProvider) 252 260 [NSException raise:NSInvalidArgumentException format:@"configuration._visitedLinkProvider is nil"]; 253 261 254 if (!self._websiteDataStore)255 [NSException raise:NSInvalidArgumentException format:@"configuration._websiteDataStore is nil"];256 257 262 #if PLATFORM(IOS) 258 263 if (!self._contentProviderRegistry) -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h
r181317 r182930 39 39 @property (nonatomic, strong, setter=_setVisitedLinkProvider:) _WKVisitedLinkProvider *_visitedLinkProvider; 40 40 41 @property (nonatomic, strong, setter=_setWebsiteDataStore:) _WKWebsiteDataStore *_websiteDataStore ;41 @property (nonatomic, strong, setter=_setWebsiteDataStore:) _WKWebsiteDataStore *_websiteDataStore WK_DEPRECATED(10_10, WK_MAC_TBA, 8_0, WK_IOS_TBA, "Please use websiteDataStore instead"); 42 42 43 43 @property (nonatomic, weak, setter=_setAlternateWebViewForNavigationGestures:) WKWebView *_alternateWebViewForNavigationGestures; -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKWebsiteDataRecord.h
r182862 r182930 30 30 #import <WebKit/WKWebsiteDataRecord.h> 31 31 32 WK_CLASS_ AVAILABLE(WK_MAC_TBA, WK_IOS_TBA)32 WK_CLASS_DEPRECATED(WK_MAC_TBA, WK_MAC_TBA, WK_IOS_TBA, WK_IOS_TBA, "Please use WKWebsiteDataRecord instead") 33 33 @interface _WKWebsiteDataRecord : WKWebsiteDataRecord 34 34 @end -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKWebsiteDataStore.h
r182873 r182930 30 30 #import <WebKit/WKWebsiteDataStore.h> 31 31 32 WK_CLASS_ AVAILABLE(10_10, 8_0)32 WK_CLASS_DEPRECATED(10_10, WK_MAC_TBA, 8_0, WK_IOS_TBA, "Please use WKWebsiteDataStore instead") 33 33 @interface _WKWebsiteDataStore : WKWebsiteDataStore 34 34 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKWebsiteDataStore.mm
r182873 r182930 29 29 #if WK_API_ENABLED 30 30 31 #pragma clang diagnostic push 32 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 33 31 34 @implementation _WKWebsiteDataStore 32 35 … … 43 46 @end 44 47 48 #pragma clang diagnostic pop 49 45 50 #endif -
trunk/Source/WebKit2/mac/postprocess-framework-headers.sh
r181004 r182930 51 51 sed -i .tmp -e s/WK_MAC_TBA/${OSX_VERSION}/g -e s/WK_IOS_TBA/${IOS_VERSION}/g ${TARGET_TEMP_DIR}/${HEADER_PATH##*/} || exit $_ 52 52 else 53 sed -i .tmp -E -e 's/WK_(CLASS_|ENUM_)?AVAILABLE(_IOS|_MAC)?\(.+\)//g' -e 's/WK_ DEPRECATED\(.+\)//g' ${TARGET_TEMP_DIR}/${HEADER_PATH##*/} || exit $_53 sed -i .tmp -E -e 's/WK_(CLASS_|ENUM_)?AVAILABLE(_IOS|_MAC)?\(.+\)//g' -e 's/WK_(CLASS_?)DEPRECATED\(.+\)//g' ${TARGET_TEMP_DIR}/${HEADER_PATH##*/} || exit $_ 54 54 fi 55 55 56 sed -i .tmp -e s/^WK_CLASS_AVAILABLE/NS_CLASS_AVAILABLE/ -e s/WK_AVAILABLE/NS_AVAILABLE/ -e s/ WK_DEPRECATED/NS_DEPRECATED/ -e s/WK_DESIGNATED_INITIALIZER/NS_DESIGNATED_INITIALIZER/ -e s/WK_ENUM_AVAILABLE/NS_ENUM_AVAILABLE/ -e s/WK_UNAVAILABLE/NS_UNAVAILABLE/ -e s/WK_ASSUME_NONNULL_BEGIN/NS_ASSUME_NONNULL_BEGIN/ -e s/WK_ASSUME_NONNULL_END/NS_ASSUME_NONNULL_END/ -e s/WK_NULLABLE_PROPERTY/nullable,/ -e s/WK_NULLABLE_SPECIFIER/__nullable/g -e s/WK_NULLABLE/nullable/g -e s/WK_NULL_UNSPECIFIED/null_unspecified/ ${TARGET_TEMP_DIR}/${HEADER_PATH##*/} || exit $_56 sed -i .tmp -e s/^WK_CLASS_AVAILABLE/NS_CLASS_AVAILABLE/ -e s/WK_AVAILABLE/NS_AVAILABLE/ -e s/^WK_CLASS_DEPRECATED/NS_CLASS_DEPRECATED/ -e s/WK_DEPRECATED/NS_DEPRECATED/ -e s/WK_DESIGNATED_INITIALIZER/NS_DESIGNATED_INITIALIZER/ -e s/WK_ENUM_AVAILABLE/NS_ENUM_AVAILABLE/ -e s/WK_UNAVAILABLE/NS_UNAVAILABLE/ -e s/WK_ASSUME_NONNULL_BEGIN/NS_ASSUME_NONNULL_BEGIN/ -e s/WK_ASSUME_NONNULL_END/NS_ASSUME_NONNULL_END/ -e s/WK_NULLABLE_PROPERTY/nullable,/ -e s/WK_NULLABLE_SPECIFIER/__nullable/g -e s/WK_NULLABLE/nullable/g -e s/WK_NULL_UNSPECIFIED/null_unspecified/ ${TARGET_TEMP_DIR}/${HEADER_PATH##*/} || exit $_ 57 57 mv ${TARGET_TEMP_DIR}/${HEADER_PATH##*/} $HEADER_PATH 58 58 fi -
trunk/Tools/ChangeLog
r182926 r182930 1 2015-04-16 Anders Carlsson <andersca@apple.com> 2 3 Deprecate _WKWebsiteDataStore in favor of WKWebsiteDataStore 4 https://bugs.webkit.org/show_bug.cgi?id=143844 5 6 Reviewed by Dan Bernstein. 7 8 * MiniBrowser/mac/AppDelegate.m: 9 (-[BrowserAppDelegate newPrivateWindow:]): 10 * MiniBrowser/mac/WK2BrowserWindowController.m: 11 (-[WK2BrowserWindowController initWithConfiguration:]): 12 (-[WK2BrowserWindowController fetchWebsiteData:]): 13 (-[WK2BrowserWindowController fetchAndClearWebsiteData:]): 14 (-[WK2BrowserWindowController clearWebsiteData:]): 15 1 16 2015-04-16 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Tools/MiniBrowser/mac/AppDelegate.m
r182476 r182930 37 37 #import <WebKit/_WKProcessPoolConfiguration.h> 38 38 #import <WebKit/_WKUserContentExtensionStore.h> 39 #import <WebKit/_WKWebsiteDataStore.h>40 39 41 40 enum { … … 119 118 #if WK_API_ENABLED 120 119 WKWebViewConfiguration *privateConfiguraton = [defaultConfiguration() copy]; 121 privateConfiguraton. _websiteDataStore = [_WKWebsiteDataStore nonPersistentDataStore];120 privateConfiguraton.websiteDataStore = [WKWebsiteDataStore nonPersistentDataStore]; 122 121 123 122 BrowserWindowController *controller = [[WK2BrowserWindowController alloc] initWithConfiguration:privateConfiguraton]; -
trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m
r182772 r182930 37 37 #import <WebKit/WKWebViewPrivate.h> 38 38 #import <WebKit/WebNSURLExtras.h> 39 #import <WebKit/_WKWebsiteDataStore.h>40 39 41 40 static void* keyValueObservingContext = &keyValueObservingContext; … … 80 79 81 80 _configuration = [configuration copy]; 82 _isPrivateBrowsingWindow = _configuration. _websiteDataStore.isNonPersistent;81 _isPrivateBrowsingWindow = _configuration.websiteDataStore.isNonPersistent; 83 82 84 83 return self; … … 446 445 - (IBAction)fetchWebsiteData:(id)sender 447 446 { 448 [_configuration. _websiteDataStore fetchDataRecordsOfTypes:dataTypes completionHandler:^(NSArray *websiteDataRecords) {447 [_configuration.websiteDataStore fetchDataRecordsOfTypes:dataTypes completionHandler:^(NSArray *websiteDataRecords) { 449 448 NSLog(@"did fetch website data %@.", websiteDataRecords); 450 449 }]; … … 453 452 - (IBAction)fetchAndClearWebsiteData:(id)sender 454 453 { 455 [_configuration. _websiteDataStore fetchDataRecordsOfTypes:dataTypes completionHandler:^(NSArray *websiteDataRecords) {456 [_configuration. _websiteDataStore removeDataOfTypes:dataTypes forDataRecords:websiteDataRecords completionHandler:^{457 [_configuration. _websiteDataStore fetchDataRecordsOfTypes:dataTypes completionHandler:^(NSArray *websiteDataRecords) {454 [_configuration.websiteDataStore fetchDataRecordsOfTypes:dataTypes completionHandler:^(NSArray *websiteDataRecords) { 455 [_configuration.websiteDataStore removeDataOfTypes:dataTypes forDataRecords:websiteDataRecords completionHandler:^{ 456 [_configuration.websiteDataStore fetchDataRecordsOfTypes:dataTypes completionHandler:^(NSArray *websiteDataRecords) { 458 457 NSLog(@"did clear website data, after clearing data is %@.", websiteDataRecords); 459 458 }]; … … 464 463 - (IBAction)clearWebsiteData:(id)sender 465 464 { 466 [_configuration. _websiteDataStore removeDataOfTypes:dataTypes modifiedSince:[NSDate distantPast] completionHandler:^{465 [_configuration.websiteDataStore removeDataOfTypes:dataTypes modifiedSince:[NSDate distantPast] completionHandler:^{ 467 466 NSLog(@"Did clear website data."); 468 467 }];
Note:
See TracChangeset
for help on using the changeset viewer.