From: Cheng Zhao Date: Fri, 5 Jul 2013 02:13:09 +0000 (+0800) Subject: Add dummy implementation of file dialog for Windows. X-Git-Tag: v0.1.0~24 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3d77ee9d3b3d8a22951421a465f558f466f6e33e;p=electron.git Add dummy implementation of file dialog for Windows. --- diff --git a/atom.gyp b/atom.gyp index 82a216ea..5eef6d29 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 00000000..1119ab7f --- /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