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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..34b509a841799b4583cb08559b58570d6717e228 |
--- /dev/null |
+++ b/chrome/browser/ui/views/simple_message_box_win.cc |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2011 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/simple_message_box.h" |
+ |
+#include "ui/base/message_box_win.h" |
+ |
+namespace browser { |
+ |
+void ShowErrorBox(gfx::NativeWindow parent, |
+ const string16& title, |
+ const string16& message) { |
+ UINT flags = MB_OK | MB_ICONWARNING | MB_SETFOREGROUND | MB_TOPMOST; |
+ ui::MessageBox(parent, message, title, flags); |
+} |
+ |
+bool ShowYesNoBox(gfx::NativeWindow parent, |
+ const string16& title, |
+ const string16& message) { |
+ UINT flags = MB_YESNO | MB_ICONWARNING | MB_SETFOREGROUND; |
+ int result = ui::MessageBox(parent, message, title, flags); |
+ return result == IDYES; |
+} |
+ |
+} // namespace browser |