diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 18:03:21 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 18:03:21 +0000 |
commit | c6e5570b969321941f34dfedf6d67d268dab0912 (patch) | |
tree | 9fc3e1b5af773753774dcb48d9d719a3fa089e2c /ui/gfx | |
parent | 4e0329c17f9ebbbf6044b4396c7c51e2584dde9e (diff) | |
download | chromium_src-c6e5570b969321941f34dfedf6d67d268dab0912.zip chromium_src-c6e5570b969321941f34dfedf6d67d268dab0912.tar.gz chromium_src-c6e5570b969321941f34dfedf6d67d268dab0912.tar.bz2 |
Disable inverting web content when high-contrast mode is on.
Some users liked it, others hated it, others wanted to be able to toggle it.
This patch just disables the current behavior and should be merged to the
M19 branch, then I'll try a new approach in the trunk.
BUG=112944
TEST=none
Review URL: http://codereview.chromium.org/10146031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx')
-rw-r--r-- | ui/gfx/sys_color_change_listener.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/gfx/sys_color_change_listener.cc b/ui/gfx/sys_color_change_listener.cc index b6e321c..8a6f43b 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 } |