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

Unified Diff: ui/gfx/sys_color_change_listener.cc

Issue 10146031: Disable inverting web content when high-contrast mode is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/sys_color_change_listener.cc
diff --git a/ui/gfx/sys_color_change_listener.cc b/ui/gfx/sys_color_change_listener.cc
index b6e321cdbdc241beb8942ece3acdbeac4d1211c0..8a6f43bc39e1e3191ac473eaa1b2abfb32bced9d 100644
--- a/ui/gfx/sys_color_change_listener.cc
+++ b/ui/gfx/sys_color_change_listener.cc
@@ -31,9 +31,13 @@ void UpdateInvertedColorScheme() {
color_utils::GetSysSkColor(COLOR_WINDOW));
HIGHCONTRAST high_contrast = {0};
high_contrast.cbSize = sizeof(HIGHCONTRAST);
- g_is_inverted_color_scheme =
- SystemParametersInfo(SPI_GETHIGHCONTRAST, 0, &high_contrast, 0) &&
- ((high_contrast.dwFlags & HCF_HIGHCONTRASTON) != 0);
+
+ // TODO(dmazzoni): this is temporarily disabled until the color inverting
+ // can be made optional or the need is addressed some other way.
+ // http://crbug.com/112944
+ //g_is_inverted_color_scheme =
+ // SystemParametersInfo(SPI_GETHIGHCONTRAST, 0, &high_contrast, 0) &&
+ // ((high_contrast.dwFlags & HCF_HIGHCONTRASTON) != 0);
g_is_inverted_color_scheme_initialized = true;
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698