Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 | 93 // Returns selector to handle JavaScript message with command property |
| 94 // |command|. Subclasses may override to handle class-specific messages. | 94 // |command|. Subclasses may override to handle class-specific messages. |
| 95 - (SEL)selectorToHandleJavaScriptCommand:(const std::string&)command; | 95 - (SEL)selectorToHandleJavaScriptCommand:(const std::string&)command; |
|
Eugene But (OOO till 7-30)
2016/03/30 16:56:21
Drop this.
michaeldo
2016/03/30 17:04:17
Done.
| |
| 96 | 96 |
| 97 // Sets zoom scale value for webview scroll view from |zoomState|. | 97 // Sets zoom scale value for webview scroll view from |zoomState|. |
| 98 - (void)applyWebViewScrollZoomScaleFromZoomState: | 98 - (void)applyWebViewScrollZoomScaleFromZoomState: |
| 99 (const web::PageZoomState&)zoomState; | 99 (const web::PageZoomState&)zoomState; |
| 100 | 100 |
| 101 // Handles cancelled load in WKWebView (error with NSURLErrorCancelled code). | 101 // Handles cancelled load in WKWebView (error with NSURLErrorCancelled code). |
| 102 - (void)handleCancelledError:(NSError*)error; | 102 - (void)handleCancelledError:(NSError*)error; |
| 103 | 103 |
| 104 // Creates a web view with given |config|. No-op if web view is already created. | 104 // Creates a web view with given |config|. No-op if web view is already created. |
| 105 - (void)ensureWebViewCreatedWithConfiguration:(WKWebViewConfiguration*)config; | 105 - (void)ensureWebViewCreatedWithConfiguration:(WKWebViewConfiguration*)config; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 // destruction. | 177 // destruction. |
| 178 @property(nonatomic, readonly) BOOL isHalted; | 178 @property(nonatomic, readonly) BOOL isHalted; |
| 179 | 179 |
| 180 // Returns whether the user is interacting with the page. | 180 // Returns whether the user is interacting with the page. |
| 181 @property(nonatomic, readonly) BOOL userIsInteracting; | 181 @property(nonatomic, readonly) BOOL userIsInteracting; |
| 182 | 182 |
| 183 // YES if a user interaction has been registered at any time since the page has | 183 // YES if a user interaction has been registered at any time since the page has |
| 184 // loaded. | 184 // loaded. |
| 185 @property(nonatomic, readwrite) BOOL userInteractionRegistered; | 185 @property(nonatomic, readwrite) BOOL userInteractionRegistered; |
| 186 | 186 |
| 187 // Whether the web page is currently performing window.history.pushState or | |
| 188 // window.history.replaceState | |
| 189 @property(nonatomic, readonly) BOOL changingHistoryState; | |
| 190 | |
| 187 // Returns the current window id. | 191 // Returns the current window id. |
| 188 @property(nonatomic, readonly) NSString* windowId; | 192 @property(nonatomic, readonly) NSString* windowId; |
| 189 | 193 |
| 190 // Returns windowID that is saved when a page changes. Used to detect refreshes. | 194 // Returns windowID that is saved when a page changes. Used to detect refreshes. |
| 191 @property(nonatomic, readonly) NSString* lastSeenWindowID; | 195 @property(nonatomic, readonly) NSString* lastSeenWindowID; |
| 192 | 196 |
| 193 // Returns NavigationManager's session controller. | 197 // Returns NavigationManager's session controller. |
| 194 @property(nonatomic, readonly) CRWSessionController* sessionController; | 198 @property(nonatomic, readonly) CRWSessionController* sessionController; |
| 195 | 199 |
| 196 // Returns a new script which wraps |script| with windowID check so |script| is | 200 // 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 Loading... | |
| 335 | 339 |
| 336 // Resets pending external request information. | 340 // Resets pending external request information. |
| 337 - (void)resetExternalRequest; | 341 - (void)resetExternalRequest; |
| 338 | 342 |
| 339 // Converts MIME type string to WebViewDocumentType. | 343 // Converts MIME type string to WebViewDocumentType. |
| 340 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; | 344 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; |
| 341 | 345 |
| 342 @end | 346 @end |
| 343 | 347 |
| 344 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ | 348 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ |
| OLD | NEW |