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

Side by Side Diff: chrome/browser/ui/cocoa/simple_message_box_mac.mm

Issue 2468873005: Reland of Use a standard message box for DesktopCastingWarningView. (Closed)
Patch Set: Created 4 years, 1 month 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
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 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return false; 77 return false;
78 } 78 }
79 79
80 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent, 80 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent,
81 const base::string16& title, 81 const base::string16& title,
82 const base::string16& message) { 82 const base::string16& message) {
83 return ShowMessageBox(parent, title, message, base::string16(), 83 return ShowMessageBox(parent, title, message, base::string16(),
84 MESSAGE_BOX_TYPE_QUESTION); 84 MESSAGE_BOX_TYPE_QUESTION);
85 } 85 }
86 86
87 bool CloseMessageBoxForTest(bool accept) {
88 NOTIMPLEMENTED();
89 return false;
90 }
91
87 } // namespace chrome 92 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/multi_user/user_switch_util_unittest.cc ('k') | chrome/browser/ui/simple_message_box.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698