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

Unified Diff: ash/common/system/brightness_control_delegate.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/brightness_control_delegate.h
diff --git a/ash/common/system/brightness_control_delegate.h b/ash/common/system/brightness_control_delegate.h
deleted file mode 100644
index d85ce4198002c397601c2797ad8c1b4eea79470f..0000000000000000000000000000000000000000
--- a/ash/common/system/brightness_control_delegate.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2013 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 ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_
-#define ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_
-
-#include "base/callback.h"
-
-namespace ui {
-class Accelerator;
-} // namespace ui
-
-namespace ash {
-
-// Delegate for controlling the brightness.
-class BrightnessControlDelegate {
- public:
- virtual ~BrightnessControlDelegate() {}
-
- // Handles an accelerator-driven request to decrease or increase the screen
- // brightness.
- virtual void HandleBrightnessDown(const ui::Accelerator& accelerator) = 0;
- virtual void HandleBrightnessUp(const ui::Accelerator& accelerator) = 0;
-
- // Requests that the brightness be set to |percent|, in the range
- // [0.0, 100.0]. |gradual| specifies whether the transition to the new
- // brightness should be animated or instantaneous.
- virtual void SetBrightnessPercent(double percent, bool gradual) = 0;
-
- // Asynchronously invokes |callback| with the current brightness, in the range
- // [0.0, 100.0].
- virtual void GetBrightnessPercent(
- const base::Callback<void(double)>& callback) = 0;
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_
« 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