Index: ios/web/public/web_state/ui/crw_context_menu_controller.h |
diff --git a/ios/web/public/web_state/ui/crw_context_menu_controller.h b/ios/web/public/web_state/ui/crw_context_menu_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..164e3b639b99b9414e86020e2e12c46c06dcf119 |
--- /dev/null |
+++ b/ios/web/public/web_state/ui/crw_context_menu_controller.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ |
+#define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ |
+ |
+#import <UIKit/UIKit.h> |
+#import <Webkit/Webkit.h> |
+ |
+#import "ios/web/public/block_types.h" |
+#import "ios/web/public/web_state/context_menu_params.h" |
+ |
+@protocol CRWContextMenuControllerDelegate |
+- (BOOL)handleContextMenu:(const web::ContextMenuParams&)params; |
+@end |
+ |
+@protocol CRWContextMenuControllerWebView |
Eugene But (OOO till 7-30)
2017/01/13 07:16:27
Is there a reason why you want this to be flexible
Olivier
2017/01/13 10:20:25
I made this to depend directly on WKWebWebView.
I
|
+- (UIView*)webView; |
+- (UIScrollView*)webScrollView; |
+- (void)executeJavaScript:(NSString*)script |
+ completionHandler:(web::JavaScriptResultBlock)completionHandler; |
+@end |
+ |
+@interface CRWContextMenuController : NSObject |
+ |
+- (instancetype)initWithWebView:(id<CRWContextMenuControllerWebView>)webView |
+ delegate:(id<CRWContextMenuControllerDelegate>)delegate |
+ NS_DESIGNATED_INITIALIZER; |
+ |
+- (instancetype)init NS_UNAVAILABLE; |
+ |
+@end |
+ |
+#endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ |