| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 @property(nonatomic, readonly) BOOL userIsInteracting; | 282 @property(nonatomic, readonly) BOOL userIsInteracting; |
| 283 | 283 |
| 284 // Injects a CRWWebViewContentView for testing. Takes ownership of | 284 // Injects a CRWWebViewContentView for testing. Takes ownership of |
| 285 // |webViewContentView|. | 285 // |webViewContentView|. |
| 286 - (void)injectWebViewContentView:(CRWWebViewContentView*)webViewContentView; | 286 - (void)injectWebViewContentView:(CRWWebViewContentView*)webViewContentView; |
| 287 - (void)resetInjectedWebViewContentView; | 287 - (void)resetInjectedWebViewContentView; |
| 288 // Returns the number of observers registered for this CRWWebController. | 288 // Returns the number of observers registered for this CRWWebController. |
| 289 - (NSUInteger)observerCount; | 289 - (NSUInteger)observerCount; |
| 290 - (void)setURLOnStartLoading:(const GURL&)url; | 290 - (void)setURLOnStartLoading:(const GURL&)url; |
| 291 - (void)simulateLoadRequestWithURL:(const GURL&)URL; | 291 - (void)simulateLoadRequestWithURL:(const GURL&)URL; |
| 292 - (NSString*)externalRequestWindowName; | |
| 293 | 292 |
| 294 // Returns the header height. | 293 // Returns the header height. |
| 295 - (CGFloat)headerHeight; | 294 - (CGFloat)headerHeight; |
| 296 | 295 |
| 297 // Loads the HTML into the page at the given URL. | 296 // Loads the HTML into the page at the given URL. |
| 298 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL; | 297 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL; |
| 299 | 298 |
| 300 // Caches request POST data in the given session entry. Exposed for testing. | 299 // Caches request POST data in the given session entry. Exposed for testing. |
| 301 - (void)cachePOSTDataForRequest:(NSURLRequest*)request | 300 - (void)cachePOSTDataForRequest:(NSURLRequest*)request |
| 302 inSessionEntry:(CRWSessionEntry*)currentSessionEntry; | 301 inSessionEntry:(CRWSessionEntry*)currentSessionEntry; |
| 303 | 302 |
| 304 // Acts on a single message from the JS object, parsed from JSON into a | 303 // Acts on a single message from the JS object, parsed from JSON into a |
| 305 // DictionaryValue. Returns NO if the format for the message was invalid. | 304 // DictionaryValue. Returns NO if the format for the message was invalid. |
| 306 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage | 305 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage |
| 307 userIsInteracting:(BOOL)userIsInteracting | 306 userIsInteracting:(BOOL)userIsInteracting |
| 308 originURL:(const GURL&)originURL; | 307 originURL:(const GURL&)originURL; |
| 309 | 308 |
| 310 @end | 309 @end |
| 311 | 310 |
| 312 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 311 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
| OLD | NEW |