Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Side by Side Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.h

Issue 2135353002: Linux: Add support for custom cursor themes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include order and add failchecks Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698