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

Unified Diff: android_webview/java/src/org/chromium/android_webview/JsPromptResultReceiver.java

Issue 10907166: Upstream chromium side of modal dialogs for webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: android_webview/java/src/org/chromium/android_webview/JsPromptResultReceiver.java
diff --git a/android_webview/java/src/org/chromium/android_webview/JsPromptResultReceiver.java b/android_webview/java/src/org/chromium/android_webview/JsPromptResultReceiver.java
new file mode 100644
index 0000000000000000000000000000000000000000..232140e35f1aabaf166e90328234f62d99242c32
--- /dev/null
+++ b/android_webview/java/src/org/chromium/android_webview/JsPromptResultReceiver.java
@@ -0,0 +1,17 @@
+// Copyright (c) 2012 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.
+
+package org.chromium.android_webview;
+
+/**
+ * This interface is used when the AwContentsClient offers a JavaScript
+ * modal prompt dialog to enable the client to handle the dialog in their own way.
+ * AwContentsClient will offer an object that implements this interface to the
+ * client and when the client has handled the dialog, it must either callback with
+ * confirm() or cancel() to allow processing to continue.
+ */
+public interface JsPromptResultReceiver {
+ public void confirm(String result);
+ public void cancel();
+}

Powered by Google App Engine
This is Rietveld 408576698