OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_JAVA_SCRIPT_DIALOG_COMMANDS_H_ | |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_JAVA_SCRIPT_DIALOG_COMMANDS_H_ | |
7 | |
8 #import <Foundation/Foundation.h> | |
9 | |
10 // Commands used to manage the dismissal of JavaScript dialogs. | |
11 @protocol JavaScriptDialogDismissalCommands<NSObject> | |
12 // Called when a JavaScript alert dialog is dismissed by tapping the OK button. | |
13 - (void)dismissJavaScriptAlert; | |
14 // Called when a JavaScript confirmation dialog is dismissed. |success| is YES | |
15 // if the user selected the OK button, and NO otherwise. | |
16 - (void)dimsissJavaScriptConfirmationWithSuccess:(BOOL)success; | |
17 // Called when a JavaScript prompt dialog is dismissed. |result| is the user's | |
18 // input in the prompt. | |
marq (ping after 24h)
2017/06/14 11:28:39
Should the API distinguish between the user enteri
kkhorimoto
2017/06/23 06:34:03
Added documentation to JavaScriptDialogRequest's |
| |
19 - (void)dismissJavaScriptPromptWithResult:(NSString*)result; | |
20 @end | |
21 | |
22 #endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_JAVA_SCRIPT_DIALOG_COMMANDS_H_ | |
OLD | NEW |