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

Unified Diff: ios/web/public/javascript_message_type.h

Issue 2074733002: Add public API for handling Javascript alerts and prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 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/web/public/javascript_message_type.h
diff --git a/ios/web/public/javascript_message_type.h b/ios/web/public/javascript_message_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..632a087ce8a228baf3e02dd8938ee9ca575d942f
--- /dev/null
+++ b/ios/web/public/javascript_message_type.h
@@ -0,0 +1,22 @@
+// Copyright 2016 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_WEB_PUBLIC_JAVASCRIPT_MESSAGE_TYPE_H_
+#define IOS_WEB_PUBLIC_JAVASCRIPT_MESSAGE_TYPE_H_
+
+namespace web {
+
+// Enum specifying different types of JavaScript messages.
+enum JavaScriptMessageType {
+ // Dialog with OK button only.
+ JAVASCRIPT_MESSAGE_TYPE_ALERT,
+ // Dialog with OK and Cancel button.
+ JAVASCRIPT_MESSAGE_TYPE_CONFIRM,
+ // Dialog with OK button, Cancel button, and a text field.
+ JAVASCRIPT_MESSAGE_TYPE_PROMPT
+};
+
+} // namespace web
+
+#endif // IOS_WEB_PUBLIC_JAVASCRIPT_MESSAGE_TYPE_H_

Powered by Google App Engine
This is Rietveld 408576698