| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/shell/browser/layout_test/layout_test_javascript_dialog_manage
r.h" | 5 #include "content/shell/browser/layout_test/layout_test_javascript_dialog_manage
r.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const base::string16& message_text, | 28 const base::string16& message_text, |
| 29 const base::string16& default_prompt_text, | 29 const base::string16& default_prompt_text, |
| 30 const DialogClosedCallback& callback, | 30 const DialogClosedCallback& callback, |
| 31 bool* did_suppress_message) { | 31 bool* did_suppress_message) { |
| 32 callback.Run(true, base::string16()); | 32 callback.Run(true, base::string16()); |
| 33 return; | 33 return; |
| 34 } | 34 } |
| 35 | 35 |
| 36 void LayoutTestJavaScriptDialogManager::RunBeforeUnloadDialog( | 36 void LayoutTestJavaScriptDialogManager::RunBeforeUnloadDialog( |
| 37 WebContents* web_contents, | 37 WebContents* web_contents, |
| 38 const base::string16& message_text, | |
| 39 bool is_reload, | 38 bool is_reload, |
| 40 const DialogClosedCallback& callback) { | 39 const DialogClosedCallback& callback) { |
| 41 callback.Run(true, base::string16()); | 40 callback.Run(true, base::string16()); |
| 42 return; | 41 return; |
| 43 } | 42 } |
| 44 | 43 |
| 45 } // namespace content | 44 } // namespace content |
| OLD | NEW |