| 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_BRIGHTNESS_CONTROL_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_ |
| 6 #define ASH_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_ | 6 #define ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| 11 class Accelerator; | 11 class Accelerator; |
| 12 } // namespace ui | 12 } // namespace ui |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 // Delegate for controlling the brightness. | 16 // Delegate for controlling the brightness. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 29 virtual void SetBrightnessPercent(double percent, bool gradual) = 0; | 29 virtual void SetBrightnessPercent(double percent, bool gradual) = 0; |
| 30 | 30 |
| 31 // Asynchronously invokes |callback| with the current brightness, in the range | 31 // Asynchronously invokes |callback| with the current brightness, in the range |
| 32 // [0.0, 100.0]. | 32 // [0.0, 100.0]. |
| 33 virtual void GetBrightnessPercent( | 33 virtual void GetBrightnessPercent( |
| 34 const base::Callback<void(double)>& callback) = 0; | 34 const base::Callback<void(double)>& callback) = 0; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace ash | 37 } // namespace ash |
| 38 | 38 |
| 39 #endif // ASH_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_ | 39 #endif // ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_ |
| OLD | NEW |