| 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 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // changes. | 178 // changes. |
| 179 SkColor focus_ring_color_; | 179 SkColor focus_ring_color_; |
| 180 SkColor thumb_active_color_; | 180 SkColor thumb_active_color_; |
| 181 SkColor thumb_inactive_color_; | 181 SkColor thumb_inactive_color_; |
| 182 SkColor track_color_; | 182 SkColor track_color_; |
| 183 SkColor active_selection_bg_color_; | 183 SkColor active_selection_bg_color_; |
| 184 SkColor active_selection_fg_color_; | 184 SkColor active_selection_fg_color_; |
| 185 SkColor inactive_selection_bg_color_; | 185 SkColor inactive_selection_bg_color_; |
| 186 SkColor inactive_selection_fg_color_; | 186 SkColor inactive_selection_fg_color_; |
| 187 | 187 |
| 188 #if defined(USE_GCONF) |
| 188 // Currently, the only source of window button configuration. This will | 189 // Currently, the only source of window button configuration. This will |
| 189 // change if we ever have to support XFCE's configuration system or KDE's. | 190 // change if we ever have to support XFCE's configuration system or KDE's. |
| 190 scoped_ptr<GConfTitlebarListener> titlebar_listener_; | 191 scoped_ptr<GConfTitlebarListener> titlebar_listener_; |
| 192 #endif // defined(USE_GCONF) |
| 191 | 193 |
| 192 // If either of these vectors are non-empty, they represent the current | 194 // If either of these vectors are non-empty, they represent the current |
| 193 // window button configuration. | 195 // window button configuration. |
| 194 std::vector<views::FrameButton> leading_buttons_; | 196 std::vector<views::FrameButton> leading_buttons_; |
| 195 std::vector<views::FrameButton> trailing_buttons_; | 197 std::vector<views::FrameButton> trailing_buttons_; |
| 196 | 198 |
| 197 // Objects to notify when the window frame button order changes. | 199 // Objects to notify when the window frame button order changes. |
| 198 ObserverList<views::WindowButtonOrderObserver> observer_list_; | 200 ObserverList<views::WindowButtonOrderObserver> observer_list_; |
| 199 | 201 |
| 200 // Image cache of lazily created images. | 202 // Image cache of lazily created images. |
| 201 mutable ImageCache gtk_images_; | 203 mutable ImageCache gtk_images_; |
| 202 | 204 |
| 203 DISALLOW_COPY_AND_ASSIGN(Gtk2UI); | 205 DISALLOW_COPY_AND_ASSIGN(Gtk2UI); |
| 204 }; | 206 }; |
| 205 | 207 |
| 206 } // namespace libgtk2ui | 208 } // namespace libgtk2ui |
| 207 | 209 |
| 208 // 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 |
| 209 // 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 |
| 210 // interface, because eventually this .so will be loaded through dlopen at | 212 // interface, because eventually this .so will be loaded through dlopen at |
| 211 // 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 |
| 212 // QT or whatever. | 214 // QT or whatever. |
| 213 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); | 215 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); |
| 214 | 216 |
| 215 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 217 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
| OLD | NEW |