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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/native/aw_web_contents_delegate.h" 5 #include "android_webview/native/aw_web_contents_delegate.h"
6 6
7 #include "base/lazy_instance.h"
8 #include "android_webview/native/aw_javascript_dialog_creator.h"
9
7 namespace android_webview { 10 namespace android_webview {
8 11
12 static base::LazyInstance<AwJavaScriptDialogCreator>::Leaky
13 g_javascript_dialog_creator = LAZY_INSTANCE_INITIALIZER;
14
9 AwWebContentsDelegate::AwWebContentsDelegate( 15 AwWebContentsDelegate::AwWebContentsDelegate(
10 JNIEnv* env, 16 JNIEnv* env,
11 jobject obj) 17 jobject obj)
12 : WebContentsDelegateAndroid(env, obj) { 18 : WebContentsDelegateAndroid(env, obj) {
13 } 19 }
14 20
15 AwWebContentsDelegate::~AwWebContentsDelegate() { 21 AwWebContentsDelegate::~AwWebContentsDelegate() {
16 } 22 }
17 23
24 content::JavaScriptDialogCreator*
25 AwWebContentsDelegate::GetJavaScriptDialogCreator() {
26 return g_javascript_dialog_creator.Pointer();
27 }
28
18 } // namespace android_webview 29 } // namespace android_webview
OLDNEW
« 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