Index: ios/clean/chrome/browser/ui/commands/java_script_dialog_commands.h |
diff --git a/ios/clean/chrome/browser/ui/commands/java_script_dialog_commands.h b/ios/clean/chrome/browser/ui/commands/java_script_dialog_commands.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3a5546cecd711efed3926c20515be330f731bf2d |
--- /dev/null |
+++ b/ios/clean/chrome/browser/ui/commands/java_script_dialog_commands.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_JAVA_SCRIPT_DIALOG_COMMANDS_H_ |
+#define IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_JAVA_SCRIPT_DIALOG_COMMANDS_H_ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+// Commands used to manage the dismissal of JavaScript dialogs. |
+@protocol JavaScriptDialogDismissalCommands<NSObject> |
+// Called when a JavaScript alert dialog is dismissed by tapping the OK button. |
+- (void)dismissJavaScriptAlert; |
+// Called when a JavaScript confirmation dialog is dismissed. |success| is YES |
+// if the user selected the OK button, and NO otherwise. |
+- (void)dimsissJavaScriptConfirmationWithSuccess:(BOOL)success; |
+// Called when a JavaScript prompt dialog is dismissed. |result| is the user's |
+// 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 |
|
+- (void)dismissJavaScriptPromptWithResult:(NSString*)result; |
+@end |
+ |
+#endif // IOS_CLEAN_CHROME_BROWSER_UI_COMMANDS_JAVA_SCRIPT_DIALOG_COMMANDS_H_ |