| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |