Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: ash/system/keyboard_brightness/keyboard_brightness_control_delegate.h

Issue 10694118: Add shortcuts for keyboard brightness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
5 #ifndef ASH_SYSTEM_KEYBOARD_BRIGHTNESS_KEYBOARD_BRIGHTNESS_CONTROL_DELEGATE_H_
6 #define ASH_SYSTEM_KEYBOARD_BRIGHTNESS_KEYBOARD_BRIGHTNESS_CONTROL_DELEGATE_H_
7 #pragma once
8
9 namespace ui {
10 class Accelerator;
11 } // namespace ui
12
13 namespace ash {
14
15 // Delegate for controlling the keyboard brightness.
16 class KeyboardBrightnessControlDelegate {
17 public:
18 virtual ~KeyboardBrightnessControlDelegate() {}
19
20 // Handles an accelerator-driven request to decrease or increase the keyboard
21 // brightness. Returns true if the brightness is changed.
22 virtual bool HandleKeyboardBrightnessDown(
23 const ui::Accelerator& accelerator) = 0;
24 virtual bool HandleKeyboardBrightnessUp(
25 const ui::Accelerator& accelerator) = 0;
26 };
27
28 } // namespace ash
29
30 #endif // ASH_SYSTEM_KEYBOARD_BRIGHTNESS_KEYBOARD_BRIGHTNESS_CONTROL_DELEGATE_H _
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698