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

Unified Diff: ui/gfx/color_utils.h

Issue 1219533009: Make SysColorChangeListener Windows-only instead of having an empty shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_private_fields
Patch Set: forgot one Created 5 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/gfx/BUILD.gn ('k') | ui/gfx/color_utils.cc » ('j') | ui/gfx/color_utils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_utils.h
diff --git a/ui/gfx/color_utils.h b/ui/gfx/color_utils.h
index 9153688ad9b908563915ff2ec6785d2d98af0c39..21e15eb7892579fc4212b18e72c4ec2db611d5ff 100644
--- a/ui/gfx/color_utils.h
+++ b/ui/gfx/color_utils.h
@@ -103,6 +103,12 @@ GFX_EXPORT SkColor InvertColor(SkColor color);
// Gets a Windows system color as a SkColor
GFX_EXPORT SkColor GetSysSkColor(int which);
+// Returns true only if Chrome should use an inverted color scheme - which is
+// only true if the system has high-contrast mode enabled and and is using a
+// light-on-dark color scheme. To be notified when this status changes, use
+// ScopedSysColorChangeListener, below.
sadrul 2015/07/07 04:36:54 Update the comment.
mlamouri (slow - plz ping) 2015/07/07 13:45:15 Done.
+GFX_EXPORT bool IsInvertedColorScheme();
+
} // namespace color_utils
#endif // UI_GFX_COLOR_UTILS_H_
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/color_utils.cc » ('j') | ui/gfx/color_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698