Chromium Code Reviews| 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_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_ | |
| OLD | NEW |