Chromium Code Reviews| 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 | |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 | 10 |
| 9 namespace chrome { | 11 namespace chrome { |
| 10 | 12 |
| 11 void ShowWarningMessageBox(gfx::NativeWindow parent, | 13 void ShowWarningMessageBox(gfx::NativeWindow parent, |
| 12 const base::string16& title, | 14 const base::string16& title, |
| 13 const base::string16& message) { | 15 const base::string16& message) { |
| 14 NOTIMPLEMENTED(); | 16 NOTIMPLEMENTED(); |
| 15 } | 17 } |
| 16 | 18 |
| 17 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent, | 19 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent, |
| 18 const base::string16& title, | 20 const base::string16& title, |
| 19 const base::string16& message) { | 21 const base::string16& message) { |
| 20 NOTIMPLEMENTED(); | 22 NOTIMPLEMENTED(); |
| 21 return MESSAGE_BOX_RESULT_NO; | 23 return MESSAGE_BOX_RESULT_NO; |
| 22 } | 24 } |
| 23 | 25 |
| 24 bool ShowWarningMessageBoxWithCheckbox(gfx::NativeWindow parent, | 26 void ShowWarningMessageBoxWithCheckbox( |
| 25 const base::string16& title, | 27 gfx::NativeWindow parent, |
| 26 const base::string16& message, | 28 const base::string16& title, |
| 27 const base::string16& checkbox_text) { | 29 const base::string16& message, |
| 30 const base::string16& checkbox_text, | |
| 31 base::OnceCallback<void(bool checked)> callback) { | |
| 28 NOTIMPLEMENTED(); | 32 NOTIMPLEMENTED(); |
| 29 return false; | 33 std::move(callback).Run(false); |
|
Peter Kasting
2017/06/12 23:54:19
I don't understand the function of std::move() in
xiyuan
2017/06/13 21:49:44
That is the current syntax to run a OnceClosure/On
Peter Kasting
2017/06/14 00:28:55
This doc doesn't really make any note of the move(
| |
| 30 } | 34 } |
| 31 | 35 |
| 32 } // namespace chrome | 36 } // namespace chrome |
| OLD | NEW |