| OLD | NEW |
| 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, | |
| 21 content::JavaScriptMessageType message_type, | 20 content::JavaScriptMessageType message_type, |
| 22 const base::string16& message_text, | 21 const base::string16& message_text, |
| 23 const base::string16& default_prompt_text, | 22 const base::string16& default_prompt_text, |
| 24 const DialogClosedCallback& callback, | 23 const DialogClosedCallback& callback, |
| 25 bool* did_suppress_message) { | 24 bool* did_suppress_message) { |
| 26 AwContentsClientBridgeBase* bridge = | 25 AwContentsClientBridgeBase* bridge = |
| 27 AwContentsClientBridgeBase::FromWebContents(web_contents); | 26 AwContentsClientBridgeBase::FromWebContents(web_contents); |
| 28 if (!bridge) { | 27 if (!bridge) { |
| 29 callback.Run(false, base::string16()); | 28 callback.Run(false, base::string16()); |
| 30 return; | 29 return; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 54 | 53 |
| 55 void AwJavaScriptDialogManager::CancelActiveAndPendingDialogs( | 54 void AwJavaScriptDialogManager::CancelActiveAndPendingDialogs( |
| 56 content::WebContents* web_contents) { | 55 content::WebContents* web_contents) { |
| 57 } | 56 } |
| 58 | 57 |
| 59 void AwJavaScriptDialogManager::ResetDialogState( | 58 void AwJavaScriptDialogManager::ResetDialogState( |
| 60 content::WebContents* web_contents) { | 59 content::WebContents* web_contents) { |
| 61 } | 60 } |
| 62 | 61 |
| 63 } // namespace android_webview | 62 } // namespace android_webview |
| OLD | NEW |