| OLD | NEW |
| 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 <ChromeWebView/cwv_export.h> | 7 #import <ChromeWebView/cwv_export.h> |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 @class CWVScrollView; | 10 @class CWVScrollView; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Whether or not this web view is loading a page. | 42 // Whether or not this web view is loading a page. |
| 43 @property(nonatomic, readonly) BOOL isLoading; | 43 @property(nonatomic, readonly) BOOL isLoading; |
| 44 | 44 |
| 45 // The URL displayed in the url bar. | 45 // The URL displayed in the url bar. |
| 46 @property(nonatomic, readonly) NSURL* visibleURL; | 46 @property(nonatomic, readonly) NSURL* visibleURL; |
| 47 | 47 |
| 48 // The URL of the current document. | 48 // The URL of the current document. |
| 49 @property(nonatomic, readonly) NSURL* lastCommittedURL; | 49 @property(nonatomic, readonly) NSURL* lastCommittedURL; |
| 50 | 50 |
| 51 // The current page title. | 51 // The current page title. KVO compliant. |
| 52 @property(nonatomic, readonly, copy) NSString* title; | 52 @property(nonatomic, readonly, copy) NSString* title; |
| 53 | 53 |
| 54 // Page loading progress from 0.0 to 1.0. KVO compliant. | 54 // Page loading progress from 0.0 to 1.0. KVO compliant. |
| 55 // | 55 // |
| 56 // It is 0.0 initially before the first navigation starts. After a navigation | 56 // It is 0.0 initially before the first navigation starts. After a navigation |
| 57 // completes, it remains at 1.0 until a new navigation starts, at which point it | 57 // completes, it remains at 1.0 until a new navigation starts, at which point it |
| 58 // is reset to 0.0. | 58 // is reset to 0.0. |
| 59 @property(nonatomic, readonly) double estimatedProgress; | 59 @property(nonatomic, readonly) double estimatedProgress; |
| 60 | 60 |
| 61 // The scroll view associated with the web view. | 61 // The scroll view associated with the web view. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 - (void)loadRequest:(NSURLRequest*)request; | 109 - (void)loadRequest:(NSURLRequest*)request; |
| 110 | 110 |
| 111 // Evaluates a JavaScript string. | 111 // Evaluates a JavaScript string. |
| 112 // The completion handler is invoked when script evaluation completes. | 112 // The completion handler is invoked when script evaluation completes. |
| 113 - (void)evaluateJavaScript:(NSString*)javaScriptString | 113 - (void)evaluateJavaScript:(NSString*)javaScriptString |
| 114 completionHandler:(void (^)(id, NSError*))completionHandler; | 114 completionHandler:(void (^)(id, NSError*))completionHandler; |
| 115 | 115 |
| 116 @end | 116 @end |
| 117 | 117 |
| 118 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ | 118 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ |
| OLD | NEW |