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

Unified Diff: android_webview/native/aw_contents.h

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
« no previous file with comments | « android_webview/native/aw_browser_dependency_factory.h ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.h
diff --git a/android_webview/native/aw_contents.h b/android_webview/native/aw_contents.h
index c756e259acaf90d713111ca326189920d8f229d7..14868702d7f91d5d58119ed262a3f4bc746e6683 100644
--- a/android_webview/native/aw_contents.h
+++ b/android_webview/native/aw_contents.h
@@ -11,6 +11,7 @@
#include "base/android/scoped_java_ref.h"
#include "base/android/jni_helper.h"
#include "base/memory/scoped_ptr.h"
+#include "content/public/browser/javascript_dialogs.h"
class TabContents;
@@ -39,6 +40,18 @@ class AwContents {
bool private_browsing);
~AwContents();
+ void RunJavaScriptDialog(
+ content::JavaScriptMessageType message_type,
+ const GURL& origin_url,
+ const string16& message_text,
+ const string16& default_prompt_text,
+ const base::android::ScopedJavaLocalRef<jobject>& js_result);
+
+ void RunBeforeUnloadDialog(
+ const GURL& origin_url,
+ const string16& message_text,
+ const base::android::ScopedJavaLocalRef<jobject>& js_result);
+
// |handler| is an instance of
// org.chromium.android_webview.AwHttpAuthHandler.
void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler,
« no previous file with comments | « android_webview/native/aw_browser_dependency_factory.h ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698