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