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

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: 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
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/CGGeometry.h>
Eugene But (OOO till 7-30) 2017/02/27 16:34:06 <CoreGraphics/CoreGraphics.h> https://google.gith
michaeldo 2017/02/27 19:02:06 Done.
9
10 @class CWVHTMLElement;
11 @class CWVWebView;
12 @class NSString;
Eugene But (OOO till 7-30) 2017/02/27 16:34:06 Optional nit: How about importing UIKit instead of
michaeldo 2017/02/27 19:02:06 Done.
13 @class UIView;
14
15 // UI delegate interface for a CWVWebView. Embedders can implement the
16 // functions in order to customize library behavior.
17 @protocol CWVUIDelegate<NSObject>
18
19 @optional
20 // Instructs the delegate to present context menu in response to user’s long
21 // press gesture at |location| in |view| coordinate space. |element| is an HTML
22 // element which received the gesture.
23 - (void)webView:(CWVWebView*)webView
24 runContextMenuWithTitle:(NSString*)menuTitle
25 forHTMLElement:(CWVHTMLElement*)element
26 inView:(UIView*)view
27 userGestureLocation:(CGPoint)location;
28
29 @end
30
31 #endif // IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698