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

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

Issue 1839323003: Move _changingHistoryState to superclass. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove old comment. Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PROTECTED_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
7 7
8 #import "ios/web/web_state/ui/crw_web_controller.h" 8 #import "ios/web/web_state/ui/crw_web_controller.h"
9 9
10 #import <WebKit/WebKit.h> 10 #import <WebKit/WebKit.h>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Loads request for the URL of the current navigation item. Subclasses may 84 // Loads request for the URL of the current navigation item. Subclasses may
85 // choose to build a new NSURLRequest and call |loadRequest| on the underlying 85 // choose to build a new NSURLRequest and call |loadRequest| on the underlying
86 // web view, or use native web view navigation where possible (for example, 86 // web view, or use native web view navigation where possible (for example,
87 // going back and forward through the history stack). 87 // going back and forward through the history stack).
88 - (void)loadRequestForCurrentNavigationItem; 88 - (void)loadRequestForCurrentNavigationItem;
89 89
90 // Cancels any load in progress in the web view. 90 // Cancels any load in progress in the web view.
91 - (void)abortWebLoad; 91 - (void)abortWebLoad;
92 92
93 // Returns selector to handle JavaScript message with command property
94 // |command|. Subclasses may override to handle class-specific messages.
95 - (SEL)selectorToHandleJavaScriptCommand:(const std::string&)command;
96
97 // Sets zoom scale value for webview scroll view from |zoomState|. 93 // Sets zoom scale value for webview scroll view from |zoomState|.
98 - (void)applyWebViewScrollZoomScaleFromZoomState: 94 - (void)applyWebViewScrollZoomScaleFromZoomState:
99 (const web::PageZoomState&)zoomState; 95 (const web::PageZoomState&)zoomState;
100 96
101 // Handles cancelled load in WKWebView (error with NSURLErrorCancelled code). 97 // Handles cancelled load in WKWebView (error with NSURLErrorCancelled code).
102 - (void)handleCancelledError:(NSError*)error; 98 - (void)handleCancelledError:(NSError*)error;
103 99
104 // Creates a web view with given |config|. No-op if web view is already created. 100 // Creates a web view with given |config|. No-op if web view is already created.
105 - (void)ensureWebViewCreatedWithConfiguration:(WKWebViewConfiguration*)config; 101 - (void)ensureWebViewCreatedWithConfiguration:(WKWebViewConfiguration*)config;
106 102
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // destruction. 173 // destruction.
178 @property(nonatomic, readonly) BOOL isHalted; 174 @property(nonatomic, readonly) BOOL isHalted;
179 175
180 // Returns whether the user is interacting with the page. 176 // Returns whether the user is interacting with the page.
181 @property(nonatomic, readonly) BOOL userIsInteracting; 177 @property(nonatomic, readonly) BOOL userIsInteracting;
182 178
183 // YES if a user interaction has been registered at any time since the page has 179 // YES if a user interaction has been registered at any time since the page has
184 // loaded. 180 // loaded.
185 @property(nonatomic, readwrite) BOOL userInteractionRegistered; 181 @property(nonatomic, readwrite) BOOL userInteractionRegistered;
186 182
183 // Whether the web page is currently performing window.history.pushState or
184 // window.history.replaceState
185 @property(nonatomic, readonly) BOOL changingHistoryState;
186
187 // Returns the current window id. 187 // Returns the current window id.
188 @property(nonatomic, readonly) NSString* windowId; 188 @property(nonatomic, readonly) NSString* windowId;
189 189
190 // Returns windowID that is saved when a page changes. Used to detect refreshes. 190 // Returns windowID that is saved when a page changes. Used to detect refreshes.
191 @property(nonatomic, readonly) NSString* lastSeenWindowID; 191 @property(nonatomic, readonly) NSString* lastSeenWindowID;
192 192
193 // Returns NavigationManager's session controller. 193 // Returns NavigationManager's session controller.
194 @property(nonatomic, readonly) CRWSessionController* sessionController; 194 @property(nonatomic, readonly) CRWSessionController* sessionController;
195 195
196 // Returns a new script which wraps |script| with windowID check so |script| is 196 // Returns a new script which wraps |script| with windowID check so |script| is
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 // Resets pending external request information. 336 // Resets pending external request information.
337 - (void)resetExternalRequest; 337 - (void)resetExternalRequest;
338 338
339 // Converts MIME type string to WebViewDocumentType. 339 // Converts MIME type string to WebViewDocumentType.
340 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; 340 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType;
341 341
342 @end 342 @end
343 343
344 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 344 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/ui/crw_wk_web_view_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698