| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ |
| 6 #define ASH_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/brightness_control_delegate.h" | 9 #include "ash/common/system/brightness_control_delegate.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 namespace system { | 14 namespace system { |
| 15 | 15 |
| 16 // A class which controls brightness when F6, F7 or a multimedia key for | 16 // A class which controls brightness when F6, F7 or a multimedia key for |
| 17 // brightness is pressed. | 17 // brightness is pressed. |
| 18 class ASH_EXPORT BrightnessControllerChromeos | 18 class ASH_EXPORT BrightnessControllerChromeos |
| 19 : public ash::BrightnessControlDelegate { | 19 : public ash::BrightnessControlDelegate { |
| 20 public: | 20 public: |
| 21 BrightnessControllerChromeos() {} | 21 BrightnessControllerChromeos() {} |
| 22 ~BrightnessControllerChromeos() override {} | 22 ~BrightnessControllerChromeos() override {} |
| 23 | 23 |
| 24 // Overridden from ash::BrightnessControlDelegate: | 24 // Overridden from ash::BrightnessControlDelegate: |
| 25 void HandleBrightnessDown(const ui::Accelerator& accelerator) override; | 25 void HandleBrightnessDown(const ui::Accelerator& accelerator) override; |
| 26 void HandleBrightnessUp(const ui::Accelerator& accelerator) override; | 26 void HandleBrightnessUp(const ui::Accelerator& accelerator) override; |
| 27 void SetBrightnessPercent(double percent, bool gradual) override; | 27 void SetBrightnessPercent(double percent, bool gradual) override; |
| 28 void GetBrightnessPercent( | 28 void GetBrightnessPercent( |
| 29 const base::Callback<void(double)>& callback) override; | 29 const base::Callback<void(double)>& callback) override; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(BrightnessControllerChromeos); | 32 DISALLOW_COPY_AND_ASSIGN(BrightnessControllerChromeos); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace system | 35 } // namespace system |
| 36 } // namespace ash | 36 } // namespace ash |
| 37 | 37 |
| 38 #endif // ASH_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_ | 38 #endif // ASH_COMMON_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_
H_ |
| OLD | NEW |