| 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 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 callback.Run(false, base::string16()); | 46 callback.Run(false, base::string16()); |
| 47 return; | 47 return; |
| 48 } | 48 } |
| 49 | 49 |
| 50 bridge->RunBeforeUnloadDialog(web_contents->GetURL(), | 50 bridge->RunBeforeUnloadDialog(web_contents->GetURL(), |
| 51 callback); | 51 callback); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void AwJavaScriptDialogManager::CancelDialogs( | 54 void AwJavaScriptDialogManager::CancelDialogs( |
| 55 content::WebContents* web_contents, | 55 content::WebContents* web_contents, |
| 56 bool suppress_callbacks, | |
| 57 bool reset_state) {} | 56 bool reset_state) {} |
| 58 | 57 |
| 59 } // namespace android_webview | 58 } // namespace android_webview |
| OLD | NEW |