]> khamidou — GitHub mirrors - electron.git/commitdiff
Move file_dialog and message_box to browser/ui.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 13 Aug 2013 08:51:47 +0000 (16:51 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 13 Aug 2013 08:51:47 +0000 (16:51 +0800)
atom.gyp
browser/api/atom_api_dialog.cc
browser/ui/file_dialog.h [moved from browser/file_dialog.h with 89% similarity]
browser/ui/file_dialog_mac.mm [moved from browser/file_dialog_mac.mm with 98% similarity]
browser/ui/file_dialog_win.cc [moved from browser/file_dialog_win.cc with 99% similarity]
browser/ui/message_box.h [moved from browser/message_box.h with 86% similarity]
browser/ui/message_box_mac.mm [moved from browser/message_box_mac.mm with 97% similarity]
browser/ui/message_box_win.cc [moved from browser/message_box_win.cc with 99% similarity]

index f418c43d9077d96952a205d51ad4e2966982c559..f05d2cd538ab80a49a719ea183dbe21e68bc5b32 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
       'browser/crash_reporter.h',
       'browser/crash_reporter_mac.mm',
       'browser/crash_reporter_win.cc',
-      'browser/file_dialog.h',
-      'browser/file_dialog_mac.mm',
-      'browser/file_dialog_win.cc',
-      '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',
       'browser/native_window_observer.h',
       'browser/nsalert_synchronous_sheet.h',
       'browser/nsalert_synchronous_sheet.mm',
+      'browser/ui/file_dialog.h',
+      'browser/ui/file_dialog_mac.mm',
+      'browser/ui/file_dialog_win.cc',
+      'browser/ui/message_box.h',
+      'browser/ui/message_box_mac.mm',
+      'browser/ui/message_box_win.cc',
       'browser/window_list.cc',
       'browser/window_list.h',
       'browser/window_list_observer.h',
index 37633872732296fd0646164fdf53152b365328ee..69b0135b294d96a8b58250afa6f72880f6ae8d49 100644 (file)
@@ -9,9 +9,9 @@
 #include "base/utf_string_conversions.h"
 #include "base/values.h"
 #include "browser/api/atom_api_window.h"
-#include "browser/file_dialog.h"
-#include "browser/message_box.h"
 #include "browser/native_window.h"
+#include "browser/ui/file_dialog.h"
+#include "browser/ui/message_box.h"
 
 namespace atom {
 
similarity index 89%
rename from browser/file_dialog.h
rename to browser/ui/file_dialog.h
index 6f60de119839de544e8713c864444397bab8b279..67b526f785bf43be29366e25f15b93a5c6a1f464 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#ifndef BROWSER_FILE_DIALOG_H_
-#define BROWSER_FILE_DIALOG_H_
+#ifndef BROWSER_UI_FILE_DIALOG_H_
+#define BROWSER_UI_FILE_DIALOG_H_
 
 #include <string>
 #include <vector>
@@ -35,4 +35,4 @@ bool ShowSaveDialog(atom::NativeWindow* window,
 
 }  // namespace file_dialog
 
-#endif  // BROWSER_FILE_DIALOG_H_
+#endif  // BROWSER_UI_FILE_DIALOG_H_
similarity index 98%
rename from browser/file_dialog_mac.mm
rename to browser/ui/file_dialog_mac.mm
index 6e6cbb99ca58c4c52723749ccd5d5a1664c8dc1c..d51be89a23a571091100c9fc26f14bd8317b4634 100644 (file)
@@ -2,7 +2,7 @@
 // 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"
+#include "browser/ui/file_dialog.h"
 
 #import <Cocoa/Cocoa.h>
 #include <CoreServices/CoreServices.h>
similarity index 99%
rename from browser/file_dialog_win.cc
rename to browser/ui/file_dialog_win.cc
index 4202f55b622e8608fcc8a483ad239c49f0bd5aa3..3a877676137af67c9db684117e808f4e2f56374f 100644 (file)
@@ -2,7 +2,7 @@
 // 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"
+#include "browser/ui/file_dialog.h"
 
 #include <windows.h>
 #include <commdlg.h>
similarity index 86%
rename from browser/message_box.h
rename to browser/ui/message_box.h
index 02094bedc9c3c8c3165049303cff01c3f621cb3c..dfe7198ba67cf60e19b87fb4e5b917f345a79f81 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#ifndef BROWSER_MESSAGE_BOX_H_
-#define BROWSER_MESSAGE_BOX_H_
+#ifndef BROWSER_UI_MESSAGE_BOX_H_
+#define BROWSER_UI_MESSAGE_BOX_H_
 
 #include <string>
 #include <vector>
@@ -27,4 +27,4 @@ int ShowMessageBox(NativeWindow* parent_window,
 
 }  // namespace atom
 
-#endif  // BROWSER_MESSAGE_BOX_H_
+#endif  // BROWSER_UI_MESSAGE_BOX_H_
similarity index 97%
rename from browser/message_box_mac.mm
rename to browser/ui/message_box_mac.mm
index 2272f8a587027c96077a844ece03424ac11e5230..f006ffb5e0bd875bc4b0270e7ac6aa6a47022c68 100644 (file)
@@ -2,7 +2,7 @@
 // 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"
+#include "browser/ui/message_box.h"
 
 #import <Cocoa/Cocoa.h>
 
similarity index 99%
rename from browser/message_box_win.cc
rename to browser/ui/message_box_win.cc
index ccb6da5a90e6b70c97a967dabf0aef221acc5450..49f84509b399eff3ea5c60aa9462f8815661c5e9 100644 (file)
@@ -2,7 +2,7 @@
 // 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"
+#include "browser/ui/message_box.h"
 
 #include "base/message_loop.h"
 #include "base/run_loop.h"