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

Side by Side Diff: chrome/browser/ui/libgtkui/gtk_util.h

Issue 2721493002: Gtk3: Fix GtkTextView colors (Closed)
Patch Set: Created 3 years, 9 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 | « chrome/browser/ui/libgtkui/gtk_ui.cc ('k') | chrome/browser/ui/libgtkui/gtk_util.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LIBGTKUI_GTK_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_GTK_UTIL_H_
6 #define CHROME_BROWSER_UI_LIBGTKUI_GTK_UTIL_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_GTK_UTIL_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Renders a background from the style context created by 210 // Renders a background from the style context created by
211 // GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and 211 // GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and
212 // returns the average color. 212 // returns the average color.
213 SkColor GetBgColor(const char* css_selector); 213 SkColor GetBgColor(const char* css_selector);
214 214
215 // Renders the border from the style context created by 215 // Renders the border from the style context created by
216 // GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and 216 // GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and
217 // returns the average color. 217 // returns the average color.
218 SkColor GetBorderColor(const char* css_selector); 218 SkColor GetBorderColor(const char* css_selector);
219 219
220 SkColor GetSelectedTextColor(const char* css_selector); 220 // On Gtk3.20 or later, behaves like GetBgColor. Otherwise, returns
221 SkColor GetSelectedBgColor(const char* css_selector); 221 // the background-color property.
222 SkColor GetSelectionBgColor(const char* css_selector);
222 223
223 // Get the color of the GtkSeparator specified by |css_selector|. 224 // Get the color of the GtkSeparator specified by |css_selector|.
224 SkColor GetSeparatorColor(const char* css_selector); 225 SkColor GetSeparatorColor(const char* css_selector);
225 #endif 226 #endif
226 227
227 } // namespace libgtkui 228 } // namespace libgtkui
228 229
229 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK_UTIL_H_ 230 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_ui.cc ('k') | chrome/browser/ui/libgtkui/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698