Add more _WKElementActionTypes and provide API to create with custom types
<rdar://problem/50059548>
Created attachment 367828 [details] Patch
Created attachment 367831 [details] Patch
Comment on attachment 367831 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367831&action=review > Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.h:45 > + _WKElementActionTypeShare WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(10.0)), This one shouldn't be TBA > Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.h:55 > -+ (instancetype)elementActionWithType:(_WKElementActionType)type customTitle:(NSString *)title; > ++ (instancetype)elementActionWithType:(_WKElementActionType)type title:(NSString *)title actionHandler:(WKElementActionHandler)actionHandler; Are you sure there are no clients of the old SPI‽ Also, this needs availability.
Created attachment 367835 [details] Patch
Committed r244472: <https://trac.webkit.org/changeset/244472>