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

Side by Side Diff: ash/common/system/brightness_control_delegate.h

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « ash/common/system/accessibility_observer.h ('k') | ash/common/system/chromeos/DEPS » ('j') | 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 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.
4
5 #ifndef ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_
6 #define ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_
7
8 #include "base/callback.h"
9
10 namespace ui {
11 class Accelerator;
12 } // namespace ui
13
14 namespace ash {
15
16 // Delegate for controlling the brightness.
17 class BrightnessControlDelegate {
18 public:
19 virtual ~BrightnessControlDelegate() {}
20
21 // Handles an accelerator-driven request to decrease or increase the screen
22 // brightness.
23 virtual void HandleBrightnessDown(const ui::Accelerator& accelerator) = 0;
24 virtual void HandleBrightnessUp(const ui::Accelerator& accelerator) = 0;
25
26 // Requests that the brightness be set to |percent|, in the range
27 // [0.0, 100.0]. |gradual| specifies whether the transition to the new
28 // brightness should be animated or instantaneous.
29 virtual void SetBrightnessPercent(double percent, bool gradual) = 0;
30
31 // Asynchronously invokes |callback| with the current brightness, in the range
32 // [0.0, 100.0].
33 virtual void GetBrightnessPercent(
34 const base::Callback<void(double)>& callback) = 0;
35 };
36
37 } // namespace ash
38
39 #endif // ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/system/accessibility_observer.h ('k') | ash/common/system/chromeos/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698