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

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

Issue 10928037: Revert 155224 - Add is_fullscreen to video updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // threshold time, a notification will be sent and then that request will be 149 // threshold time, a notification will be sent and then that request will be
150 // removed from the notification queue. If you wish notifications the next 150 // removed from the notification queue. If you wish notifications the next
151 // time the machine goes idle for that much time, request again. 151 // time the machine goes idle for that much time, request again.
152 virtual void RequestIdleNotification(int64 threshold_secs) = 0; 152 virtual void RequestIdleNotification(int64 threshold_secs) = 0;
153 153
154 // Notifies the power manager that the user is active (i.e. generating input 154 // Notifies the power manager that the user is active (i.e. generating input
155 // events). 155 // events).
156 virtual void NotifyUserActivity( 156 virtual void NotifyUserActivity(
157 const base::TimeTicks& last_activity_time) = 0; 157 const base::TimeTicks& last_activity_time) = 0;
158 158
159 // Notifies the power manager that a video is currently playing. It also 159 // Notifies the power manager that a video is currently playing.
160 // includes whether or not the containing window for the video is fullscreen.
161 virtual void NotifyVideoActivity( 160 virtual void NotifyVideoActivity(
162 const base::TimeTicks& last_activity_time, 161 const base::TimeTicks& last_activity_time) = 0;
163 bool is_fullscreen) = 0;
164 162
165 // Override the current power state on the machine. The overrides will be 163 // Override the current power state on the machine. The overrides will be
166 // applied to the request ID specified. To specify a new request; use 0 as 164 // applied to the request ID specified. To specify a new request; use 0 as
167 // the request id and the method will call the provided callback with the 165 // the request id and the method will call the provided callback with the
168 // new request ID for use with further calls. 166 // new request ID for use with further calls.
169 // The overrides parameter will & out the PowerStateOverrideType types to 167 // The overrides parameter will & out the PowerStateOverrideType types to
170 // allow specific selection of overrides. For example, to override just dim 168 // allow specific selection of overrides. For example, to override just dim
171 // and suspending but leaving blanking in, set overrides to, 169 // and suspending but leaving blanking in, set overrides to,
172 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND. 170 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND.
173 virtual void RequestPowerStateOverrides( 171 virtual void RequestPowerStateOverrides(
(...skipping 17 matching lines...) Expand all
191 // Create() should be used instead. 189 // Create() should be used instead.
192 PowerManagerClient(); 190 PowerManagerClient();
193 191
194 private: 192 private:
195 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 193 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
196 }; 194 };
197 195
198 } // namespace chromeos 196 } // namespace chromeos
199 197
200 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 198 #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