Changeset 160036 in webkit
- Timestamp:
- Dec 3, 2013 1:53:21 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r160033 r160036 1 2013-12-03 Anders Carlsson <andersca@apple.com> 2 3 Deprecate WKNotificationProvider 4 https://bugs.webkit.org/show_bug.cgi?id=125178 5 6 Reviewed by Sam Weinig. 7 8 * Shared/API/c/WKDeclarationSpecifiers.h: 9 Add WK_DEPRECATED and WK_ENUM_DEPRECATED macros so we can things as deprecated. 10 11 * UIProcess/API/C/WKNotificationManager.cpp: 12 (WKNotificationManagerSetProvider): 13 * UIProcess/API/C/WKNotificationManager.h: 14 WKNotificationManagerSetProvider now takes a WKNotificationProviderBase. 15 16 * UIProcess/API/C/WKNotificationProvider.h: 17 Deprecate WKNotificationProvider and kWKNotificationProviderCurrentVersion. 18 1 19 2013-12-03 Brady Eidson <beidson@apple.com> 2 20 -
trunk/Source/WebKit2/Shared/API/c/WKDeclarationSpecifiers.h
r157643 r160036 47 47 #endif /* !defined(WK_INLINE) */ 48 48 49 #if defined(__has_extension) && __has_extension(enumerator_attributes) && __has_extension(attribute_unavailable_with_message) 50 #define WK_DEPRECATED(message) __attribute__((deprecated(message))) 51 #else 52 #define WK_DEPRECATED(message) 53 #endif 54 55 #if defined(__has_extension) && __has_extension(enumerator_attributes) && __has_extension(attribute_unavailable_with_message) 56 #define WK_ENUM_DEPRECATED(message) __attribute__((deprecated(message))) 57 #else 58 #define WK_ENUM_DEPRECATED(message) 59 #endif 60 49 61 #endif /* WKDeclarationSpecifiers_h */ -
trunk/Source/WebKit2/UIProcess/API/C/WKNotificationManager.cpp
r159988 r160036 37 37 } 38 38 39 void WKNotificationManagerSetProvider(WKNotificationManagerRef managerRef, const WKNotificationProvider * wkProvider)39 void WKNotificationManagerSetProvider(WKNotificationManagerRef managerRef, const WKNotificationProviderBase* wkProvider) 40 40 { 41 toImpl(managerRef)->initializeProvider( reinterpret_cast<const WKNotificationProviderBase*>(wkProvider));41 toImpl(managerRef)->initializeProvider(wkProvider); 42 42 } 43 43 -
trunk/Source/WebKit2/UIProcess/API/C/WKNotificationManager.h
r105364 r160036 35 35 36 36 WK_EXPORT WKTypeID WKNotificationManagerGetTypeID(); 37 WK_EXPORT void WKNotificationManagerSetProvider(WKNotificationManagerRef managerRef, const WKNotificationProvider * wkProvider);37 WK_EXPORT void WKNotificationManagerSetProvider(WKNotificationManagerRef managerRef, const WKNotificationProviderBase* wkProvider); 38 38 39 39 WK_EXPORT void WKNotificationManagerProviderDidShowNotification(WKNotificationManagerRef managerRef, uint64_t notificationID); -
trunk/Source/WebKit2/UIProcess/API/C/WKNotificationProvider.h
r159981 r160036 59 59 } WKNotificationProviderV0; 60 60 61 // FIXME: Deprecate. 62 enum { kWKNotificationProviderCurrentVersion = 0 }; 61 enum { kWKNotificationProviderCurrentVersion WK_ENUM_DEPRECATED("Use an explicit version number instead") = 0, }; 63 62 typedef struct WKNotificationProvider { 64 63 int version; … … 73 72 WKNotificationProviderNotificationPermissionsCallback notificationPermissions; 74 73 WKNotificationProviderClearNotificationsCallback clearNotifications; 75 } WKNotificationProvider ;74 } WKNotificationProvider WK_DEPRECATED("Use an explicit versioned struct instead"); 76 75 77 76 #ifdef __cplusplus -
trunk/Tools/ChangeLog
r160035 r160036 1 2013-12-03 Anders Carlsson <andersca@apple.com> 2 3 Deprecate WKNotificationProvider 4 https://bugs.webkit.org/show_bug.cgi?id=125178 5 6 Reviewed by Sam Weinig. 7 8 Update for WebKit2 changes. 9 10 * WebKitTestRunner/TestController.cpp: 11 (WTR::TestController::initialize): 12 * WebKitTestRunner/WebNotificationProvider.cpp: 13 (WTR::WebNotificationProvider::provider): 14 * WebKitTestRunner/WebNotificationProvider.h: 15 1 16 2013-12-03 Brent Fulgham <bfulgham@apple.com> 2 17 -
trunk/Tools/WebKitTestRunner/TestController.cpp
r159387 r160036 377 377 378 378 WKNotificationManagerRef notificationManager = WKContextGetNotificationManager(m_context.get()); 379 WKNotificationProvider notificationKit = m_webNotificationProvider.provider();380 WKNotificationManagerSetProvider(notificationManager, ¬ificationKit );379 WKNotificationProviderV0 notificationKit = m_webNotificationProvider.provider(); 380 WKNotificationManagerSetProvider(notificationManager, ¬ificationKit.base); 381 381 382 382 if (testPluginDirectory()) -
trunk/Tools/WebKitTestRunner/WebNotificationProvider.cpp
r150474 r160036 69 69 } 70 70 71 WKNotificationProvider WebNotificationProvider::provider()71 WKNotificationProviderV0 WebNotificationProvider::provider() 72 72 { 73 WKNotificationProvider notificationProvider = { 74 kWKNotificationProviderCurrentVersion, 75 this, 73 WKNotificationProviderV0 notificationProvider = { 74 { kWKNotificationProviderCurrentVersion, this }, 76 75 WTR::showWebNotification, 77 76 WTR::closeWebNotification, -
trunk/Tools/WebKitTestRunner/WebNotificationProvider.h
r150474 r160036 38 38 WebNotificationProvider(); 39 39 ~WebNotificationProvider(); 40 WKNotificationProvider provider();40 WKNotificationProviderV0 provider(); 41 41 42 42 void showWebNotification(WKPageRef, WKNotificationRef);
Note: See TracChangeset
for help on using the changeset viewer.