]> khamidou — GitHub mirrors - electron.git/commitdiff
Add dummy implementation of message box for Windows.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 5 Jul 2013 01:59:53 +0000 (09:59 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 5 Jul 2013 01:59:53 +0000 (09:59 +0800)
atom.gyp
browser/message_box_win.cc [new file with mode: 0644]

index bc1d427d5a205af5139a09569d0d84c2a28a4ba1..82a216ea5a24c2301f3c0ffaa4a070d48f365a6b 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
@@ -96,6 +96,7 @@
       'browser/media/media_stream_devices_controller.h',
       'browser/message_box.h',
       'browser/message_box_mac.mm',
+      'browser/message_box_win.cc',
       'browser/native_window.cc',
       'browser/native_window.h',
       'browser/native_window_mac.h',
diff --git a/browser/message_box_win.cc b/browser/message_box_win.cc
new file mode 100644 (file)
index 0000000..23038dc
--- /dev/null
@@ -0,0 +1,18 @@
+// Copyright (c) 2013 GitHub, Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "browser/message_box.h"
+
+namespace atom {
+
+int ShowMessageBox(NativeWindow* parent_window,
+                   MessageBoxType type,
+                   const std::vector<std::string>& buttons,
+                   const std::string& title,
+                   const std::string& message,
+                   const std::string& detail) {
+  return 0;
+}
+
+}  // namespace atom