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

Side by Side Diff: chromeos/dbus/power_manager_client.h

Issue 10831312: Remove direct DBus calls from OutputConfigurator (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 4 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 | « chromeos/dbus/mock_power_manager_client.h ('k') | chromeos/dbus/power_manager_client.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 #ifndef CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // The overrides parameter will & out the PowerStateOverrideType types to 174 // The overrides parameter will & out the PowerStateOverrideType types to
175 // allow specific selection of overrides. For example, to override just dim 175 // allow specific selection of overrides. For example, to override just dim
176 // and suspending but leaving blanking in, set overrides to, 176 // and suspending but leaving blanking in, set overrides to,
177 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND. 177 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND.
178 virtual void RequestPowerStateOverrides( 178 virtual void RequestPowerStateOverrides(
179 uint32 request_id, 179 uint32 request_id,
180 uint32 duration, 180 uint32 duration,
181 int overrides, 181 int overrides,
182 const PowerStateRequestIdCallback& callback) = 0; 182 const PowerStateRequestIdCallback& callback) = 0;
183 183
184 // Tells powerd whether or not we are in a projecting mode. This is used to
185 // adjust idleness thresholds and derived, on this side, from the number of
186 // video outputs attached.
187 virtual void SetIsProjecting(bool is_projecting) = 0;
188
184 // Creates the instance. 189 // Creates the instance.
185 static PowerManagerClient* Create(DBusClientImplementationType type, 190 static PowerManagerClient* Create(DBusClientImplementationType type,
186 dbus::Bus* bus); 191 dbus::Bus* bus);
187 192
188 virtual ~PowerManagerClient(); 193 virtual ~PowerManagerClient();
189 194
190 protected: 195 protected:
191 // Create() should be used instead. 196 // Create() should be used instead.
192 PowerManagerClient(); 197 PowerManagerClient();
193 198
194 private: 199 private:
195 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 200 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
196 }; 201 };
197 202
198 } // namespace chromeos 203 } // namespace chromeos
199 204
200 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 205 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_power_manager_client.h ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698