| 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 "chrome/browser/ui/simple_message_box.h" | 5 #include "chrome/browser/ui/simple_message_box.h" |
| 6 | 6 |
| 7 #include <utility> |
| 8 |
| 9 #include "base/callback.h" |
| 7 #include "base/logging.h" | 10 #include "base/logging.h" |
| 8 | 11 |
| 9 namespace chrome { | 12 namespace chrome { |
| 10 | 13 |
| 11 void ShowWarningMessageBox(gfx::NativeWindow parent, | 14 void ShowWarningMessageBox(gfx::NativeWindow parent, |
| 12 const base::string16& title, | 15 const base::string16& title, |
| 13 const base::string16& message) { | 16 const base::string16& message) { |
| 14 NOTIMPLEMENTED(); | 17 NOTIMPLEMENTED(); |
| 15 } | 18 } |
| 16 | 19 |
| 17 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent, | 20 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent, |
| 18 const base::string16& title, | 21 const base::string16& title, |
| 19 const base::string16& message) { | 22 const base::string16& message) { |
| 20 NOTIMPLEMENTED(); | 23 NOTIMPLEMENTED(); |
| 21 return MESSAGE_BOX_RESULT_NO; | 24 return MESSAGE_BOX_RESULT_NO; |
| 22 } | 25 } |
| 23 | 26 |
| 24 bool ShowWarningMessageBoxWithCheckbox(gfx::NativeWindow parent, | 27 void ShowWarningMessageBoxWithCheckbox( |
| 25 const base::string16& title, | 28 gfx::NativeWindow parent, |
| 26 const base::string16& message, | 29 const base::string16& title, |
| 27 const base::string16& checkbox_text) { | 30 const base::string16& message, |
| 31 const base::string16& checkbox_text, |
| 32 base::OnceCallback<void(bool checked)> callback) { |
| 28 NOTIMPLEMENTED(); | 33 NOTIMPLEMENTED(); |
| 29 return false; | 34 std::move(callback).Run(false); |
| 30 } | 35 } |
| 31 | 36 |
| 32 } // namespace chrome | 37 } // namespace chrome |
| OLD | NEW |