From cbb3c89ad7977aabca792153ce8b30401d00bfc1 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 5 Jul 2013 09:59:53 +0800 Subject: [PATCH] Add dummy implementation of message box for Windows. --- atom.gyp | 1 + browser/message_box_win.cc | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 browser/message_box_win.cc diff --git a/atom.gyp b/atom.gyp index bc1d427d5a20..82a216ea5a24 100644 --- 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 index 000000000000..23038dcfaf91 --- /dev/null +++ b/browser/message_box_win.cc @@ -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& buttons, + const std::string& title, + const std::string& message, + const std::string& detail) { + return 0; +} + +} // namespace atom