| 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_PUBLIC_WEB_STATE_CRW_WEB_USER_INTERFACE_DELEGATE_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_USER_INTERFACE_DELEGATE_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_USER_INTERFACE_DELEGATE_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_USER_INTERFACE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <Foundation/Foundation.h> | 8 #include <Foundation/Foundation.h> |
| 9 | 9 |
| 10 @class CRWWebController; | 10 @class CRWWebController; |
| 11 class GURL; | 11 class GURL; |
| 12 | 12 |
| 13 // DEPRECATED, do not conform to this protocol and do not add any methods to it. |
| 14 // Use web::WebStateDelegate instead. |
| 15 // TODO(crbug.com/675001): Remove this protocol. |
| 13 @protocol CRWWebUserInterfaceDelegate<NSObject> | 16 @protocol CRWWebUserInterfaceDelegate<NSObject> |
| 14 | 17 |
| 15 @optional | 18 @optional |
| 16 // The JavaScript panel selectors below are only called by the web controller | 19 // The JavaScript panel selectors below are only called by the web controller |
| 17 // for builds with WKWebView enabled. | 20 // for builds with WKWebView enabled. |
| 18 | 21 |
| 19 // Displays a JavaScript alert with an OK button, showing the provided message. | 22 // Displays a JavaScript alert with an OK button, showing the provided message. |
| 20 // |completionHandler| is called after the OK button on the alert is tapped. | 23 // |completionHandler| is called after the OK button on the alert is tapped. |
| 21 // If this selector isn't implemented, the completion handler provided by the | 24 // If this selector isn't implemented, the completion handler provided by the |
| 22 // web view will be called without any UI displayed. If this method is | 25 // web view will be called without any UI displayed. If this method is |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 proposedCredential:(NSURLCredential*)credential | 69 proposedCredential:(NSURLCredential*)credential |
| 67 completionHandler: | 70 completionHandler: |
| 68 (void (^)(NSString* user, NSString* password))handler; | 71 (void (^)(NSString* user, NSString* password))handler; |
| 69 | 72 |
| 70 // Cancels any outstanding dialogs requested by the methods above. | 73 // Cancels any outstanding dialogs requested by the methods above. |
| 71 - (void)cancelDialogsForWebController:(CRWWebController*)webController; | 74 - (void)cancelDialogsForWebController:(CRWWebController*)webController; |
| 72 | 75 |
| 73 @end | 76 @end |
| 74 | 77 |
| 75 #endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_USER_INTERFACE_DELEGATE_H_ | 78 #endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_USER_INTERFACE_DELEGATE_H_ |
| OLD | NEW |