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

Side by Side Diff: chrome/browser/ui/views/simple_message_box_win.cc

Issue 23769011: Move a bunch of windows stuff from ui/base/win to ui/gfx/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar bustage. Created 7 years, 3 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 | Annotate | Revision Log
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 "components/startup_metric_utils/startup_metric_utils.h" 7 #include "components/startup_metric_utils/startup_metric_utils.h"
8 #include "ui/base/win/hwnd_util.h"
9 #include "ui/base/win/message_box_win.h" 8 #include "ui/base/win/message_box_win.h"
9 #include "ui/gfx/win/hwnd_util.h"
10 10
11 namespace chrome { 11 namespace chrome {
12 12
13 MessageBoxResult NativeShowMessageBox(HWND parent, 13 MessageBoxResult NativeShowMessageBox(HWND parent,
14 const string16& title, 14 const string16& title,
15 const string16& message, 15 const string16& message,
16 MessageBoxType type) { 16 MessageBoxType type) {
17 UINT flags = MB_SETFOREGROUND; 17 UINT flags = MB_SETFOREGROUND;
18 if (type == MESSAGE_BOX_TYPE_QUESTION) { 18 if (type == MESSAGE_BOX_TYPE_QUESTION) {
19 flags |= MB_YESNO; 19 flags |= MB_YESNO;
(...skipping 10 matching lines...) Expand all
30 } 30 }
31 31
32 #if !defined(USE_AURA) 32 #if !defined(USE_AURA)
33 MessageBoxResult ShowMessageBox(gfx::NativeWindow parent, 33 MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
34 const string16& title, 34 const string16& title,
35 const string16& message, 35 const string16& message,
36 MessageBoxType type) { 36 MessageBoxType type) {
37 startup_metric_utils::SetNonBrowserUIDisplayed(); 37 startup_metric_utils::SetNonBrowserUIDisplayed();
38 38
39 if (!parent) 39 if (!parent)
40 parent = ui::GetWindowToParentTo(true); 40 parent = gfx::GetWindowToParentTo(true);
41 41
42 return NativeShowMessageBox(parent, title, message, type); 42 return NativeShowMessageBox(parent, title, message, type);
43 } 43 }
44 #endif 44 #endif
45 45
46 } // namespace chrome 46 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | chrome/browser/ui/views/status_icons/status_tray_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698