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

Unified Diff: ash/system/keyboard_brightness_controller.cc

Issue 2731873002: Revert "chromeos: Move files in //ash/common to //ash, part 1" (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/keyboard_brightness_controller.h ('k') | ash/system/locale/locale_notification_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/keyboard_brightness_controller.cc
diff --git a/ash/system/keyboard_brightness_controller.cc b/ash/system/keyboard_brightness_controller.cc
deleted file mode 100644
index 6cb803f6b53c5dbade21a67b6ca53f2f1a0291f1..0000000000000000000000000000000000000000
--- a/ash/system/keyboard_brightness_controller.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 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.
-
-#include "ash/system/keyboard_brightness_controller.h"
-
-#include "ash/common/wm_shell.h"
-#include "chromeos/dbus/dbus_thread_manager.h"
-#include "chromeos/dbus/power_manager_client.h"
-#include "ui/base/accelerators/accelerator.h"
-
-namespace ash {
-
-void KeyboardBrightnessController::HandleKeyboardBrightnessDown(
- const ui::Accelerator& accelerator) {
- if (accelerator.key_code() == ui::VKEY_BRIGHTNESS_DOWN) {
- WmShell::Get()->RecordUserMetricsAction(
- UMA_ACCEL_KEYBOARD_BRIGHTNESS_DOWN_F6);
- }
-
- chromeos::DBusThreadManager::Get()
- ->GetPowerManagerClient()
- ->DecreaseKeyboardBrightness();
-}
-
-void KeyboardBrightnessController::HandleKeyboardBrightnessUp(
- const ui::Accelerator& accelerator) {
- if (accelerator.key_code() == ui::VKEY_BRIGHTNESS_UP) {
- WmShell::Get()->RecordUserMetricsAction(
- UMA_ACCEL_KEYBOARD_BRIGHTNESS_UP_F7);
- }
-
- chromeos::DBusThreadManager::Get()
- ->GetPowerManagerClient()
- ->IncreaseKeyboardBrightness();
-}
-
-} // namespace ash
« no previous file with comments | « ash/system/keyboard_brightness_controller.h ('k') | ash/system/locale/locale_notification_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698