Changeset 246580 in webkit
- Timestamp:
- Jun 18, 2019 9:44:11 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r246575 r246580 1 2019-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 1 14 2019-06-18 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegate.h
r246575 r246580 39 39 @class WKWebViewConfiguration; 40 40 @class WKWindowFeatures; 41 42 #if TARGET_OS_IPHONE43 @class WKContextMenuElementInfo;44 @class UIContextMenuConfiguration;45 @protocol UIContextMenuInteractionCommitAnimating;46 #endif47 41 48 42 /*! A class conforming to the WKUIDelegate protocol provides methods for … … 136 130 limited to links. In the future, it could be invoked for additional elements. 137 131 */ 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)); 139 133 140 134 /*! @abstract Allows your app to provide a custom view controller to show when the given element is peeked. … … 151 145 if a non-nil view controller was returned. 152 146 */ 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)); 154 148 155 149 /*! @abstract Allows your app to pop to the view controller it created. … … 157 151 @param previewingViewController The view controller that is being popped. 158 152 */ 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)); 200 154 201 155 #endif // TARGET_OS_IPHONE -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
r246575 r246580 148 148 149 149 #if TARGET_OS_IOS 150 // This must be keptto 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. 151 151 - (void)_webView:(WKWebView *)webView contextMenuConfigurationForElement:(WKContextMenuElementInfo *)elementInfo completionHandler:(void(^)(UIContextMenuConfiguration *))completionHandler WK_API_AVAILABLE(ios(WK_IOS_TBA)); 152 152 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)); 157 157 #endif 158 158
Note: See TracChangeset
for help on using the changeset viewer.