Changeset 246580 in webkit


Ignore:
Timestamp:
Jun 18, 2019 9:44:11 PM (5 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r246575.

Breaks internal builds.

Reverted changeset:

"Update WebKit API to separately retrieve actions and use
context menus"
https://bugs.webkit.org/show_bug.cgi?id=198974
https://trac.webkit.org/changeset/246575

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r246575 r246580  
     12019-06-18  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r246575.
     4
     5        Breaks internal builds.
     6
     7        Reverted changeset:
     8
     9        "Update WebKit API to separately retrieve actions and use
     10        context menus"
     11        https://bugs.webkit.org/show_bug.cgi?id=198974
     12        https://trac.webkit.org/changeset/246575
     13
    1142019-06-18  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegate.h

    r246575 r246580  
    3939@class WKWebViewConfiguration;
    4040@class WKWindowFeatures;
    41 
    42 #if TARGET_OS_IPHONE
    43 @class WKContextMenuElementInfo;
    44 @class UIContextMenuConfiguration;
    45 @protocol UIContextMenuInteractionCommitAnimating;
    46 #endif
    4741
    4842/*! A class conforming to the WKUIDelegate protocol provides methods for
     
    136130 limited to links. In the future, it could be invoked for additional elements.
    137131 */
    138 - (BOOL)webView:(WKWebView *)webView shouldPreviewElement:(WKPreviewElementInfo *)elementInfo WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:completionHandler:", ios(10.0, WK_IOS_TBA));
     132- (BOOL)webView:(WKWebView *)webView shouldPreviewElement:(WKPreviewElementInfo *)elementInfo WK_API_DEPRECATED("This API will be replaced", ios(10.0, WK_IOS_TBA));
    139133
    140134/*! @abstract Allows your app to provide a custom view controller to show when the given element is peeked.
     
    151145 if a non-nil view controller was returned.
    152146 */
    153 - (nullable UIViewController *)webView:(WKWebView *)webView previewingViewControllerForElement:(WKPreviewElementInfo *)elementInfo defaultActions:(NSArray<id <WKPreviewActionItem>> *)previewActions WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:completionHandler:", ios(10.0, WK_IOS_TBA));
     147- (nullable UIViewController *)webView:(WKWebView *)webView previewingViewControllerForElement:(WKPreviewElementInfo *)elementInfo defaultActions:(NSArray<id <WKPreviewActionItem>> *)previewActions WK_API_DEPRECATED("This API will be replaced", ios(10.0, WK_IOS_TBA));
    154148
    155149/*! @abstract Allows your app to pop to the view controller it created.
     
    157151 @param previewingViewController The view controller that is being popped.
    158152 */
    159 - (void)webView:(WKWebView *)webView commitPreviewingViewController:(UIViewController *)previewingViewController WK_API_DEPRECATED("webView:contextMenuForElement:willCommitWithAnimator:", ios(10.0, WK_IOS_TBA));
    160 
    161 /**
    162  * @abstract Called when a context menu interaction begins.
    163  *
    164  * @param webView The web view invoking the delegate method.
    165  * @param elementInfo The elementInfo for the element the user is touching.
    166  * @param completionHandler A completion handler to call once a it has been decided whether or not to show a context menu.
    167  * Pass a valid UIContextMenuConfiguration to show a context menu, or pass nil to not show a context menu.
    168  */
    169 
    170 - (void)webView:(WKWebView *)webView contextMenuConfigurationForElement:(WKContextMenuElementInfo *)elementInfo completionHandler:(void (^)(UIContextMenuConfiguration * _Nullable configuration))completionHandler WK_API_AVAILABLE(ios(WK_IOS_TBA));
    171 
    172 /**
    173  * @abstract Called when the context menu configured by the UIContextMenuConfiguration from
    174  * webView:contextMenuConfigurationForElement:completionHandler: is committed.
    175  *
    176  * @param webView The web view invoking the delegate method.
    177  * @param elementInfo The elementInfo for the element the user is touching.
    178  * @param animator The animator to use for the commit animation.
    179  */
    180 
    181 - (void)webView:(WKWebView *)webView contextMenuForElement:(WKContextMenuElementInfo *)elementInfo willCommitWithAnimator:(id<UIContextMenuInteractionCommitAnimating>)animator WK_API_AVAILABLE(ios(WK_IOS_TBA));
    182 
    183 /**
    184  * @abstract Called when the context menu will be presented.
    185  *
    186  * @param webView The web view invoking the delegate method.
    187  * @param elementInfo The elementInfo for the element the user is touching.
    188  */
    189 
    190 - (void)webView:(WKWebView *)webView contextMenuWillPresentForElement:(WKContextMenuElementInfo *)elementInfo WK_API_AVAILABLE(ios(WK_IOS_TBA));
    191 
    192 /**
    193  * @abstract Called when the context menu ends.
    194  *
    195  * @param webView The web view invoking the delegate method.
    196  * @param elementInfo The elementInfo for the element the user is touching.
    197  */
    198 
    199 - (void)webView:(WKWebView *)webView contextMenuDidEndForElement:(WKContextMenuElementInfo *)elementInfo WK_API_AVAILABLE(ios(WK_IOS_TBA));
     153- (void)webView:(WKWebView *)webView commitPreviewingViewController:(UIViewController *)previewingViewController WK_API_DEPRECATED("This API will be replaced", ios(10.0, WK_IOS_TBA));
    200154
    201155#endif // TARGET_OS_IPHONE
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h

    r246575 r246580  
    148148
    149149#if TARGET_OS_IOS
    150 // This must be kept to continue to do callbacks for image element context menus.
     150// This needs to be removed once there is an API version to continue to do callbacks for image element context menus.
    151151- (void)_webView:(WKWebView *)webView contextMenuConfigurationForElement:(WKContextMenuElementInfo *)elementInfo completionHandler:(void(^)(UIContextMenuConfiguration *))completionHandler WK_API_AVAILABLE(ios(WK_IOS_TBA));
    152152
    153 // These can be removed once the API version is adopted by all clients.
    154 - (void)_webView:(WKWebView *)webView contextMenuForElement:(WKContextMenuElementInfo *)elementInfo willCommitWithAnimator:(id<UIContextMenuInteractionCommitAnimating>)animator WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuForElement:willCommitWithAnimator:", ios(WK_IOS_TBA, WK_IOS_TBA));
    155 - (void)_webView:(WKWebView *)webView contextMenuWillPresentForElement:(WKContextMenuElementInfo *)elementInfo WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuWillPresentForElement:", ios(WK_IOS_TBA, WK_IOS_TBA));
    156 - (void)_webView:(WKWebView *)webView contextMenuDidEndForElement:(WKContextMenuElementInfo *)elementInfo WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuDidEndForElement:", ios(WK_IOS_TBA, WK_IOS_TBA));
     153// These can be removed once there is an API version.
     154- (void)_webView:(WKWebView *)webView contextMenuForElement:(WKContextMenuElementInfo *)elementInfo willCommitWithAnimator:(id<UIContextMenuInteractionCommitAnimating>)animator WK_API_AVAILABLE(ios(WK_IOS_TBA));
     155- (void)_webView:(WKWebView *)webView contextMenuWillPresentForElement:(WKContextMenuElementInfo *)elementInfo WK_API_AVAILABLE(ios(WK_IOS_TBA));
     156- (void)_webView:(WKWebView *)webView contextMenuDidEndForElement:(WKContextMenuElementInfo *)elementInfo WK_API_AVAILABLE(ios(WK_IOS_TBA));
    157157#endif
    158158
Note: See TracChangeset for help on using the changeset viewer.