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

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

Issue 2691883003: Rename ios/web_view public delegates from CRIWV to CWV prefix. (Closed)
Patch Set: Created 3 years, 10 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ 4 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_
5 #define IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ 5 #define IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 @class CWVWebViewConfiguration; 9 @class CWVWebViewConfiguration;
10 @protocol CRIWVWebViewDelegate; 10 @protocol CWVWebViewDelegate;
11 11
12 // A web view component (like WKWebView) which uses iOS Chromium's web view 12 // A web view component (like WKWebView) which uses iOS Chromium's web view
13 // implementation. 13 // implementation.
14 // 14 //
15 // In addition to WKWebView features, it allows Translate, Find In Page, 15 // In addition to WKWebView features, it allows Translate, Find In Page,
16 // Customizable Context Menus, and maybe more. 16 // Customizable Context Menus, and maybe more.
17 // 17 //
18 // Concrete instances can be created through CRIWV. 18 // Concrete instances can be created through CRIWV.
19 @interface CWVWebView : UIView 19 @interface CWVWebView : UIView
20 20
21 // The view used to display web content. 21 // The view used to display web content.
22 @property(nonatomic, readonly) UIView* view; 22 @property(nonatomic, readonly) UIView* view;
23 23
24 // This web view's delegate. 24 // This web view's delegate.
25 @property(nonatomic, weak) id<CRIWVWebViewDelegate> delegate; 25 @property(nonatomic, weak) id<CWVWebViewDelegate> delegate;
26 26
27 // Whether or not this web view can go backwards or forwards. 27 // Whether or not this web view can go backwards or forwards.
28 @property(nonatomic, readonly) BOOL canGoBack; 28 @property(nonatomic, readonly) BOOL canGoBack;
29 @property(nonatomic, readonly) BOOL canGoForward; 29 @property(nonatomic, readonly) BOOL canGoForward;
30 30
31 // Whether or not this web view is loading a page. 31 // Whether or not this web view is loading a page.
32 @property(nonatomic, readonly) BOOL isLoading; 32 @property(nonatomic, readonly) BOOL isLoading;
33 33
34 // The current URL, for display to the user. 34 // The current URL, for display to the user.
35 @property(nonatomic, readonly) NSURL* visibleURL; 35 @property(nonatomic, readonly) NSURL* visibleURL;
(...skipping 29 matching lines...) Expand all
65 - (void)loadRequest:(NSURLRequest*)request; 65 - (void)loadRequest:(NSURLRequest*)request;
66 66
67 // Evaluates a JavaScript string. 67 // Evaluates a JavaScript string.
68 // The completion handler is invoked when script evaluation completes. 68 // The completion handler is invoked when script evaluation completes.
69 - (void)evaluateJavaScript:(NSString*)javaScriptString 69 - (void)evaluateJavaScript:(NSString*)javaScriptString
70 completionHandler:(void (^)(id, NSError*))completionHandler; 70 completionHandler:(void (^)(id, NSError*))completionHandler;
71 71
72 @end 72 @end
73 73
74 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ 74 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698