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

Unified Diff: android_webview/native/aw_web_contents_delegate.cc

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_web_contents_delegate.h ('k') | android_webview/native/js_result_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_web_contents_delegate.cc
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc
index 73021281e067b482292ed45f64d697085dc0ba96..249ee0f51fadf7a86a6efe8ee61125ec1ed8a394 100644
--- a/android_webview/native/aw_web_contents_delegate.cc
+++ b/android_webview/native/aw_web_contents_delegate.cc
@@ -4,8 +4,14 @@
#include "android_webview/native/aw_web_contents_delegate.h"
+#include "base/lazy_instance.h"
+#include "android_webview/native/aw_javascript_dialog_creator.h"
+
namespace android_webview {
+static base::LazyInstance<AwJavaScriptDialogCreator>::Leaky
+ g_javascript_dialog_creator = LAZY_INSTANCE_INITIALIZER;
+
AwWebContentsDelegate::AwWebContentsDelegate(
JNIEnv* env,
jobject obj)
@@ -15,4 +21,9 @@ AwWebContentsDelegate::AwWebContentsDelegate(
AwWebContentsDelegate::~AwWebContentsDelegate() {
}
+content::JavaScriptDialogCreator*
+AwWebContentsDelegate::GetJavaScriptDialogCreator() {
+ return g_javascript_dialog_creator.Pointer();
+}
+
} // namespace android_webview
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.h ('k') | android_webview/native/js_result_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698