summaryrefslogtreecommitdiffstats
path: root/ash/high_contrast
diff options
context:
space:
mode:
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_;