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 "chromeos/dbus/services/display_power_service_provider.h" | 5 #include "chromeos/dbus/services/display_power_service_provider.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "dbus/message.h" | 8 #include "dbus/message.h" |
9 #include "third_party/cros_system_api/dbus/service_constants.h" | |
10 | 9 |
11 namespace chromeos { | 10 namespace chromeos { |
12 | 11 |
13 namespace { | 12 namespace { |
14 | 13 |
15 void RunConfigurationCallback( | 14 void RunConfigurationCallback( |
16 dbus::MethodCall* method_call, | 15 dbus::MethodCall* method_call, |
17 dbus::ExportedObject::ResponseSender response_sender, | 16 dbus::ExportedObject::ResponseSender response_sender, |
18 bool status) { | 17 bool status) { |
19 response_sender.Run(dbus::Response::FromMethodCall(method_call)); | 18 response_sender.Run(dbus::Response::FromMethodCall(method_call)); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 if (reader.PopBool(&dimmed)) { | 79 if (reader.PopBool(&dimmed)) { |
81 delegate_->SetDimming(dimmed); | 80 delegate_->SetDimming(dimmed); |
82 } else { | 81 } else { |
83 LOG(ERROR) << "Unable to parse " << kSetDisplaySoftwareDimming | 82 LOG(ERROR) << "Unable to parse " << kSetDisplaySoftwareDimming |
84 << " request"; | 83 << " request"; |
85 } | 84 } |
86 response_sender.Run(dbus::Response::FromMethodCall(method_call)); | 85 response_sender.Run(dbus::Response::FromMethodCall(method_call)); |
87 } | 86 } |
88 | 87 |
89 } // namespace chromeos | 88 } // namespace chromeos |
OLD | NEW |