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_SYSTEM_CHROMEOS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_ |
6 #define ASH_SYSTEM_CHROMEOS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_ | 6 #define ASH_SYSTEM_CHROMEOS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/system/keyboard_brightness/keyboard_brightness_control_delegate.h" | 9 #include "ash/system/keyboard_brightness/keyboard_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 namespace ash { | 13 namespace ash { |
14 | 14 |
15 // A class which controls keyboard brightness when Alt+F6, Alt+F7 or a | 15 // A class which controls keyboard brightness when Alt+F6, Alt+F7 or a |
16 // multimedia key for keyboard brightness is pressed. | 16 // multimedia key for keyboard brightness is pressed. |
17 class ASH_EXPORT KeyboardBrightnessController | 17 class ASH_EXPORT KeyboardBrightnessController |
18 : public KeyboardBrightnessControlDelegate { | 18 : public KeyboardBrightnessControlDelegate { |
19 public: | 19 public: |
20 KeyboardBrightnessController() {} | 20 KeyboardBrightnessController() {} |
21 virtual ~KeyboardBrightnessController() {} | 21 virtual ~KeyboardBrightnessController() {} |
22 | 22 |
23 private: | 23 private: |
24 // Overridden from KeyboardBrightnessControlDelegate: | 24 // Overridden from KeyboardBrightnessControlDelegate: |
25 virtual bool HandleKeyboardBrightnessDown( | 25 virtual bool HandleKeyboardBrightnessDown( |
26 const ui::Accelerator& accelerator) OVERRIDE; | 26 const ui::Accelerator& accelerator) override; |
27 virtual bool HandleKeyboardBrightnessUp( | 27 virtual bool HandleKeyboardBrightnessUp( |
28 const ui::Accelerator& accelerator) OVERRIDE; | 28 const ui::Accelerator& accelerator) override; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(KeyboardBrightnessController); | 30 DISALLOW_COPY_AND_ASSIGN(KeyboardBrightnessController); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace ash | 33 } // namespace ash |
34 | 34 |
35 #endif // ASH_SYSTEM_CHROMEOS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_ | 35 #endif // ASH_SYSTEM_CHROMEOS_KEYBOARD_BRIGHTNESS_CONTROLLER_H_ |
OLD | NEW |