OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ash/common/system/chromeos/brightness/brightness_controller_chromeos.h
" | 5 #include "ash/system/brightness/brightness_controller_chromeos.h" |
6 | 6 |
7 #include "base/metrics/user_metrics.h" | 7 #include "base/metrics/user_metrics.h" |
8 #include "chromeos/dbus/dbus_thread_manager.h" | 8 #include "chromeos/dbus/dbus_thread_manager.h" |
9 #include "chromeos/dbus/power_manager_client.h" | 9 #include "chromeos/dbus/power_manager_client.h" |
10 #include "ui/base/accelerators/accelerator.h" | 10 #include "ui/base/accelerators/accelerator.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 namespace system { | 13 namespace system { |
14 | 14 |
15 void BrightnessControllerChromeos::HandleBrightnessDown( | 15 void BrightnessControllerChromeos::HandleBrightnessDown( |
(...skipping 25 matching lines...) Expand all Loading... |
41 | 41 |
42 void BrightnessControllerChromeos::GetBrightnessPercent( | 42 void BrightnessControllerChromeos::GetBrightnessPercent( |
43 const base::Callback<void(double)>& callback) { | 43 const base::Callback<void(double)>& callback) { |
44 chromeos::DBusThreadManager::Get() | 44 chromeos::DBusThreadManager::Get() |
45 ->GetPowerManagerClient() | 45 ->GetPowerManagerClient() |
46 ->GetScreenBrightnessPercent(callback); | 46 ->GetScreenBrightnessPercent(callback); |
47 } | 47 } |
48 | 48 |
49 } // namespace system | 49 } // namespace system |
50 } // namespace ash | 50 } // namespace ash |
OLD | NEW |