OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_ | 5 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_ |
6 #define IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_ | 6 #define IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_ |
7 | 7 |
| 8 #import <ChromeWebView/cwv_export.h> |
8 #import <CoreGraphics/CoreGraphics.h> | 9 #import <CoreGraphics/CoreGraphics.h> |
9 #import <UIKit/UIKit.h> | 10 #import <UIKit/UIKit.h> |
10 | 11 |
11 #include "cwv_export.h" | |
12 | |
13 @class CWVHTMLElement; | 12 @class CWVHTMLElement; |
14 @class CWVWebView; | 13 @class CWVWebView; |
15 @class CWVWebViewConfiguration; | 14 @class CWVWebViewConfiguration; |
16 @class CWVNavigationAction; | 15 @class CWVNavigationAction; |
17 | 16 |
18 // UI delegate interface for a CWVWebView. Embedders can implement the | 17 // UI delegate interface for a CWVWebView. Embedders can implement the |
19 // functions in order to customize library behavior. | 18 // functions in order to customize library behavior. |
20 CWV_EXPORT | 19 CWV_EXPORT |
21 @protocol CWVUIDelegate<NSObject> | 20 @protocol CWVUIDelegate<NSObject> |
22 | 21 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 - (void)webView:(CWVWebView*)webView | 59 - (void)webView:(CWVWebView*)webView |
61 runJavaScriptTextInputPanelWithPrompt:(NSString*)prompt | 60 runJavaScriptTextInputPanelWithPrompt:(NSString*)prompt |
62 defaultText:(NSString*)defaultText | 61 defaultText:(NSString*)defaultText |
63 pageURL:(NSURL*)URL | 62 pageURL:(NSURL*)URL |
64 completionHandler: | 63 completionHandler: |
65 (void (^)(NSString*))completionHandler; | 64 (void (^)(NSString*))completionHandler; |
66 | 65 |
67 @end | 66 @end |
68 | 67 |
69 #endif // IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_ | 68 #endif // IOS_WEB_VIEW_PUBLIC_CWV_UI_DELEGATE_H_ |
OLD | NEW |