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

Unified Diff: chrome/browser/ui/views/simple_message_box_win.cc

Issue 12042083: views: Remove simple_message_box_win.cc in favor of simple_message_box_views.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/simple_message_box_win.cc
diff --git a/chrome/browser/ui/views/simple_message_box_win.cc b/chrome/browser/ui/views/simple_message_box_win.cc
deleted file mode 100644
index 861384ea186564631a88917ed01d9b64320027b2..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/simple_message_box_win.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/simple_message_box.h"
-
-#include "chrome/common/startup_metric_utils.h"
-#include "ui/base/win/hwnd_util.h"
-#include "ui/base/win/message_box_win.h"
-
-namespace chrome {
-
-MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
- const string16& title,
- const string16& message,
- MessageBoxType type) {
- startup_metric_utils::SetNonBrowserUIDisplayed();
-
- if (!parent)
- parent = ui::GetWindowToParentTo(true);
-
- UINT flags = MB_SETFOREGROUND;
- flags |= ((type == MESSAGE_BOX_TYPE_QUESTION) ? MB_YESNO : MB_OK);
- flags |= ((type == MESSAGE_BOX_TYPE_INFORMATION) ?
- MB_ICONINFORMATION : MB_ICONWARNING);
- return (ui::MessageBox(parent, message, title, flags) == IDNO) ?
- MESSAGE_BOX_RESULT_NO : MESSAGE_BOX_RESULT_YES;
-}
-
-} // namespace chrome
« no previous file with comments | « no previous file | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698