Changeset 247657 in webkit
- Timestamp:
- Jul 19, 2019, 3:50:17 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/Cocoa/WKUIDelegate.h (modified) (2 diffs)
-
UIProcess/API/Cocoa/WKUIDelegatePrivate.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r247656 r247657 1 2019-07-19 Dean Jackson <dino@apple.com> 2 3 Provide correct names for UIContextMenuInteraction API replacements 4 https://bugs.webkit.org/show_bug.cgi?id=199966 5 6 Reviewed by Tim Horton. 7 8 We had some old incorrect names for replacements to SPI. While 9 here, I reordered and expanded the documentation for the new API. 10 11 * UIProcess/API/Cocoa/WKUIDelegate.h: 12 * UIProcess/API/Cocoa/WKUIDelegatePrivate.h: 13 1 14 2019-07-19 Daniel Bates <dabates@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegate.h
r246598 r247657 175 175 176 176 /** 177 * @abstract Called when the context menu will be presented. 178 * 179 * @param webView The web view invoking the delegate method. 180 * @param elementInfo The elementInfo for the element the user is touching. 181 */ 182 183 - (void)webView:(WKWebView *)webView contextMenuWillPresentForElement:(WKContextMenuElementInfo *)elementInfo WK_API_AVAILABLE(ios(WK_IOS_TBA)); 184 185 /** 177 186 * @abstract Called when the context menu configured by the UIContextMenuConfiguration from 178 * webView:contextMenuConfigurationForElement:completionHandler: is committed. 187 * webView:contextMenuConfigurationForElement:completionHandler: is committed. That is, when 188 * the user has selected the view provided in the UIContextMenuContentPreviewProvider. 179 189 * 180 190 * @param webView The web view invoking the delegate method. … … 183 193 */ 184 194 185 - (void)webView:(WKWebView *)webView contextMenuForElement:(WKContextMenuElementInfo *)elementInfo willCommitWithAnimator:(id<UIContextMenuInteractionCommitAnimating>)animator WK_API_AVAILABLE(ios(WK_IOS_TBA)); 186 187 /** 188 * @abstract Called when the context menu will be presented. 189 * 190 * @param webView The web view invoking the delegate method. 191 * @param elementInfo The elementInfo for the element the user is touching. 192 */ 193 194 - (void)webView:(WKWebView *)webView contextMenuWillPresentForElement:(WKContextMenuElementInfo *)elementInfo WK_API_AVAILABLE(ios(WK_IOS_TBA)); 195 196 /** 197 * @abstract Called when the context menu ends. 195 - (void)webView:(WKWebView *)webView contextMenuForElement:(WKContextMenuElementInfo *)elementInfo willCommitWithAnimator:(id <UIContextMenuInteractionCommitAnimating>)animator WK_API_AVAILABLE(ios(WK_IOS_TBA)); 196 197 /** 198 * @abstract Called when the context menu ends, either by being dismissed or when a menu action is taken. 198 199 * 199 200 * @param webView The web view invoking the delegate method. -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
r247308 r247657 145 145 146 146 - (UIViewController *)_webView:(WKWebView *)webView previewViewControllerForURL:(NSURL *)url WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:completionHandler:", ios(9.0, WK_IOS_TBA)); 147 - (void)_webView:(WKWebView *)webView commitPreviewedViewController:(UIViewController *)previewedViewController WK_API_DEPRECATED_WITH_REPLACEMENT("webView:co mmitContextMenu:", ios(9.0, WK_IOS_TBA));147 - (void)_webView:(WKWebView *)webView commitPreviewedViewController:(UIViewController *)previewedViewController WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuForElement:willCommitWithAnimator:", ios(9.0, WK_IOS_TBA)); 148 148 - (void)_webView:(WKWebView *)webView willPreviewImageWithURL:(NSURL *)imageURL WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuConfigurationForElement:completionHandler:", ios(9.0, WK_IOS_TBA)); 149 - (void)_webView:(WKWebView *)webView commitPreviewedImageWithURL:(NSURL *)imageURL WK_API_DEPRECATED_WITH_REPLACEMENT("webView:co mmitContextMenu:", ios(9.0, WK_IOS_TBA));150 - (void)_webView:(WKWebView *)webView didDismissPreviewViewController:(UIViewController *)previewedViewController committing:(BOOL)committing WK_API_DEPRECATED_WITH_REPLACEMENT("webView: dismissContextMenu:", ios(9.0, WK_IOS_TBA));151 - (void)_webView:(WKWebView *)webView didDismissPreviewViewController:(UIViewController *)previewedViewController WK_API_DEPRECATED_WITH_REPLACEMENT("webView: dismissContextMenu:", ios(9.0, WK_IOS_TBA));149 - (void)_webView:(WKWebView *)webView commitPreviewedImageWithURL:(NSURL *)imageURL WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuForElement:willCommitWithAnimator:", ios(9.0, WK_IOS_TBA)); 150 - (void)_webView:(WKWebView *)webView didDismissPreviewViewController:(UIViewController *)previewedViewController committing:(BOOL)committing WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuDidEndForElement:", ios(9.0, WK_IOS_TBA)); 151 - (void)_webView:(WKWebView *)webView didDismissPreviewViewController:(UIViewController *)previewedViewController WK_API_DEPRECATED_WITH_REPLACEMENT("webView:contextMenuDidEndForElement:", ios(9.0, WK_IOS_TBA)); 152 152 153 153 #if TARGET_OS_IOS
Note:
See TracChangeset
for help on using the changeset viewer.