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

Side by Side Diff: chrome/browser/ui/views/ash/brightness_controller_chromeos.cc

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/views/ash/chrome_shell_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/ash/brightness_controller_chromeos.h" 5 #include "chrome/browser/ui/views/ash/brightness_controller_chromeos.h"
6 6
7 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" 7 #include "chromeos/dbus/dbus_thread_manager.h"
8 #include "chrome/browser/chromeos/dbus/power_manager_client.h" 8 #include "chromeos/dbus/power_manager_client.h"
9 #include "content/public/browser/user_metrics.h" 9 #include "content/public/browser/user_metrics.h"
10 #include "ui/base/accelerators/accelerator.h" 10 #include "ui/base/accelerators/accelerator.h"
11 11
12 bool BrightnessController::HandleBrightnessDown( 12 bool BrightnessController::HandleBrightnessDown(
13 const ui::Accelerator& accelerator) { 13 const ui::Accelerator& accelerator) {
14 if (accelerator.key_code() == ui::VKEY_F6) 14 if (accelerator.key_code() == ui::VKEY_F6)
15 content::RecordAction( 15 content::RecordAction(
16 content::UserMetricsAction("Accel_BrightnessDown_F6")); 16 content::UserMetricsAction("Accel_BrightnessDown_F6"));
17 17
18 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> 18 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
(...skipping 14 matching lines...) Expand all
33 void BrightnessController::SetBrightnessPercent(double percent, bool gradual) { 33 void BrightnessController::SetBrightnessPercent(double percent, bool gradual) {
34 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> 34 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
35 SetScreenBrightnessPercent(percent, gradual); 35 SetScreenBrightnessPercent(percent, gradual);
36 } 36 }
37 37
38 void BrightnessController::GetBrightnessPercent( 38 void BrightnessController::GetBrightnessPercent(
39 const base::Callback<void(double)>& callback) { 39 const base::Callback<void(double)>& callback) {
40 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> 40 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
41 GetScreenBrightnessPercent(callback); 41 GetScreenBrightnessPercent(callback);
42 } 42 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/views/ash/chrome_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698