Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 } | 13 } |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 | 16 |
| 17 class ASH_EXPORT HighContrastController { | 17 class ASH_EXPORT HighContrastController { |
| 18 public: | 18 public: |
| 19 HighContrastController(); | 19 HighContrastController(); |
| 20 | 20 |
| 21 ~HighContrastController() {} | 21 ~HighContrastController() {} |
| 22 | 22 |
| 23 // Set high contrast mode and update all available displays. | |
| 23 void SetEnabled(bool enabled); | 24 void SetEnabled(bool enabled); |
| 24 | 25 |
| 26 // Update high contrast mode on the just added display. | |
| 27 void OnRootWindowAdded(aura::RootWindow* root_window); | |
| 28 | |
| 25 private: | 29 private: |
| 26 aura::RootWindow* root_window_; | 30 bool enabled_; |
| 27 | 31 |
| 28 bool enabled_; | 32 // Update high contrast mode on the passed display. |
| 33 void UpdateDisplay(aura::RootWindow* root_window); | |
|
Ben Goodger (Google)
2012/09/21 18:05:41
functions before data.
mtomasz
2012/09/24 02:40:48
Done.
| |
| 29 | 34 |
| 30 DISALLOW_COPY_AND_ASSIGN(HighContrastController); | 35 DISALLOW_COPY_AND_ASSIGN(HighContrastController); |
| 31 }; | 36 }; |
| 32 | 37 |
| 33 } // namespace ash | 38 } // namespace ash |
| 34 | 39 |
| 35 #endif // ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_ | 40 #endif // ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_ |
| OLD | NEW |