| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // covered by the toolbar. | 271 // covered by the toolbar. |
| 272 - (CGRect)visibleFrame; | 272 - (CGRect)visibleFrame; |
| 273 | 273 |
| 274 - (CRWJSInjectionReceiver*)jsInjectionReceiver; | 274 - (CRWJSInjectionReceiver*)jsInjectionReceiver; |
| 275 | 275 |
| 276 // Load the correct HTML page for |error| in a native controller, retrieved | 276 // Load the correct HTML page for |error| in a native controller, retrieved |
| 277 // from the native provider. Call |loadNativeViewWithSuccess:NO| to load the | 277 // from the native provider. Call |loadNativeViewWithSuccess:NO| to load the |
| 278 // native controller. | 278 // native controller. |
| 279 - (void)loadErrorInNativeView:(NSError*)error; | 279 - (void)loadErrorInNativeView:(NSError*)error; |
| 280 | 280 |
| 281 // Helper method called at the end of history navigation methods goBack, | |
| 282 // goForward, and goDelta. Loads a new URL if the current entry is not from a | |
| 283 // pushState() navigation from |fromEntry|. |fromEntry| is the | |
| 284 // CRWSessionEntry that was the current entry prior to the navigation. | |
| 285 // TODO(rohitrao): This is only exposed so Tab can call it temporarily. Remove | |
| 286 // as soon as all the Tab calls have moved into CRWWebController. | |
| 287 - (void)finishHistoryNavigationFromEntry:(CRWSessionEntry*)fromEntry; | |
| 288 | |
| 289 // Returns the native controller (if any) current mananging the content. | 281 // Returns the native controller (if any) current mananging the content. |
| 290 - (id<CRWNativeContent>)nativeController; | 282 - (id<CRWNativeContent>)nativeController; |
| 291 @end | 283 @end |
| 292 | 284 |
| 293 #pragma mark Testing | 285 #pragma mark Testing |
| 294 | 286 |
| 295 @interface CRWWebController (UsedOnlyForTesting) // Testing or internal API. | 287 @interface CRWWebController (UsedOnlyForTesting) // Testing or internal API. |
| 296 | 288 |
| 297 // YES if a user interaction has been registered at any time since the page has | 289 // YES if a user interaction has been registered at any time since the page has |
| 298 // loaded. | 290 // loaded. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 322 | 314 |
| 323 // Acts on a single message from the JS object, parsed from JSON into a | 315 // Acts on a single message from the JS object, parsed from JSON into a |
| 324 // DictionaryValue. Returns NO if the format for the message was invalid. | 316 // DictionaryValue. Returns NO if the format for the message was invalid. |
| 325 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage | 317 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage |
| 326 userIsInteracting:(BOOL)userIsInteracting | 318 userIsInteracting:(BOOL)userIsInteracting |
| 327 originURL:(const GURL&)originURL; | 319 originURL:(const GURL&)originURL; |
| 328 | 320 |
| 329 @end | 321 @end |
| 330 | 322 |
| 331 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 323 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
| OLD | NEW |