summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/accessibility
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-25 20:20:07 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-25 20:20:07 +0000
commitf58e31c5aaf7e54451ad4bfbe239d6412b7d1da8 (patch)
treec1a9003dac6ec699721429a5016b4da7de9b5847 /chrome/browser/ui/views/accessibility
parentd957b10b257ff0df7e656fa0e2224b93dcfb6835 (diff)
downloadchromium_src-f58e31c5aaf7e54451ad4bfbe239d6412b7d1da8.zip
chromium_src-f58e31c5aaf7e54451ad4bfbe239d6412b7d1da8.tar.gz
chromium_src-f58e31c5aaf7e54451ad4bfbe239d6412b7d1da8.tar.bz2
Update Windows UI on system color changes.
Propagate system theme (high contrast, etc.) changes throughout Views. (Win UI wasn't being notified; omnibox, find bar, etc. were broken, now aren't). (Linux Aura didn't update on changes with "Use Classic Theme", now it does). Make NativeTheme hold an observer list to be notified of changes. NotifyObservers of system color changes on Win via SysColorChangeListener. Nix NativeTheme duties for ThemeServiceAuraX11, and LinuxUI / Gtk2UI. Make Widget a NativeThemeObserver to call PropagateNativeThemeChanged. Start observing the relevant NativeTheme after native widget initialization. Make View::AddChildViewAt only update child views, not itself and siblings. (this was invoking redundant calls on itself as the parent and sibling views) Implement the BrowserView::OnNativeThemeChanged override. (update the frame and trigger a repaint with UserChangedTheme) (call MaybeShowInvertBubbleView, nix SysColorChangeListener impl) TODO(followup): Audit Views that need OnNativeThemeChanged overrides. BUG=134766 TEST=Win/Linux UI updates better when applying high contrast black/inverse system themes. R=erg@chromium.org, estade@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/239093007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/accessibility')
-rw-r--r--chrome/browser/ui/views/accessibility/invert_bubble_view.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/accessibility/invert_bubble_view.cc b/chrome/browser/ui/views/accessibility/invert_bubble_view.cc
index 07b7f26..151b8b8 100644
--- a/chrome/browser/ui/views/accessibility/invert_bubble_view.cc
+++ b/chrome/browser/ui/views/accessibility/invert_bubble_view.cc
@@ -15,6 +15,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/window_open_disposition.h"
+#include "ui/gfx/sys_color_change_listener.h"
#include "ui/views/bubble/bubble_delegate.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/link.h"