Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: ios/clean/chrome/browser/ui/commands/java_script_dialog_commands.h

Issue 2928723002: [iOS Clean] Added JavaScript dialog support.
Patch Set: rebased, subclassed DialogMediator Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698