keyboard_brightness_control_delegate.h 972 B

123456789101112131415161718192021222324252627282930
  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
  3. // found in the LICENSE file.
  4. #ifndef ASH_SYSTEM_KEYBOARD_BRIGHTNESS_CONTROL_DELEGATE_H_
  5. #define ASH_SYSTEM_KEYBOARD_BRIGHTNESS_CONTROL_DELEGATE_H_
  6. namespace ui {
  7. class Accelerator;
  8. } // namespace ui
  9. namespace ash {
  10. // Delegate for controlling the keyboard brightness.
  11. class KeyboardBrightnessControlDelegate {
  12. public:
  13. virtual ~KeyboardBrightnessControlDelegate() {}
  14. // Handles an accelerator-driven request to decrease or increase
  15. // the keyboard brightness, or toggle the backlight itself on/off.
  16. virtual void HandleKeyboardBrightnessDown(
  17. const ui::Accelerator& accelerator) = 0;
  18. virtual void HandleKeyboardBrightnessUp(
  19. const ui::Accelerator& accelerator) = 0;
  20. virtual void HandleToggleKeyboardBacklight() = 0;
  21. };
  22. } // namespace ash
  23. #endif // ASH_SYSTEM_KEYBOARD_BRIGHTNESS_CONTROL_DELEGATE_H_