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

Unified Diff: chromeos/dbus/power_manager_client.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/power_manager_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/power_manager_client.cc
diff --git a/chromeos/dbus/power_manager_client.cc b/chromeos/dbus/power_manager_client.cc
index 267ea0cc91d8f00637d23f32225fe0cc581861f9..e325ea22a4523fe6f072b9d3c2cdc6606c2c3e19 100644
--- a/chromeos/dbus/power_manager_client.cc
+++ b/chromeos/dbus/power_manager_client.cc
@@ -16,6 +16,7 @@
#include "base/timer.h"
#include "chromeos/dbus/power_state_control.pb.h"
#include "chromeos/dbus/power_supply_properties.pb.h"
+#include "chromeos/dbus/video_activity_update.pb.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
@@ -225,12 +226,18 @@ class PowerManagerClientImpl : public PowerManagerClient {
}
virtual void NotifyVideoActivity(
- const base::TimeTicks& last_activity_time) OVERRIDE {
+ const base::TimeTicks& last_activity_time,
+ bool is_fullscreen) OVERRIDE {
dbus::MethodCall method_call(
power_manager::kPowerManagerInterface,
power_manager::kHandleVideoActivityMethod);
dbus::MessageWriter writer(&method_call);
- writer.AppendInt64(last_activity_time.ToInternalValue());
+
+ VideoActivityUpdate protobuf;
+ protobuf.set_last_activity_time(last_activity_time.ToInternalValue());
+ protobuf.set_is_fullscreen(is_fullscreen);
+
+ writer.AppendProtoAsArrayOfBytes(protobuf);
power_manager_proxy_->CallMethod(
&method_call,
dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
@@ -590,7 +597,8 @@ class PowerManagerClientStubImpl : public PowerManagerClient {
virtual void NotifyUserActivity(
const base::TimeTicks& last_activity_time) OVERRIDE {}
virtual void NotifyVideoActivity(
- const base::TimeTicks& last_activity_time) OVERRIDE {}
+ const base::TimeTicks& last_activity_time,
+ bool is_fullscreen) OVERRIDE {}
virtual void RequestPowerStateOverrides(
uint32 request_id,
uint32 duration,
« no previous file with comments | « chromeos/dbus/power_manager_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698