Changeset 244941 in webkit
- Timestamp:
- May 3, 2019 6:01:49 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r244936 r244941 1 2019-05-03 Dean Jackson <dino@apple.com> 2 3 Make imageForElementActionType a class method on _WKElementAction 4 https://bugs.webkit.org/show_bug.cgi?id=197588 5 <rdar://problem/50463157> 6 7 Reviewed by Wenson Hsieh. 8 9 Make this helper function a class method, so that it can 10 be more easily detected. 11 12 * UIProcess/API/Cocoa/_WKElementAction.h: 13 * UIProcess/API/Cocoa/_WKElementAction.mm: 14 (+[_WKElementAction imageForElementActionType:]): 15 (_WKUIImageForElementActionType): Deleted. 16 1 17 2019-05-03 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.h
r244914 r244941 60 60 + (instancetype)elementActionWithTitle:(NSString *)title actionHandler:(WKElementActionHandler)handler; 61 61 62 + (UIImage *)imageForElementActionType:(_WKElementActionType)actionType WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 63 62 64 - (void)runActionWithElementInfo:(_WKActivatedElementInfo *)info WK_API_AVAILABLE(ios(9_0)); 63 65 … … 68 70 @end 69 71 70 #ifdef __cplusplus71 extern "C" {72 #endif73 74 WK_EXPORT UIImage *_WKUIImageForElementActionType(_WKElementActionType) WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));75 76 #ifdef __cplusplus77 }78 #endif79 80 72 #endif // TARGET_OS_IPHONE -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm
r244914 r244941 38 38 #import <wtf/WeakObjCPtr.h> 39 39 #import <wtf/text/WTFString.h> 40 41 #if USE(APPLE_INTERNAL_SDK) && __has_include(<WebKitAdditions/WKElementActionAdditions.h>) 42 #include <WebKitAdditions/WKElementActionAdditions.h> 43 #endif 40 44 41 45 #if HAVE(SAFARI_SERVICES_FRAMEWORK) … … 176 180 } 177 181 178 @end 179 180 #if USE(APPLE_INTERNAL_SDK) && __has_include(<WebKitAdditions/WKElementActionAdditions.m>) 181 #include <WebKitAdditions/WKElementActionAdditions.m> 182 #if USE(APPLE_INTERNAL_SDK) && __has_include(<WebKitAdditions/WKElementActionAdditions.mm>) 183 #include <WebKitAdditions/WKElementActionAdditions.mm> 182 184 #else 183 UIImage *_WKUIImageForElementActionType(_WKElementActionType) 185 + (UIImage *)imageForElementActionType:(_WKElementActionType)actionType 184 186 { 185 187 return nil; … … 187 189 #endif 188 190 191 @end 192 189 193 #endif // PLATFORM(IOS_FAMILY)
Note: See TracChangeset
for help on using the changeset viewer.