OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ | 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ |
6 #define IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ | 6 #define IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #import <Webkit/Webkit.h> | 9 #import <WebKit/WebKit.h> |
10 | 10 |
11 #import "ios/web/public/block_types.h" | 11 #import "ios/web/public/block_types.h" |
12 | 12 |
13 @protocol CRWContextMenuDelegate; | 13 @protocol CRWContextMenuDelegate; |
14 @protocol CRWJSInjectionEvaluator; | 14 @protocol CRWJSInjectionEvaluator; |
15 | 15 |
16 // A controller that will recognise context menu gesture on |webView|. This | 16 // A controller that will recognise context menu gesture on |webView|. This |
17 // controller will rely on a long press gesture recognizer and JavaScript to | 17 // controller will rely on a long press gesture recognizer and JavaScript to |
18 // determine the element on which context menu is triggered. | 18 // determine the element on which context menu is triggered. |
19 // The trigger delay is slightly shorter that ths system's one. | 19 // The trigger delay is slightly shorter that ths system's one. |
(...skipping 12 matching lines...) Expand all Loading... |
32 - (instancetype)initWithWebView:(WKWebView*)webView | 32 - (instancetype)initWithWebView:(WKWebView*)webView |
33 injectionEvaluator:(id<CRWJSInjectionEvaluator>)injectionEvaluator | 33 injectionEvaluator:(id<CRWJSInjectionEvaluator>)injectionEvaluator |
34 delegate:(id<CRWContextMenuDelegate>)delegate | 34 delegate:(id<CRWContextMenuDelegate>)delegate |
35 NS_DESIGNATED_INITIALIZER; | 35 NS_DESIGNATED_INITIALIZER; |
36 | 36 |
37 - (instancetype)init NS_UNAVAILABLE; | 37 - (instancetype)init NS_UNAVAILABLE; |
38 | 38 |
39 @end | 39 @end |
40 | 40 |
41 #endif // IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ | 41 #endif // IOS_WEB_WEB_STATE_UI_CRW_CONTEXT_MENU_CONTROLLER_H_ |
OLD | NEW |