Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / ash / system / chromeos / brightness / brightness_controller_chromeos.h
blob111daf396b1f28404c3ffbcb71ac249dc78f9b51
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
3 // found in the LICENSE file.
5 #ifndef ASH_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_
6 #define ASH_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_
8 #include "ash/ash_export.h"
9 #include "ash/system/brightness_control_delegate.h"
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
13 namespace ash {
14 namespace system {
16 // A class which controls brightness when F6, F7 or a multimedia key for
17 // brightness is pressed.
18 class ASH_EXPORT BrightnessControllerChromeos
19 : public ash::BrightnessControlDelegate {
20 public:
21 BrightnessControllerChromeos() {}
22 virtual ~BrightnessControllerChromeos() {}
24 // Overridden from ash::BrightnessControlDelegate:
25 virtual bool HandleBrightnessDown(
26 const ui::Accelerator& accelerator) OVERRIDE;
27 virtual bool HandleBrightnessUp(const ui::Accelerator& accelerator) OVERRIDE;
28 virtual void SetBrightnessPercent(double percent, bool gradual) OVERRIDE;
29 virtual void GetBrightnessPercent(
30 const base::Callback<void(double)>& callback) OVERRIDE;
32 private:
33 DISALLOW_COPY_AND_ASSIGN(BrightnessControllerChromeos);
36 } // namespace system
37 } // namespace ash
39 #endif // ASH_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_