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

Side by Side Diff: android_webview/browser/aw_javascript_dialog_manager.cc

Issue 100453010: Add base:: to string16s in android_webview/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/browser/aw_javascript_dialog_manager.h" 5 #include "android_webview/browser/aw_javascript_dialog_manager.h"
6 6
7 #include "android_webview/browser/aw_contents_client_bridge_base.h" 7 #include "android_webview/browser/aw_contents_client_bridge_base.h"
8 #include "content/public/browser/javascript_dialog_manager.h" 8 #include "content/public/browser/javascript_dialog_manager.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 AwJavaScriptDialogManager::AwJavaScriptDialogManager() {} 13 AwJavaScriptDialogManager::AwJavaScriptDialogManager() {}
14 14
15 AwJavaScriptDialogManager::~AwJavaScriptDialogManager() {} 15 AwJavaScriptDialogManager::~AwJavaScriptDialogManager() {}
16 16
17 void AwJavaScriptDialogManager::RunJavaScriptDialog( 17 void AwJavaScriptDialogManager::RunJavaScriptDialog(
18 content::WebContents* web_contents, 18 content::WebContents* web_contents,
19 const GURL& origin_url, 19 const GURL& origin_url,
20 const std::string& accept_lang, 20 const std::string& accept_lang,
21 content::JavaScriptMessageType message_type, 21 content::JavaScriptMessageType message_type,
22 const string16& message_text, 22 const base::string16& message_text,
23 const string16& default_prompt_text, 23 const base::string16& default_prompt_text,
24 const DialogClosedCallback& callback, 24 const DialogClosedCallback& callback,
25 bool* did_suppress_message) { 25 bool* did_suppress_message) {
26 AwContentsClientBridgeBase* bridge = 26 AwContentsClientBridgeBase* bridge =
27 AwContentsClientBridgeBase::FromWebContents(web_contents); 27 AwContentsClientBridgeBase::FromWebContents(web_contents);
28 bridge->RunJavaScriptDialog(message_type, 28 bridge->RunJavaScriptDialog(message_type,
29 origin_url, 29 origin_url,
30 message_text, 30 message_text,
31 default_prompt_text, 31 default_prompt_text,
32 callback); 32 callback);
33 } 33 }
34 34
35 void AwJavaScriptDialogManager::RunBeforeUnloadDialog( 35 void AwJavaScriptDialogManager::RunBeforeUnloadDialog(
36 content::WebContents* web_contents, 36 content::WebContents* web_contents,
37 const string16& message_text, 37 const base::string16& message_text,
38 bool is_reload, 38 bool is_reload,
39 const DialogClosedCallback& callback) { 39 const DialogClosedCallback& callback) {
40 AwContentsClientBridgeBase* bridge = 40 AwContentsClientBridgeBase* bridge =
41 AwContentsClientBridgeBase::FromWebContents(web_contents); 41 AwContentsClientBridgeBase::FromWebContents(web_contents);
42 bridge->RunBeforeUnloadDialog(web_contents->GetURL(), 42 bridge->RunBeforeUnloadDialog(web_contents->GetURL(),
43 message_text, 43 message_text,
44 callback); 44 callback);
45 } 45 }
46 46
47 void AwJavaScriptDialogManager::CancelActiveAndPendingDialogs( 47 void AwJavaScriptDialogManager::CancelActiveAndPendingDialogs(
48 content::WebContents* web_contents) { 48 content::WebContents* web_contents) {
49 } 49 }
50 50
51 void AwJavaScriptDialogManager::WebContentsDestroyed( 51 void AwJavaScriptDialogManager::WebContentsDestroyed(
52 content::WebContents* web_contents) { 52 content::WebContents* web_contents) {
53 } 53 }
54 54
55 } // namespace android_webview 55 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_javascript_dialog_manager.h ('k') | android_webview/browser/aw_login_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698