Changeset 244941 in webkit


Ignore:
Timestamp:
May 3, 2019 6:01:49 PM (5 years ago)
Author:
dino@apple.com
Message:

Make imageForElementActionType a class method on _WKElementAction
https://bugs.webkit.org/show_bug.cgi?id=197588
<rdar://problem/50463157>

Reviewed by Wenson Hsieh.

Make this helper function a class method, so that it can
be more easily detected.

  • UIProcess/API/Cocoa/_WKElementAction.h:
  • UIProcess/API/Cocoa/_WKElementAction.mm:

(+[_WKElementAction imageForElementActionType:]):
(_WKUIImageForElementActionType): Deleted.

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244936 r244941  
     12019-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
    1172019-05-03  Chris Dumez  <cdumez@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.h

    r244914 r244941  
    6060+ (instancetype)elementActionWithTitle:(NSString *)title actionHandler:(WKElementActionHandler)handler;
    6161
     62+ (UIImage *)imageForElementActionType:(_WKElementActionType)actionType WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
     63
    6264- (void)runActionWithElementInfo:(_WKActivatedElementInfo *)info WK_API_AVAILABLE(ios(9_0));
    6365
     
    6870@end
    6971
    70 #ifdef __cplusplus
    71 extern "C" {
    72 #endif
    73 
    74 WK_EXPORT UIImage *_WKUIImageForElementActionType(_WKElementActionType) WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
    75 
    76 #ifdef __cplusplus
    77 }
    78 #endif
    79 
    8072#endif // TARGET_OS_IPHONE
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm

    r244914 r244941  
    3838#import <wtf/WeakObjCPtr.h>
    3939#import <wtf/text/WTFString.h>
     40
     41#if USE(APPLE_INTERNAL_SDK) && __has_include(<WebKitAdditions/WKElementActionAdditions.h>)
     42#include <WebKitAdditions/WKElementActionAdditions.h>
     43#endif
    4044
    4145#if HAVE(SAFARI_SERVICES_FRAMEWORK)
     
    176180}
    177181
    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>
    182184#else
    183 UIImage *_WKUIImageForElementActionType(_WKElementActionType)
     185+ (UIImage *)imageForElementActionType:(_WKElementActionType)actionType
    184186{
    185187    return nil;
     
    187189#endif
    188190
     191@end
     192
    189193#endif // PLATFORM(IOS_FAMILY)
Note: See TracChangeset for help on using the changeset viewer.