Bug 199246 - Expose UIAction identifiers for _WKElementActions
Summary: Expose UIAction identifiers for _WKElementActions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dean Jackson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-06-26 16:48 PDT by Dean Jackson
Modified: 2019-06-26 18:49 PDT (History)
4 users (show)

See Also:


Attachments
Patch (19.37 KB, patch)
2019-06-26 17:08 PDT, Dean Jackson
thorton: review+
Details | Formatted Diff | Diff
Patch (19.36 KB, patch)
2019-06-26 17:42 PDT, Dean Jackson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Jackson 2019-06-26 16:48:44 PDT
Expose UIAction identifiers for _WKElementActions
Comment 1 Radar WebKit Bug Importer 2019-06-26 16:49:08 PDT
<rdar://problem/52218950>
Comment 2 Dean Jackson 2019-06-26 17:08:11 PDT
Created attachment 372971 [details]
Patch
Comment 3 Tim Horton 2019-06-26 17:31:36 PDT
Comment on attachment 372971 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=372971&action=review

> Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.h:65
> -+ (UIImage *)imageForElementActionType:(_WKElementActionType)actionType WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
> ++ (UIImage *)imageForElementActionType:(_WKElementActionType)actionType WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(13.0));

Why this change?

> Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm:217
> +#if !defined(TARGET_OS_IOS) || TARGET_OS_IOS

Why not a PLATFORM macro? This is an implementation file.
Comment 4 Dean Jackson 2019-06-26 17:42:35 PDT
Created attachment 372976 [details]
Patch
Comment 5 Dean Jackson 2019-06-26 17:52:18 PDT
Comment on attachment 372971 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=372971&action=review

>> Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.h:65
>> ++ (UIImage *)imageForElementActionType:(_WKElementActionType)actionType WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(13.0));
> 
> Why this change?

Because we have announced that the next version of iOS will be called 13?

>> Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm:217
>> +#if !defined(TARGET_OS_IOS) || TARGET_OS_IOS
> 
> Why not a PLATFORM macro? This is an implementation file.

Yes, thanks. Will fix.
Comment 6 Dean Jackson 2019-06-26 18:11:39 PDT
Committed r246865: <https://trac.webkit.org/changeset/246865>
Comment 7 Darin Adler 2019-06-26 18:34:18 PDT
I still see TARGET_OS_IOS in the .mm file.
Comment 8 Dean Jackson 2019-06-26 18:44:42 PDT
(In reply to Darin Adler from comment #7)
> I still see TARGET_OS_IOS in the .mm file.

That was fixed, along with other things in https://bugs.webkit.org/show_bug.cgi?id=199255 which was r246867
Comment 9 Darin Adler 2019-06-26 18:49:10 PDT
Ah, great, how did I miss that? I actually looked at that check-in first!