Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: chrome/browser/ui/android/simple_message_box_android.cc

Issue 2929953002: Make profile error dialog async (Closed)
Patch Set: for #3 comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/simple_message_box_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/simple_message_box_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698