Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: ios/web/public/web_state/ui/crw_context_menu_delegate.h

Issue 2627093003: Reuse context menu in StaticHTMLViewController (Closed)
Patch Set: feedback Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/public/web_state/ui/crw_native_content.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_DELEGATE_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTEXT_MENU_DELEGATE_H_
7
8 #import <WebKit/WebKit.h>
9
10 #import "ios/web/public/web_state/context_menu_params.h"
11
12 // Implement this protocol to listen to the custom context menu trigger from
13 // WKWebView.
14 @protocol CRWContextMenuDelegate
15 // Called when the custom Context menu recognizer triggers on |webView|.
16 // - triggered on a long press gesture, slightly shorter than the default
17 // context menu recognizer.
18 // - if result is YES, the system context many will be suppressed.
19 // YES must be returned from the same runloop.
20 // - if result is NO, the system context many will be displayed.
21 // - Client can return YES without showing any UI to cancel the system context
22 // menu.
23 // TODO(crbug.com/228179): This class only triggers context menu on mainFrame.
24 - (BOOL)webView:(WKWebView*)webView
25 handleContextMenu:(const web::ContextMenuParams&)params;
26 @end
27
28 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTEXT_MENU_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/public/web_state/ui/crw_native_content.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698