chromeos: Move //ash/common files into //ash

//ash contains the "Aura Shell" system UI used by Chrome OS. For the
mustash servicification project we initially started moving files into
//ash/mus vs. //ash/aura vs. //ash/common. This allowed us to use DEPS
to ban aura includes. We now support aura on mus all the time, so we
don't need this directory structure.

BUG=690096
TEST=compiles, ash_unittests
[email protected]

Change-Id: I682586877b6c537d2db613664318bbc0365362c6

CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Change-Id: I682586877b6c537d2db613664318bbc0365362c6
Reviewed-on: https://chromium-review.googlesource.com/472548
Reviewed-by: James Cook <[email protected]>
Cr-Commit-Position: refs/heads/master@{#463140}
diff --git a/ash/system/brightness_control_delegate.h b/ash/system/brightness_control_delegate.h
new file mode 100644
index 0000000..153cc92
--- /dev/null
+++ b/ash/system/brightness_control_delegate.h
@@ -0,0 +1,39 @@
+// 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_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_
+#define ASH_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_SYSTEM_BRIGHTNESS_CONTROL_DELEGATE_H_