OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/web/net/crw_request_tracker_delegate.h" | 10 #import "ios/web/net/crw_request_tracker_delegate.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // is not supported. | 91 // is not supported. |
92 @property(nonatomic, readonly) UIView* viewForPrinting; | 92 @property(nonatomic, readonly) UIView* viewForPrinting; |
93 | 93 |
94 // Content view was reset due to low memory. Use placeholder overlay view on | 94 // Content view was reset due to low memory. Use placeholder overlay view on |
95 // next creation. | 95 // next creation. |
96 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay; | 96 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay; |
97 | 97 |
98 // Returns the current page loading phase. | 98 // Returns the current page loading phase. |
99 @property(nonatomic, readonly) web::LoadPhase loadPhase; | 99 @property(nonatomic, readonly) web::LoadPhase loadPhase; |
100 | 100 |
| 101 // The fraction of the page load that has completed as a number between 0.0 |
| 102 // (nothing loaded) and 1.0 (fully loaded). |
| 103 @property(nonatomic, readonly) double loadingProgress; |
| 104 |
101 // Returns whether the page can navigate backwards or forwards. | 105 // Returns whether the page can navigate backwards or forwards. |
102 @property(nonatomic, readonly) BOOL canGoBack; | 106 @property(nonatomic, readonly) BOOL canGoBack; |
103 @property(nonatomic, readonly) BOOL canGoForward; | 107 @property(nonatomic, readonly) BOOL canGoForward; |
104 | 108 |
105 // Returns the x, y offset the content has been scrolled. | 109 // Returns the x, y offset the content has been scrolled. |
106 @property(nonatomic, readonly) CGPoint scrollPosition; | 110 @property(nonatomic, readonly) CGPoint scrollPosition; |
107 | 111 |
108 // Returns whether the top of the content is visible. | 112 // Returns whether the top of the content is visible. |
109 @property(nonatomic, readonly) BOOL atTop; | 113 @property(nonatomic, readonly) BOOL atTop; |
110 | 114 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 331 |
328 // Acts on a single message from the JS object, parsed from JSON into a | 332 // Acts on a single message from the JS object, parsed from JSON into a |
329 // DictionaryValue. Returns NO if the format for the message was invalid. | 333 // DictionaryValue. Returns NO if the format for the message was invalid. |
330 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage | 334 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage |
331 userIsInteracting:(BOOL)userIsInteracting | 335 userIsInteracting:(BOOL)userIsInteracting |
332 originURL:(const GURL&)originURL; | 336 originURL:(const GURL&)originURL; |
333 | 337 |
334 @end | 338 @end |
335 | 339 |
336 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 340 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
OLD | NEW |