| 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/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_ |
| OLD | NEW |