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

Unified Diff: ui/base/theme_provider.h

Issue 2126103003: Change chrome:// favicons in tabstrip based on theming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/default_theme_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/theme_provider.h
diff --git a/ui/base/theme_provider.h b/ui/base/theme_provider.h
index fb10db6f37e6f1734954fdc49422dc6df5123297..ba9017a671d312083711bfca02b79236d9745192 100644
--- a/ui/base/theme_provider.h
+++ b/ui/base/theme_provider.h
@@ -28,6 +28,10 @@ namespace base {
class RefCountedMemory;
}
+namespace color_utils {
+struct HSL;
+}
+
namespace gfx {
class ImageSkia;
}
@@ -54,6 +58,9 @@ class UI_BASE_EXPORT ThemeProvider {
// Get the color specified by |id|.
virtual SkColor GetColor(int id) const = 0;
+ // Get the HSL shift specified by |id|.
+ virtual color_utils::HSL GetTint(int id) const = 0;
+
// Get the property (e.g. an alignment expressed in an enum, or a width or
// height) specified by |id|.
virtual int GetDisplayProperty(int id) const = 0;
« no previous file with comments | « ui/base/default_theme_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698