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_LIBGTKUI_GTK2_UI_H_ |
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 6 #define CHROME_BROWSER_UI_LIBGTKUI_GTK2_UI_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.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/libgtkui/gtk2_signal.h" |
16 #include "chrome/browser/ui/libgtk2ui/libgtk2ui_export.h" | 16 #include "chrome/browser/ui/libgtkui/libgtkui_export.h" |
17 #include "ui/gfx/color_utils.h" | 17 #include "ui/gfx/color_utils.h" |
18 #include "ui/views/linux_ui/linux_ui.h" | 18 #include "ui/views/linux_ui/linux_ui.h" |
19 #include "ui/views/window/frame_buttons.h" | 19 #include "ui/views/window/frame_buttons.h" |
20 | 20 |
21 typedef struct _GtkStyle GtkStyle; | 21 typedef struct _GtkStyle GtkStyle; |
22 typedef struct _GtkWidget GtkWidget; | 22 typedef struct _GtkWidget GtkWidget; |
23 | 23 |
24 class SkBitmap; | 24 class SkBitmap; |
25 | 25 |
26 namespace libgtk2ui { | 26 namespace libgtkui { |
27 class Gtk2KeyBindingsHandler; | 27 class Gtk2KeyBindingsHandler; |
28 class GConfListener; | 28 class GConfListener; |
29 | 29 |
30 // Interface to GTK2 desktop features. | 30 // Interface to GTK2 desktop features. |
31 // | 31 // |
32 class Gtk2UI : public views::LinuxUI { | 32 class Gtk2UI : public views::LinuxUI { |
33 public: | 33 public: |
34 Gtk2UI(); | 34 Gtk2UI(); |
35 ~Gtk2UI() override; | 35 ~Gtk2UI() override; |
36 | 36 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // Used to override the native theme for a window. If no override is provided | 198 // Used to override the native theme for a window. If no override is provided |
199 // or the callback returns NULL, Gtk2UI will default to a NativeThemeGtk2 | 199 // or the callback returns NULL, Gtk2UI will default to a NativeThemeGtk2 |
200 // instance. | 200 // instance. |
201 NativeThemeGetter native_theme_overrider_; | 201 NativeThemeGetter native_theme_overrider_; |
202 | 202 |
203 float device_scale_factor_; | 203 float device_scale_factor_; |
204 | 204 |
205 DISALLOW_COPY_AND_ASSIGN(Gtk2UI); | 205 DISALLOW_COPY_AND_ASSIGN(Gtk2UI); |
206 }; | 206 }; |
207 | 207 |
208 } // namespace libgtk2ui | 208 } // namespace libgtkui |
209 | 209 |
210 // Access point to the GTK2 desktop system. This should be the only symbol that | 210 // Access point to the GTK2 desktop system. This should be the only symbol that |
211 // is exported in the library; everything else should be used through the | 211 // is exported in the library; everything else should be used through the |
212 // interface, because eventually this .so will be loaded through dlopen at | 212 // interface, because eventually this .so will be loaded through dlopen at |
213 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or | 213 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or |
214 // QT or whatever. | 214 // QT or whatever. |
215 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); | 215 LIBGTKUI_EXPORT views::LinuxUI* BuildGtk2UI(); |
216 | 216 |
217 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 217 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK2_UI_H_ |
OLD | NEW |