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 CHROME_BROWSER_UI_VIEWS_AURA_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AURA_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/system/brightness/brightness_control_delegate.h" | 9 #include "ash/system/brightness/brightness_control_delegate.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 | 12 |
13 // A class which controls brightness when F6, F7 or a multimedia key for | 13 // A class which controls brightness when F6, F7 or a multimedia key for |
14 // brightness is pressed. | 14 // brightness is pressed. |
15 class BrightnessController : public ash::BrightnessControlDelegate { | 15 class BrightnessController : public ash::BrightnessControlDelegate { |
16 public: | 16 public: |
17 BrightnessController() {} | 17 BrightnessController() {} |
18 virtual ~BrightnessController() {} | 18 virtual ~BrightnessController() {} |
19 | 19 |
20 // Overridden from ash::BrightnessControlDelegate: | 20 // Overridden from ash::BrightnessControlDelegate: |
21 virtual bool HandleBrightnessDown( | 21 virtual bool HandleBrightnessDown( |
22 const ui::Accelerator& accelerator) OVERRIDE; | 22 const ui::Accelerator& accelerator) OVERRIDE; |
23 virtual bool HandleBrightnessUp(const ui::Accelerator& accelerator) OVERRIDE; | 23 virtual bool HandleBrightnessUp(const ui::Accelerator& accelerator) OVERRIDE; |
24 | 24 |
25 private: | 25 private: |
26 DISALLOW_COPY_AND_ASSIGN(BrightnessController); | 26 DISALLOW_COPY_AND_ASSIGN(BrightnessController); |
27 }; | 27 }; |
28 | 28 |
29 #endif // CHROME_BROWSER_UI_VIEWS_AURA_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ | 29 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ |
OLD | NEW |