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

index 82a216ea5a24c2301f3c0ffaa4a070d48f365a6b..5eef6d2924c4b93e4b93bedd67680335a3ab4beb 100644 (file)
--- 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 (file)
index 0000000..1119ab7
--- /dev/null
@@ -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<base::FilePath>* 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