summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/ash/keyboard_brightness_controller_chromeos.h
blob: 97228f6f10135e152ec0238f4fad08b1343de878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_ASH_KEYBOARD_BRIGHTNESS_CONTROLLER_CHROMEOS_H_
#define CHROME_BROWSER_UI_ASH_KEYBOARD_BRIGHTNESS_CONTROLLER_CHROMEOS_H_

#include "ash/system/keyboard_brightness/keyboard_brightness_control_delegate.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"

// A class which controls keyboard brightness when Alt+F6, Alt+F7 or a
// multimedia key for keyboard brightness is pressed.
class KeyboardBrightnessController
    : public ash::KeyboardBrightnessControlDelegate {
 public:
  KeyboardBrightnessController() {}
  virtual ~KeyboardBrightnessController() {}

 private:
  // Overridden from ash::KeyboardBrightnessControlDelegate:
  virtual bool HandleKeyboardBrightnessDown(
      const ui::Accelerator& accelerator) OVERRIDE;
  virtual bool HandleKeyboardBrightnessUp(
      const ui::Accelerator& accelerator) OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(KeyboardBrightnessController);
};

#endif  // CHROME_BROWSER_UI_ASH_KEYBOARD_BRIGHTNESS_CONTROLLER_CHROMEOS_H_