Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: trunk/src/ash/high_contrast/high_contrast_controller.h

Issue 59153004: Revert 233787 "Eliminate Shell::RootWindowList in favor of aura:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_ 5 #ifndef ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_
6 #define ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_ 6 #define ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 namespace aura { 11 namespace aura {
12 class RootWindow; 12 class RootWindow;
13 class Window;
14 } 13 }
15 14
16 namespace ash { 15 namespace ash {
17 16
18 class ASH_EXPORT HighContrastController { 17 class ASH_EXPORT HighContrastController {
19 public: 18 public:
20 HighContrastController(); 19 HighContrastController();
21 20
22 ~HighContrastController() {} 21 ~HighContrastController() {}
23 22
24 // Set high contrast mode and update all available displays. 23 // Set high contrast mode and update all available displays.
25 void SetEnabled(bool enabled); 24 void SetEnabled(bool enabled);
26 25
27 // Update high contrast mode on the just added display. 26 // Update high contrast mode on the just added display.
28 void OnRootWindowAdded(aura::RootWindow* root_window); 27 void OnRootWindowAdded(aura::RootWindow* root_window);
29 28
30 private: 29 private:
31 // Update high contrast mode on the passed display. 30 // Update high contrast mode on the passed display.
32 void UpdateDisplay(aura::Window* root_window); 31 void UpdateDisplay(aura::RootWindow* root_window);
33 32
34 // Indicates if the high contrast mode is enabled or disabled. 33 // Indicates if the high contrast mode is enabled or disabled.
35 bool enabled_; 34 bool enabled_;
36 35
37 DISALLOW_COPY_AND_ASSIGN(HighContrastController); 36 DISALLOW_COPY_AND_ASSIGN(HighContrastController);
38 }; 37 };
39 38
40 } // namespace ash 39 } // namespace ash
41 40
42 #endif // ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_ 41 #endif // ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « trunk/src/ash/extended_desktop_unittest.cc ('k') | trunk/src/ash/high_contrast/high_contrast_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698