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 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 - (void)setPageChangeProbability:(web::PageChangeProbability)probability; | 146 - (void)setPageChangeProbability:(web::PageChangeProbability)probability; |
| 147 | 147 |
| 148 // Cancels any load in progress in the web view. | 148 // Cancels any load in progress in the web view. |
| 149 - (void)abortWebLoad; | 149 - (void)abortWebLoad; |
| 150 | 150 |
| 151 // Called whenever any in-progress-load state should be reset. | 151 // Called whenever any in-progress-load state should be reset. |
| 152 // TODO(stuartmorgan): Remove this; it should be tracked internally to each | 152 // TODO(stuartmorgan): Remove this; it should be tracked internally to each |
| 153 // subclass, since the existing logic is somewhat UIWebView-guesswork-based. | 153 // subclass, since the existing logic is somewhat UIWebView-guesswork-based. |
| 154 - (void)resetLoadState; | 154 - (void)resetLoadState; |
| 155 | 155 |
| 156 // Evaluates given JavaScript to suppress the dialogs. Subclasses should prefer | |
| 157 // synchronous execution. | |
| 158 - (void)setSuppressDialogsWithHelperScript:(NSString*)script; | |
| 159 | |
| 160 // Called when CRWWebController believes that web page title has been changed. | |
| 161 - (void)titleDidChange; | |
|
Jackie Quinn
2016/03/17 17:46:41
I assume that this method just no longer exists. I
Eugene But (OOO till 7-30)
2016/03/17 17:53:21
Oh, yes. It's no longer exists.
| |
| 162 | |
| 163 // Returns selector to handle JavaScript message with command property | 156 // Returns selector to handle JavaScript message with command property |
| 164 // |command|. Subclasses may override to handle class-specific messages. | 157 // |command|. Subclasses may override to handle class-specific messages. |
| 165 - (SEL)selectorToHandleJavaScriptCommand:(const std::string&)command; | 158 - (SEL)selectorToHandleJavaScriptCommand:(const std::string&)command; |
| 166 | 159 |
| 167 // Sets zoom scale value for webview scroll view from |zoomState|. | 160 // Sets zoom scale value for webview scroll view from |zoomState|. |
| 168 - (void)applyWebViewScrollZoomScaleFromZoomState: | 161 - (void)applyWebViewScrollZoomScaleFromZoomState: |
| 169 (const web::PageZoomState&)zoomState; | 162 (const web::PageZoomState&)zoomState; |
| 170 | 163 |
| 171 // Handles cancelled load in WKWebView (error with NSURLErrorCancelled code). | 164 // Handles cancelled load in WKWebView (error with NSURLErrorCancelled code). |
| 172 - (void)handleCancelledError:(NSError*)error; | 165 - (void)handleCancelledError:(NSError*)error; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 343 // Creates a new opened by DOM window and returns its autoreleased web | 336 // Creates a new opened by DOM window and returns its autoreleased web |
| 344 // controller. | 337 // controller. |
| 345 - (CRWWebController*)createChildWebController; | 338 - (CRWWebController*)createChildWebController; |
| 346 | 339 |
| 347 // Called following navigation completion to generate final navigation lifecycle | 340 // Called following navigation completion to generate final navigation lifecycle |
| 348 // events. Navigation is considered complete when the document has finished | 341 // events. Navigation is considered complete when the document has finished |
| 349 // loading, or when other page load mechanics are completed on a | 342 // loading, or when other page load mechanics are completed on a |
| 350 // non-document-changing URL change. | 343 // non-document-changing URL change. |
| 351 - (void)didFinishNavigation; | 344 - (void)didFinishNavigation; |
| 352 | 345 |
| 346 // Called when a JavaScript dialog, HTTP authentication dialog or window.open | |
| 347 // call has been suppressed. | |
| 348 - (void)didSuppressDialog; | |
| 349 | |
| 353 // Returns the referrer policy for the given referrer policy string (as reported | 350 // Returns the referrer policy for the given referrer policy string (as reported |
| 354 // from JS). | 351 // from JS). |
| 355 - (web::ReferrerPolicy)referrerPolicyFromString:(const std::string&)policy; | 352 - (web::ReferrerPolicy)referrerPolicyFromString:(const std::string&)policy; |
| 356 | 353 |
| 357 // Returns YES if the popup should be blocked, NO otherwise. | 354 // Returns YES if the popup should be blocked, NO otherwise. |
| 358 - (BOOL)shouldBlockPopupWithURL:(const GURL&)popupURL | 355 - (BOOL)shouldBlockPopupWithURL:(const GURL&)popupURL |
| 359 sourceURL:(const GURL&)sourceURL; | 356 sourceURL:(const GURL&)sourceURL; |
| 360 | 357 |
| 361 // Call to stop web controller activity, in particular to stop all network | 358 // Call to stop web controller activity, in particular to stop all network |
| 362 // requests. Called as part of the close sequence if it hasn't already been | 359 // requests. Called as part of the close sequence if it hasn't already been |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 405 | 402 |
| 406 // Resets pending external request information. | 403 // Resets pending external request information. |
| 407 - (void)resetExternalRequest; | 404 - (void)resetExternalRequest; |
| 408 | 405 |
| 409 // Converts MIME type string to WebViewDocumentType. | 406 // Converts MIME type string to WebViewDocumentType. |
| 410 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; | 407 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; |
| 411 | 408 |
| 412 @end | 409 @end |
| 413 | 410 |
| 414 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ | 411 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ |
| OLD | NEW |