| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 class WebState; | 54 class WebState; |
| 55 class WebInterstitialImpl; | 55 class WebInterstitialImpl; |
| 56 class WebStateImpl; | 56 class WebStateImpl; |
| 57 } | 57 } |
| 58 | 58 |
| 59 // Manages a view that can be used either for rendering web content in a web | 59 // Manages a view that can be used either for rendering web content in a web |
| 60 // view, or native content in a view provided by a NativeContentProvider. | 60 // view, or native content in a view provided by a NativeContentProvider. |
| 61 // CRWWebController also transparently evicts and restores the internal web | 61 // CRWWebController also transparently evicts and restores the internal web |
| 62 // view based on memory pressure, and manages access to interact with the | 62 // view based on memory pressure, and manages access to interact with the |
| 63 // web view. | 63 // web view. |
| 64 // This is an abstract class which must not be instantiated directly. A factory | 64 // This is an abstract class which must not be instantiated directly. |
| 65 // function from web_controller_factory.h should be used instead. | |
| 66 // TODO(stuartmorgan): Move all of the navigation APIs out of this class. | 65 // TODO(stuartmorgan): Move all of the navigation APIs out of this class. |
| 67 @interface CRWWebController : NSObject<CRWJSInjectionEvaluator, | 66 @interface CRWWebController : NSObject<CRWJSInjectionEvaluator, |
| 68 CRWRequestTrackerDelegate, | 67 CRWRequestTrackerDelegate, |
| 69 CRWTouchTrackingDelegate, | 68 CRWTouchTrackingDelegate, |
| 70 UIGestureRecognizerDelegate> | 69 UIGestureRecognizerDelegate> |
| 71 | 70 |
| 72 // Whether or not a UIWebView is allowed to exist in this CRWWebController. | 71 // Whether or not a UIWebView is allowed to exist in this CRWWebController. |
| 73 // Defaults to NO; this should be enabled before attempting to access the view. | 72 // Defaults to NO; this should be enabled before attempting to access the view. |
| 74 @property(nonatomic, assign) BOOL webUsageEnabled; | 73 @property(nonatomic, assign) BOOL webUsageEnabled; |
| 75 | 74 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // Returns the header height. | 311 // Returns the header height. |
| 313 - (CGFloat)headerHeight; | 312 - (CGFloat)headerHeight; |
| 314 | 313 |
| 315 // Caches request POST data in the given session entry. Exposed for testing. | 314 // Caches request POST data in the given session entry. Exposed for testing. |
| 316 - (void)cachePOSTDataForRequest:(NSURLRequest*)request | 315 - (void)cachePOSTDataForRequest:(NSURLRequest*)request |
| 317 inSessionEntry:(CRWSessionEntry*)currentSessionEntry; | 316 inSessionEntry:(CRWSessionEntry*)currentSessionEntry; |
| 318 | 317 |
| 319 @end | 318 @end |
| 320 | 319 |
| 321 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 320 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
| OLD | NEW |