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

Unified Diff: chrome/browser/ui/views/aura/brightness_controller_chromeos.cc

Issue 9570044: Rename chrome/browser/ui/views/{aura => ash}/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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
Index: chrome/browser/ui/views/aura/brightness_controller_chromeos.cc
diff --git a/chrome/browser/ui/views/aura/brightness_controller_chromeos.cc b/chrome/browser/ui/views/aura/brightness_controller_chromeos.cc
deleted file mode 100644
index 874b6c5b8bb162e1c573774e2de091778e58385c..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/aura/brightness_controller_chromeos.cc
+++ /dev/null
@@ -1,31 +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 "chrome/browser/ui/views/aura/brightness_controller_chromeos.h"
-
-#include "chrome/browser/chromeos/dbus/dbus_thread_manager.h"
-#include "chrome/browser/chromeos/dbus/power_manager_client.h"
-#include "content/public/browser/user_metrics.h"
-#include "ui/base/accelerators/accelerator.h"
-
-bool BrightnessController::HandleBrightnessDown(
- const ui::Accelerator& accelerator) {
- if (accelerator.key_code() == ui::VKEY_F6)
- content::RecordAction(
- content::UserMetricsAction("Accel_BrightnessDown_F6"));
-
- chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
- DecreaseScreenBrightness(true);
- return true;
-}
-
-bool BrightnessController::HandleBrightnessUp(
- const ui::Accelerator& accelerator) {
- if (accelerator.key_code() == ui::VKEY_F7)
- content::RecordAction(content::UserMetricsAction("Accel_BrightnessUp_F7"));
-
- chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
- IncreaseScreenBrightness();
- return true;
-}
« no previous file with comments | « chrome/browser/ui/views/aura/brightness_controller_chromeos.h ('k') | chrome/browser/ui/views/aura/caps_lock_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698