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

Unified Diff: ui/base/theme_provider.h

Issue 2091053002: Change chrome:// favicons in tabstrip based on theming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: special case for about:crash Created 4 years, 6 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 ce98246b0513140cdc2157f419af8e6de7c264c6..a8755752d48f3a3d00bf776cf50181aa05658f62 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;
sky 2016/06/24 22:24:16 This name is pretty generic. Should it be more spe
Evan Stade 2016/06/27 14:56:59 GetTintForInternalIcons only makes sense when the
+
// 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