From 3d77ee9d3b3d8a22951421a465f558f466f6e33e Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 5 Jul 2013 10:13:09 +0800 Subject: [PATCH] Add dummy implementation of file dialog for Windows. --- atom.gyp | 1 + browser/file_dialog_win.cc | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 browser/file_dialog_win.cc diff --git a/atom.gyp b/atom.gyp index 82a216ea5a24..5eef6d2924c4 100644 --- a/atom.gyp +++ b/atom.gyp @@ -90,6 +90,7 @@ 'browser/crash_reporter_win.cc', 'browser/file_dialog.h', 'browser/file_dialog_mac.mm', + 'browser/file_dialog_win.cc', 'browser/media/media_capture_devices_dispatcher.cc', 'browser/media/media_capture_devices_dispatcher.h', 'browser/media/media_stream_devices_controller.cc', diff --git a/browser/file_dialog_win.cc b/browser/file_dialog_win.cc new file mode 100644 index 000000000000..1119ab7f6f2f --- /dev/null +++ b/browser/file_dialog_win.cc @@ -0,0 +1,23 @@ +// 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/file_dialog.h" + +namespace file_dialog { + +bool ShowOpenDialog(const std::string& title, + const base::FilePath& default_path, + int properties, + std::vector* paths) { + return false; +} + +bool ShowSaveDialog(atom::NativeWindow* window, + const std::string& title, + const base::FilePath& default_path, + base::FilePath* path) { + return false; +} + +} // namespace file_dialog