Ensure the scroll slop area is at least as large as it is by default on Windows.
[chromium-blink-merge.git] / ash / high_contrast / high_contrast_controller.h
blob10d0b7de8222f32e36dbd5881b363b7f339ff498
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
3 // found in the LICENSE file.
5 #ifndef ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_
6 #define ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_
8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h"
10 #include "base/basictypes.h"
12 namespace aura {
13 class Window;
16 namespace ash {
18 class ASH_EXPORT HighContrastController : public ShellObserver {
19 public:
20 HighContrastController();
21 virtual ~HighContrastController();
23 // Set high contrast mode and update all available displays.
24 void SetEnabled(bool enabled);
26 // ShellObserver:
27 virtual void OnRootWindowAdded(aura::Window* root_window) OVERRIDE;
29 private:
30 // Update high contrast mode on the passed display.
31 void UpdateDisplay(aura::Window* root_window);
33 // Indicates if the high contrast mode is enabled or disabled.
34 bool enabled_;
36 DISALLOW_COPY_AND_ASSIGN(HighContrastController);
39 } // namespace ash
41 #endif // ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_