diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-08 20:33:13 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-08 20:33:13 +0000 |
commit | c9390bdfb5727b3c5ecc2ed8f97725c9514ecac8 (patch) | |
tree | 56578aea7dcb93045b61f4615210b7b8edacf102 /ash/high_contrast | |
parent | 9af0b83e7ce94d9e5c61623ab76634f97374c517 (diff) | |
download | chromium_src-c9390bdfb5727b3c5ecc2ed8f97725c9514ecac8.zip chromium_src-c9390bdfb5727b3c5ecc2ed8f97725c9514ecac8.tar.gz chromium_src-c9390bdfb5727b3c5ecc2ed8f97725c9514ecac8.tar.bz2 |
Eliminate Shell::RootWindowList in favor of aura::Window::Windows.
This is necessary as part of my plan to rework RootWindow, specifically making it not be a subclass of Window. (It will eventually be renamed WindowEventDispatcher). Code that expected to get the RootWindow interface from this type can still call GetDispatcher() on members of the returned vector of Windows.
R=oshima@chromium.org
http://crbug.com/308843
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233787
Review URL: https://codereview.chromium.org/64933002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/high_contrast')
-rw-r--r-- | ash/high_contrast/high_contrast_controller.cc | 6 | ||||
-rw-r--r-- | ash/high_contrast/high_contrast_controller.h | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ash/high_contrast/high_contrast_controller.cc b/ash/high_contrast/high_contrast_controller.cc index 31a0dbb..72fe036 100644 --- a/ash/high_contrast/high_contrast_controller.cc +++ b/ash/high_contrast/high_contrast_controller.cc @@ -18,8 +18,8 @@ void HighContrastController::SetEnabled(bool enabled) { enabled_ = enabled; // Update all active displays. - Shell::RootWindowList root_window_list = Shell::GetAllRootWindows(); - for (Shell::RootWindowList::iterator it = root_window_list.begin(); + aura::Window::Windows root_window_list = Shell::GetAllRootWindows(); + for (aura::Window::Windows::iterator it = root_window_list.begin(); it != root_window_list.end(); it++) { UpdateDisplay(*it); } @@ -29,7 +29,7 @@ void HighContrastController::OnRootWindowAdded(aura::RootWindow* root_window) { UpdateDisplay(root_window); } -void HighContrastController::UpdateDisplay(aura::RootWindow* root_window) { +void HighContrastController::UpdateDisplay(aura::Window* root_window) { root_window->layer()->SetLayerInverted(enabled_); } diff --git a/ash/high_contrast/high_contrast_controller.h b/ash/high_contrast/high_contrast_controller.h index 2afd60b..e42e46c 100644 --- a/ash/high_contrast/high_contrast_controller.h +++ b/ash/high_contrast/high_contrast_controller.h @@ -10,6 +10,7 @@ namespace aura { class RootWindow; +class Window; } namespace ash { @@ -28,7 +29,7 @@ class ASH_EXPORT HighContrastController { private: // Update high contrast mode on the passed display. - void UpdateDisplay(aura::RootWindow* root_window); + void UpdateDisplay(aura::Window* root_window); // Indicates if the high contrast mode is enabled or disabled. bool enabled_; |