]> khamidou — GitHub mirrors - electron.git/commitdiff
Move atom/browser/ui/gtk to chrome/.
authorCheng Zhao <zcbenz@gmail.com>
Sun, 16 Mar 2014 00:39:43 +0000 (08:39 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 16 Mar 2014 00:39:43 +0000 (08:39 +0800)
18 files changed:
atom.gyp
atom/browser/api/atom_api_menu_gtk.h
atom/browser/native_window_gtk.cc
atom/browser/native_window_gtk.h
atom/browser/ui/file_dialog_gtk.cc
atom/browser/ui/message_box_gtk.cc
chrome/browser/ui/gtk/event_utils.cc [moved from atom/browser/ui/gtk/event_utils.cc with 96% similarity]
chrome/browser/ui/gtk/event_utils.h [moved from atom/browser/ui/gtk/event_utils.h with 100% similarity]
chrome/browser/ui/gtk/gtk_custom_menu.cc [moved from atom/browser/ui/gtk/gtk_custom_menu.cc with 98% similarity]
chrome/browser/ui/gtk/gtk_custom_menu.h [moved from atom/browser/ui/gtk/gtk_custom_menu.h with 100% similarity]
chrome/browser/ui/gtk/gtk_custom_menu_item.cc [moved from atom/browser/ui/gtk/gtk_custom_menu_item.cc with 99% similarity]
chrome/browser/ui/gtk/gtk_custom_menu_item.h [moved from atom/browser/ui/gtk/gtk_custom_menu_item.h with 100% similarity]
chrome/browser/ui/gtk/gtk_util.cc [moved from atom/browser/ui/gtk/gtk_util.cc with 98% similarity]
chrome/browser/ui/gtk/gtk_util.h [moved from atom/browser/ui/gtk/gtk_util.h with 90% similarity]
chrome/browser/ui/gtk/gtk_window_util.cc [moved from atom/browser/ui/gtk/gtk_window_util.cc with 99% similarity]
chrome/browser/ui/gtk/gtk_window_util.h [moved from atom/browser/ui/gtk/gtk_window_util.h with 95% similarity]
chrome/browser/ui/gtk/menu_gtk.cc [moved from atom/browser/ui/gtk/menu_gtk.cc with 99% similarity]
chrome/browser/ui/gtk/menu_gtk.h [moved from atom/browser/ui/gtk/menu_gtk.h with 98% similarity]

index a6ca448d78d52acf9cdf8c17e597234d17159de4..70a70bcae4e93201b5ea5e65ddab4a3dda803ca9 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
       'atom/browser/ui/file_dialog_gtk.cc',
       'atom/browser/ui/file_dialog_mac.mm',
       'atom/browser/ui/file_dialog_win.cc',
-      'atom/browser/ui/gtk/gtk_custom_menu.cc',
-      'atom/browser/ui/gtk/gtk_custom_menu.h',
-      'atom/browser/ui/gtk/gtk_custom_menu_item.cc',
-      'atom/browser/ui/gtk/gtk_custom_menu_item.h',
-      'atom/browser/ui/gtk/gtk_util.cc',
-      'atom/browser/ui/gtk/gtk_util.h',
-      'atom/browser/ui/gtk/gtk_window_util.cc',
-      'atom/browser/ui/gtk/gtk_window_util.h',
-      'atom/browser/ui/gtk/event_utils.cc',
-      'atom/browser/ui/gtk/event_utils.h',
-      'atom/browser/ui/gtk/menu_gtk.cc',
-      'atom/browser/ui/gtk/menu_gtk.h',
       'atom/browser/ui/message_box.h',
       'atom/browser/ui/message_box_gtk.cc',
       'atom/browser/ui/message_box_mac.mm',
       'atom/renderer/atom_render_view_observer.h',
       'atom/renderer/atom_renderer_client.cc',
       'atom/renderer/atom_renderer_client.h',
+      'chrome/browser/ui/gtk/event_utils.cc',
+      'chrome/browser/ui/gtk/event_utils.h',
+      'chrome/browser/ui/gtk/gtk_custom_menu.cc',
+      'chrome/browser/ui/gtk/gtk_custom_menu.h',
+      'chrome/browser/ui/gtk/gtk_custom_menu_item.cc',
+      'chrome/browser/ui/gtk/gtk_custom_menu_item.h',
+      'chrome/browser/ui/gtk/gtk_util.cc',
+      'chrome/browser/ui/gtk/gtk_util.h',
+      'chrome/browser/ui/gtk/gtk_window_util.cc',
+      'chrome/browser/ui/gtk/gtk_window_util.h',
+      'chrome/browser/ui/gtk/menu_gtk.cc',
+      'chrome/browser/ui/gtk/menu_gtk.h',
     ],
     'framework_sources': [
       'atom/app/atom_library_main.cc',
index 51c82d8daffcb5319f6fc33b0852a2f533aec25f..7b890579db3dac0ec957c620ae5ee7146cecc772 100644 (file)
@@ -6,7 +6,7 @@
 #define ATOM_BROWSER_API_ATOM_API_MENU_GTK_H_
 
 #include "atom/browser/api/atom_api_menu.h"
-#include "atom/browser/ui/gtk/menu_gtk.h"
+#include "chrome/browser/ui/gtk/menu_gtk.h"
 
 namespace atom {
 
index 34bdcb25b6ac20c8d41b8bca7e6241a88145653e..3472eff1bbd3577426644ddb8625d078f6778850 100644 (file)
@@ -5,7 +5,7 @@
 #include "atom/browser/native_window_gtk.h"
 
 #include "base/values.h"
-#include "atom/browser/ui/gtk/gtk_window_util.h"
+#include "chrome/browser/ui/gtk/gtk_window_util.h"
 #include "atom/common/draggable_region.h"
 #include "atom/common/options_switches.h"
 #include "content/public/browser/web_contents.h"
index 76da28567748b6dcb0b5477a151db83f9db62fcc..6700ee26d5e91ec303bc69dfb64975ab387c5289 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "atom/browser/native_window.h"
 #include "atom/browser/ui/accelerator_util.h"
-#include "atom/browser/ui/gtk/menu_gtk.h"
+#include "chrome/browser/ui/gtk/menu_gtk.h"
 #include "third_party/skia/include/core/SkRegion.h"
 #include "ui/base/accelerators/accelerator.h"
 #include "ui/base/gtk/gtk_signal.h"
index b3ac3b975ef988029aa96677bbb6f62eb31f8cd8..d9cef0425efe4ebf554bf10b62752673e94d4a9d 100644 (file)
@@ -7,7 +7,7 @@
 #include "base/callback.h"
 #include "base/file_util.h"
 #include "atom/browser/native_window.h"
-#include "atom/browser/ui/gtk/gtk_util.h"
+#include "chrome/browser/ui/gtk/gtk_util.h"
 #include "ui/base/gtk/gtk_signal.h"
 
 namespace file_dialog {
index 73447340bc30e9e596ceb31987f83849bb8fb4cb..7e4ffe4f9576dc0c1b558297faf734ebe6a823a8 100644 (file)
@@ -7,7 +7,7 @@
 #include "base/callback.h"
 #include "base/strings/string_util.h"
 #include "atom/browser/native_window.h"
-#include "atom/browser/ui/gtk/gtk_util.h"
+#include "chrome/browser/ui/gtk/gtk_util.h"
 #include "ui/base/gtk/gtk_signal.h"
 
 namespace atom {
similarity index 96%
rename from atom/browser/ui/gtk/event_utils.cc
rename to chrome/browser/ui/gtk/event_utils.cc
index 76c998a68f779d8e4101c6b9733c7aaccfe84fe1..f61c12165674d5e56f51183e38018f521968da62 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 "atom/browser/ui/gtk/event_utils.h"
+#include "chrome/browser/ui/gtk/event_utils.h"
 
 #include "base/logging.h"
 #include "ui/base/window_open_disposition.h"
similarity index 98%
rename from atom/browser/ui/gtk/gtk_custom_menu.cc
rename to chrome/browser/ui/gtk/gtk_custom_menu.cc
index 6dc4c4ed96b629953773dde88bc963506d129138..bfa5a97284da038b36144af90c89bc71c6eaa727 100644 (file)
@@ -2,9 +2,9 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "atom/browser/ui/gtk/gtk_custom_menu.h"
+#include "chrome/browser/ui/gtk/gtk_custom_menu.h"
 
-#include "atom/browser/ui/gtk/gtk_custom_menu_item.h"
+#include "chrome/browser/ui/gtk/gtk_custom_menu_item.h"
 
 G_DEFINE_TYPE(GtkCustomMenu, gtk_custom_menu, GTK_TYPE_MENU)
 
similarity index 99%
rename from atom/browser/ui/gtk/gtk_custom_menu_item.cc
rename to chrome/browser/ui/gtk/gtk_custom_menu_item.cc
index b9c81581afb9cbec9ddb835f0c530e4711860f3a..2eda6010cea1682314eab4516197b7714d735140 100644 (file)
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "atom/browser/ui/gtk/gtk_custom_menu_item.h"
+#include "chrome/browser/ui/gtk/gtk_custom_menu_item.h"
 
 #include "base/i18n/rtl.h"
-#include "atom/browser/ui/gtk/gtk_custom_menu.h"
+#include "chrome/browser/ui/gtk/gtk_custom_menu.h"
 #include "ui/gfx/gtk_compat.h"
 
 // This method was autogenerated by the program glib-genmarshall, which
similarity index 98%
rename from atom/browser/ui/gtk/gtk_util.cc
rename to chrome/browser/ui/gtk/gtk_util.cc
index 7db95dadf1521840d3f0fd085eea8f8984c3a909..b24c375e2c112982600fa56a6c99e503699141f6 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 "atom/browser/ui/gtk/gtk_util.h"
+#include "chrome/browser/ui/gtk/gtk_util.h"
 
 #include <cairo/cairo.h>
 
similarity index 90%
rename from atom/browser/ui/gtk/gtk_util.h
rename to chrome/browser/ui/gtk/gtk_util.h
index cc16b6f58b64911638aeb75c6d664cb80ec85003..2434a386e78a05b9b9e4b57b7e6f4046e9227ced 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 ATOM_BROWSER_UI_GTK_GTK_UTIL_H_
-#define ATOM_BROWSER_UI_GTK_GTK_UTIL_H_
+#ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
+#define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
 
 #include <gtk/gtk.h>
 #include <string>
@@ -33,4 +33,4 @@ void SetLabelWidth(GtkWidget* label, int pixel_width);
 
 }  // namespace gtk_util
 
-#endif  // ATOM_BROWSER_UI_GTK_GTK_UTIL_H_
+#endif  // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
similarity index 99%
rename from atom/browser/ui/gtk/gtk_window_util.cc
rename to chrome/browser/ui/gtk/gtk_window_util.cc
index e68102c9d06e49e0fc881440e37e9dda062ade5b..09d2624b5df28e5ad284ccddc4d350e65933055b 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 "atom/browser/ui/gtk/gtk_window_util.h"
+#include "chrome/browser/ui/gtk/gtk_window_util.h"
 
 #include <dlfcn.h>
 #include "content/public/browser/render_view_host.h"
similarity index 95%
rename from atom/browser/ui/gtk/gtk_window_util.h
rename to chrome/browser/ui/gtk/gtk_window_util.h
index 2234f38e2640ffbc66d62de48bb08d9b5421a55a..d4904ca8e947b68d82a9cf408c01a9e928b97171 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 ATOM_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
-#define ATOM_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
+#ifndef CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
+#define CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
 
 #include <gtk/gtk.h>
 #include <gdk/gdk.h>
@@ -71,4 +71,4 @@ bool GetWindowEdge(const gfx::Size& window_size,
 
 }  // namespace gtk_window_util
 
-#endif  // ATOM_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
+#endif  // CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
similarity index 99%
rename from atom/browser/ui/gtk/menu_gtk.cc
rename to chrome/browser/ui/gtk/menu_gtk.cc
index c3d32dbccd1a3c2ae4770420ed4965b9bc20ca7c..1fde1ba39b15f6cd2e10007b408208b7dad5ca85 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 "atom/browser/ui/gtk/menu_gtk.h"
+#include "chrome/browser/ui/gtk/menu_gtk.h"
 
 #include <map>
 
 #include "base/message_loop/message_loop.h"
 #include "base/stl_util.h"
 #include "base/strings/utf_string_conversions.h"
-#include "atom/browser/ui/gtk/event_utils.h"
-#include "atom/browser/ui/gtk/gtk_custom_menu.h"
-#include "atom/browser/ui/gtk/gtk_custom_menu_item.h"
-#include "atom/browser/ui/gtk/gtk_util.h"
+#include "chrome/browser/ui/gtk/event_utils.h"
+#include "chrome/browser/ui/gtk/gtk_custom_menu.h"
+#include "chrome/browser/ui/gtk/gtk_custom_menu_item.h"
+#include "chrome/browser/ui/gtk/gtk_util.h"
 #include "third_party/skia/include/core/SkBitmap.h"
 #include "ui/base/accelerators/menu_label_accelerator_util_linux.h"
 #include "ui/base/accelerators/platform_accelerator_gtk.h"
similarity index 98%
rename from atom/browser/ui/gtk/menu_gtk.h
rename to chrome/browser/ui/gtk/menu_gtk.h
index 45d073fd1ae764eea52bb7082ba7640a15fa66fa..50ef2c9c29fb0be55673b867acab705cc8fab637 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 ATOM_BROWSER_UI_GTK_MENU_GTK_H_
-#define ATOM_BROWSER_UI_GTK_MENU_GTK_H_
+#ifndef CHROME_BROWSER_UI_GTK_MENU_GTK_H_
+#define CHROME_BROWSER_UI_GTK_MENU_GTK_H_
 
 #include <gtk/gtk.h>
 
@@ -221,4 +221,4 @@ class MenuGtk {
   base::WeakPtrFactory<MenuGtk> weak_factory_;
 };
 
-#endif  // ATOM_BROWSER_UI_GTK_MENU_GTK_H_
+#endif  // CHROME_BROWSER_UI_GTK_MENU_GTK_H_