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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 - (void)resetInjectedWebViewContentView; | 307 - (void)resetInjectedWebViewContentView; |
308 // Returns the number of observers registered for this CRWWebController. | 308 // Returns the number of observers registered for this CRWWebController. |
309 - (NSUInteger)observerCount; | 309 - (NSUInteger)observerCount; |
310 - (void)setURLOnStartLoading:(const GURL&)url; | 310 - (void)setURLOnStartLoading:(const GURL&)url; |
311 - (void)simulateLoadRequestWithURL:(const GURL&)URL; | 311 - (void)simulateLoadRequestWithURL:(const GURL&)URL; |
312 - (NSString*)externalRequestWindowName; | 312 - (NSString*)externalRequestWindowName; |
313 | 313 |
314 // Returns the header height. | 314 // Returns the header height. |
315 - (CGFloat)headerHeight; | 315 - (CGFloat)headerHeight; |
316 | 316 |
| 317 // Loads the HTML into the page at the given URL. |
| 318 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL; |
| 319 |
317 // Caches request POST data in the given session entry. Exposed for testing. | 320 // Caches request POST data in the given session entry. Exposed for testing. |
318 - (void)cachePOSTDataForRequest:(NSURLRequest*)request | 321 - (void)cachePOSTDataForRequest:(NSURLRequest*)request |
319 inSessionEntry:(CRWSessionEntry*)currentSessionEntry; | 322 inSessionEntry:(CRWSessionEntry*)currentSessionEntry; |
320 | 323 |
321 // Acts on a single message from the JS object, parsed from JSON into a | 324 // Acts on a single message from the JS object, parsed from JSON into a |
322 // DictionaryValue. Returns NO if the format for the message was invalid. | 325 // DictionaryValue. Returns NO if the format for the message was invalid. |
323 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage | 326 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage |
324 userIsInteracting:(BOOL)userIsInteracting | 327 userIsInteracting:(BOOL)userIsInteracting |
325 originURL:(const GURL&)originURL; | 328 originURL:(const GURL&)originURL; |
326 | 329 |
327 @end | 330 @end |
328 | 331 |
329 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 332 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
OLD | NEW |