| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/chromeos/dbus/display_power_service_provider.h" | 5 #include "chrome/browser/chromeos/dbus/display_power_service_provider.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/wm/user_activity_detector.h" | |
| 9 #include "base/bind.h" | 8 #include "base/bind.h" |
| 10 #include "dbus/bus.h" | 9 #include "dbus/bus.h" |
| 11 #include "dbus/message.h" | 10 #include "dbus/message.h" |
| 12 #include "third_party/cros_system_api/dbus/service_constants.h" | 11 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 13 #include "ui/display/chromeos/output_configurator.h" | 12 #include "ui/display/chromeos/output_configurator.h" |
| 13 #include "ui/wm/core/user_activity_detector.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 DisplayPowerServiceProvider::DisplayPowerServiceProvider() | 17 DisplayPowerServiceProvider::DisplayPowerServiceProvider() |
| 18 : weak_ptr_factory_(this) { | 18 : weak_ptr_factory_(this) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 DisplayPowerServiceProvider::~DisplayPowerServiceProvider() {} | 21 DisplayPowerServiceProvider::~DisplayPowerServiceProvider() {} |
| 22 | 22 |
| 23 void DisplayPowerServiceProvider::Start( | 23 void DisplayPowerServiceProvider::Start( |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 if (reader.PopBool(&dimmed)) { | 78 if (reader.PopBool(&dimmed)) { |
| 79 ash::Shell::GetInstance()->SetDimming(dimmed); | 79 ash::Shell::GetInstance()->SetDimming(dimmed); |
| 80 } else { | 80 } else { |
| 81 LOG(ERROR) << "Unable to parse " << kSetDisplaySoftwareDimming | 81 LOG(ERROR) << "Unable to parse " << kSetDisplaySoftwareDimming |
| 82 << " request"; | 82 << " request"; |
| 83 } | 83 } |
| 84 response_sender.Run(dbus::Response::FromMethodCall(method_call)); | 84 response_sender.Run(dbus::Response::FromMethodCall(method_call)); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace chromeos | 87 } // namespace chromeos |
| OLD | NEW |