| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
| 6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h" | 15 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h" |
| 16 #include "chrome/browser/ui/libgtk2ui/gtk2_signal_registrar.h" | |
| 17 #include "chrome/browser/ui/libgtk2ui/libgtk2ui_export.h" | 16 #include "chrome/browser/ui/libgtk2ui/libgtk2ui_export.h" |
| 18 #include "ui/events/linux/text_edit_key_bindings_delegate_auralinux.h" | 17 #include "ui/events/linux/text_edit_key_bindings_delegate_auralinux.h" |
| 19 #include "ui/gfx/color_utils.h" | 18 #include "ui/gfx/color_utils.h" |
| 20 #include "ui/views/linux_ui/linux_ui.h" | 19 #include "ui/views/linux_ui/linux_ui.h" |
| 21 #include "ui/views/window/frame_buttons.h" | 20 #include "ui/views/window/frame_buttons.h" |
| 22 | 21 |
| 23 typedef struct _GtkBorder GtkBorder; | 22 typedef struct _GtkBorder GtkBorder; |
| 24 typedef struct _GtkStyle GtkStyle; | 23 typedef struct _GtkStyle GtkStyle; |
| 25 typedef struct _GtkWidget GtkWidget; | 24 typedef struct _GtkWidget GtkWidget; |
| 26 | 25 |
| 27 class SkBitmap; | 26 class SkBitmap; |
| 28 | 27 |
| 29 namespace gfx { | 28 namespace gfx { |
| 30 class Image; | 29 class Image; |
| 31 } | 30 } |
| 32 | 31 |
| 33 namespace libgtk2ui { | 32 namespace libgtk2ui { |
| 34 class Gtk2Border; | 33 class Gtk2Border; |
| 35 class Gtk2KeyBindingsHandler; | 34 class Gtk2KeyBindingsHandler; |
| 36 class Gtk2SignalRegistrar; | |
| 37 class GConfListener; | 35 class GConfListener; |
| 38 | 36 |
| 39 // Interface to GTK2 desktop features. | 37 // Interface to GTK2 desktop features. |
| 40 // | 38 // |
| 41 class Gtk2UI : public views::LinuxUI { | 39 class Gtk2UI : public views::LinuxUI { |
| 42 public: | 40 public: |
| 43 Gtk2UI(); | 41 Gtk2UI(); |
| 44 ~Gtk2UI() override; | 42 ~Gtk2UI() override; |
| 45 | 43 |
| 46 typedef base::Callback<ui::NativeTheme*(aura::Window* window)> | 44 typedef base::Callback<ui::NativeTheme*(aura::Window* window)> |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 } // namespace libgtk2ui | 237 } // namespace libgtk2ui |
| 240 | 238 |
| 241 // Access point to the GTK2 desktop system. This should be the only symbol that | 239 // Access point to the GTK2 desktop system. This should be the only symbol that |
| 242 // is exported in the library; everything else should be used through the | 240 // is exported in the library; everything else should be used through the |
| 243 // interface, because eventually this .so will be loaded through dlopen at | 241 // interface, because eventually this .so will be loaded through dlopen at |
| 244 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or | 242 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or |
| 245 // QT or whatever. | 243 // QT or whatever. |
| 246 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); | 244 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); |
| 247 | 245 |
| 248 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 246 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
| OLD | NEW |