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

Side by Side Diff: ios/web_view/public/cwv_ui_delegate.h

Issue 2723433004: Add CWVUIDelegate with method to customize context menu. (Closed)
Patch Set: Respond to comment. Created 3 years, 9 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_view/public/cwv_html_element.h ('k') | ios/web_view/public/cwv_web_view.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_VIEW_PUBLIC_CWV_UI_DELEGATE_H_
6 #define IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_
7
8 #import <CoreGraphics/CoreGraphics.h>
9 #import <UIKit/UIKit.h>
10
11 @class CWVHTMLElement;
12 @class CWVWebView;
13
14 // UI delegate interface for a CWVWebView. Embedders can implement the
15 // functions in order to customize library behavior.
16 @protocol CWVUIDelegate<NSObject>
17
18 @optional
19 // Instructs the delegate to present context menu in response to user’s long
20 // press gesture at |location| in |view| coordinate space. |element| is an HTML
21 // element which received the gesture.
22 - (void)webView:(CWVWebView*)webView
23 runContextMenuWithTitle:(NSString*)menuTitle
24 forHTMLElement:(CWVHTMLElement*)element
25 inView:(UIView*)view
26 userGestureLocation:(CGPoint)location;
27
28 @end
29
30 #endif // IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web_view/public/cwv_html_element.h ('k') | ios/web_view/public/cwv_web_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698