summaryrefslogtreecommitdiffstats
path: root/ash/high_contrast
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 05:52:59 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 05:52:59 +0000
commit3433d4d6dfdae531334f216b78dc718eec268e20 (patch)
tree0399b304b7ae15b6bfac540d63b0a3e714c8c5e6 /ash/high_contrast
parent612a89c61cc97e3dfdbe08beeff57dca1825806d (diff)
downloadchromium_src-3433d4d6dfdae531334f216b78dc718eec268e20.zip
chromium_src-3433d4d6dfdae531334f216b78dc718eec268e20.tar.gz
chromium_src-3433d4d6dfdae531334f216b78dc718eec268e20.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 Review URL: https://codereview.chromium.org/64933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/high_contrast')
-rw-r--r--ash/high_contrast/high_contrast_controller.cc6
-rw-r--r--ash/high_contrast/high_contrast_controller.h3
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_;