OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ | |
6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ | |
7 | |
8 #import <UIKit/UIKit.h> | |
9 #import <Webkit/Webkit.h> | |
10 | |
11 #import "ios/web/public/block_types.h" | |
12 #import "ios/web/public/web_state/context_menu_params.h" | |
13 | |
14 @protocol CRWContextMenuControllerDelegate | |
15 - (BOOL)handleContextMenu:(const web::ContextMenuParams&)params; | |
16 @end | |
17 | |
18 @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
| |
19 - (UIView*)webView; | |
20 - (UIScrollView*)webScrollView; | |
21 - (void)executeJavaScript:(NSString*)script | |
22 completionHandler:(web::JavaScriptResultBlock)completionHandler; | |
23 @end | |
24 | |
25 @interface CRWContextMenuController : NSObject | |
26 | |
27 - (instancetype)initWithWebView:(id<CRWContextMenuControllerWebView>)webView | |
28 delegate:(id<CRWContextMenuControllerDelegate>)delegate | |
29 NS_DESIGNATED_INITIALIZER; | |
30 | |
31 - (instancetype)init NS_UNAVAILABLE; | |
32 | |
33 @end | |
34 | |
35 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ | |
OLD | NEW |