Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.h

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: Patch for landing Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #import "ios/web/public/navigation_manager.h" 11 #import "ios/web/public/navigation_manager.h"
12 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h" 12 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h"
13 #import "ios/web/public/web_state/ui/crw_web_delegate.h" 13 #import "ios/web/public/web_state/ui/crw_web_delegate.h"
14 #include "ios/web/public/web_state/url_verification_constants.h" 14 #include "ios/web/public/web_state/url_verification_constants.h"
15 #import "ios/web/web_state/ui/crw_touch_tracking_recognizer.h" 15 #import "ios/web/web_state/ui/crw_touch_tracking_recognizer.h"
16 #import "ios/web/web_state/ui/crw_web_view_navigation_proxy.h"
16 17
17 namespace web { 18 namespace web {
18 19
19 // Page load phases. 20 // Page load phases.
20 enum LoadPhase { 21 enum LoadPhase {
21 // In the LOAD_REQUESTED phase, the system predicts a page change is going to 22 // In the LOAD_REQUESTED phase, the system predicts a page change is going to
22 // happen but the page URL has not yet changed. 23 // happen but the page URL has not yet changed.
23 LOAD_REQUESTED = 0, 24 LOAD_REQUESTED = 0,
24 // In the PAGE_LOADING phase, the page URL has changed but the whole document 25 // In the PAGE_LOADING phase, the page URL has changed but the whole document
25 // may not be available for use. 26 // may not be available for use.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 @property(nonatomic, readonly) web::WebState* webState; 68 @property(nonatomic, readonly) web::WebState* webState;
68 @property(nonatomic, readonly) web::WebStateImpl* webStateImpl; 69 @property(nonatomic, readonly) web::WebStateImpl* webStateImpl;
69 70
70 // The container view used to display content. If the view has been purged due 71 // The container view used to display content. If the view has been purged due
71 // to low memory, this will recreate it. 72 // to low memory, this will recreate it.
72 @property(nonatomic, readonly) UIView* view; 73 @property(nonatomic, readonly) UIView* view;
73 74
74 // The web view proxy associated with this controller. 75 // The web view proxy associated with this controller.
75 @property(nonatomic, readonly) id<CRWWebViewProxy> webViewProxy; 76 @property(nonatomic, readonly) id<CRWWebViewProxy> webViewProxy;
76 77
78 // The web view navigation proxy associated with this controller.
79 @property(nonatomic, readonly) id<CRWWebViewNavigationProxy>
80 webViewNavigationProxy;
81
77 // The view that generates print data when printing. It is nil if printing 82 // The view that generates print data when printing. It is nil if printing
78 // is not supported. 83 // is not supported.
79 @property(nonatomic, readonly) UIView* viewForPrinting; 84 @property(nonatomic, readonly) UIView* viewForPrinting;
80 85
81 // Content view was reset due to low memory. Use placeholder overlay view on 86 // Content view was reset due to low memory. Use placeholder overlay view on
82 // next creation. 87 // next creation.
83 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay; 88 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay;
84 89
85 // Returns the current page loading phase. 90 // Returns the current page loading phase.
86 @property(nonatomic, readonly) web::LoadPhase loadPhase; 91 @property(nonatomic, readonly) web::LoadPhase loadPhase;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 284
280 // Returns the number of observers registered for this CRWWebController. 285 // Returns the number of observers registered for this CRWWebController.
281 - (NSUInteger)observerCount; 286 - (NSUInteger)observerCount;
282 287
283 // Loads the HTML into the page at the given URL. 288 // Loads the HTML into the page at the given URL.
284 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL; 289 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL;
285 290
286 @end 291 @end
287 292
288 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 293 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/web/test/fakes/test_navigation_manager_delegate.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698