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

Unified Diff: ash/system/chromeos/brightness/brightness_controller_chromeos.h

Issue 2131733002: mash: Migrate [Keyboard]Brightness code to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ash/system/chromeos/brightness/brightness_controller_chromeos.h
diff --git a/ash/system/chromeos/brightness/brightness_controller_chromeos.h b/ash/system/chromeos/brightness/brightness_controller_chromeos.h
deleted file mode 100644
index 663989a1c112d89a2b6fc631b9bae3f4b2fa9948..0000000000000000000000000000000000000000
--- a/ash/system/chromeos/brightness/brightness_controller_chromeos.h
+++ /dev/null
@@ -1,38 +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_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_
-#define ASH_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_
-
-#include "ash/ash_export.h"
-#include "ash/system/brightness_control_delegate.h"
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-
-namespace ash {
-namespace system {
-
-// A class which controls brightness when F6, F7 or a multimedia key for
-// brightness is pressed.
-class ASH_EXPORT BrightnessControllerChromeos
- : public ash::BrightnessControlDelegate {
- public:
- BrightnessControllerChromeos() {}
- ~BrightnessControllerChromeos() override {}
-
- // Overridden from ash::BrightnessControlDelegate:
- void HandleBrightnessDown(const ui::Accelerator& accelerator) override;
- void HandleBrightnessUp(const ui::Accelerator& accelerator) override;
- void SetBrightnessPercent(double percent, bool gradual) override;
- void GetBrightnessPercent(
- const base::Callback<void(double)>& callback) override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BrightnessControllerChromeos);
-};
-
-} // namespace system
-} // namespace ash
-
-#endif // ASH_SYSTEM_CHROMEOS_BRIGHTNESS_BRIGHTNESS_CONTROLLER_CHROMEOS_H_
« no previous file with comments | « ash/system/brightness_control_delegate.h ('k') | ash/system/chromeos/brightness/brightness_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698