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

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

Issue 10916123: 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. 159 // Notifies the power manager that a video is currently playing. It also
160 // includes whether or not the containing window for the video is fullscreen.
160 virtual void NotifyVideoActivity( 161 virtual void NotifyVideoActivity(
161 const base::TimeTicks& last_activity_time) = 0; 162 const base::TimeTicks& last_activity_time,
163 bool is_fullscreen) = 0;
162 164
163 // Override the current power state on the machine. The overrides will be 165 // Override the current power state on the machine. The overrides will be
164 // applied to the request ID specified. To specify a new request; use 0 as 166 // applied to the request ID specified. To specify a new request; use 0 as
165 // the request id and the method will call the provided callback with the 167 // the request id and the method will call the provided callback with the
166 // new request ID for use with further calls. 168 // new request ID for use with further calls.
167 // The overrides parameter will & out the PowerStateOverrideType types to 169 // The overrides parameter will & out the PowerStateOverrideType types to
168 // allow specific selection of overrides. For example, to override just dim 170 // allow specific selection of overrides. For example, to override just dim
169 // and suspending but leaving blanking in, set overrides to, 171 // and suspending but leaving blanking in, set overrides to,
170 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND. 172 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND.
171 virtual void RequestPowerStateOverrides( 173 virtual void RequestPowerStateOverrides(
(...skipping 17 matching lines...) Expand all
189 // Create() should be used instead. 191 // Create() should be used instead.
190 PowerManagerClient(); 192 PowerManagerClient();
191 193
192 private: 194 private:
193 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 195 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
194 }; 196 };
195 197
196 } // namespace chromeos 198 } // namespace chromeos
197 199
198 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 200 #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