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 <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // This method returns the colors webkit will use for the scrollbars. When no | 128 // This method returns the colors webkit will use for the scrollbars. When no |
129 // colors are specified by the GTK+ theme, this function averages of the | 129 // colors are specified by the GTK+ theme, this function averages of the |
130 // thumb part and of the track colors. | 130 // thumb part and of the track colors. |
131 void SetScrollbarColors(); | 131 void SetScrollbarColors(); |
132 | 132 |
133 // Extracts colors and tints from the GTK theme, both for the | 133 // Extracts colors and tints from the GTK theme, both for the |
134 // ThemeService interface and the colors we send to webkit. | 134 // ThemeService interface and the colors we send to webkit. |
135 void LoadGtkValues(); | 135 void LoadGtkValues(); |
136 | 136 |
| 137 // Initialize the Xcursor theme and size with the GTK theme and size. |
| 138 void LoadCursorTheme(); |
| 139 |
137 // Updates colors if necessary after possible modification of command line. | 140 // Updates colors if necessary after possible modification of command line. |
138 // TODO(varkha): This should not be necessary once Material Design is on | 141 // TODO(varkha): This should not be necessary once Material Design is on |
139 // unconditionally. | 142 // unconditionally. |
140 void UpdateMaterialDesignColors(); | 143 void UpdateMaterialDesignColors(); |
141 | 144 |
142 // Reads in explicit theme frame colors from the ChromeGtkFrame style class | 145 // Reads in explicit theme frame colors from the ChromeGtkFrame style class |
143 // or generates them per our fallback algorithm. | 146 // or generates them per our fallback algorithm. |
144 SkColor BuildFrameColors(); | 147 SkColor BuildFrameColors(); |
145 | 148 |
146 // Gets a tint which depends on the default for |id| as well as |color|. | 149 // Gets a tint which depends on the default for |id| as well as |color|. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 } // namespace libgtk2ui | 250 } // namespace libgtk2ui |
248 | 251 |
249 // Access point to the GTK2 desktop system. This should be the only symbol that | 252 // Access point to the GTK2 desktop system. This should be the only symbol that |
250 // is exported in the library; everything else should be used through the | 253 // is exported in the library; everything else should be used through the |
251 // interface, because eventually this .so will be loaded through dlopen at | 254 // interface, because eventually this .so will be loaded through dlopen at |
252 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or | 255 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or |
253 // QT or whatever. | 256 // QT or whatever. |
254 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); | 257 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); |
255 | 258 |
256 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 259 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
OLD | NEW |