summaryrefslogtreecommitdiffstats
path: root/chromeos/chromeos.gyp
diff options
context:
space:
mode:
authorrharrison@chromium.org <rharrison@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-05 07:16:23 +0000
committerrharrison@chromium.org <rharrison@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-05 07:16:23 +0000
commit6ca01aeadf9acf8a812e8060553b270dd879efa5 (patch)
treecc0231683dfd054cd575a89946ca01ebe5d48c84 /chromeos/chromeos.gyp
parent2bcbf7165154f4135ea3257c9fb018fe59c1d8a1 (diff)
downloadchromium_src-6ca01aeadf9acf8a812e8060553b270dd879efa5.zip
chromium_src-6ca01aeadf9acf8a812e8060553b270dd879efa5.tar.gz
chromium_src-6ca01aeadf9acf8a812e8060553b270dd879efa5.tar.bz2
Add is_fullscreen to video updates
This adds a boolean to the video update message sent to powerd that indicates whether or not the video playing window is fullscreen'd. This is information used in powerd for controlling when to enable/disable keyboard backlights. Specifically if video is playing and fullscreen we assume that the user is doing something like watching a movie so will disable backlight. An additional change that I have made is to convert the message being sent from an int64 to a protobuffer that contains a int64 and a boolean. Currently, since the receiver of this message does not live in the same repo it means that every time one wants to change the message format there is a small window where bad builds can be generated or one has to land two changes to the other repo, one to add handling of the new message format and then a second one to remove the old format. Converting to a protobuffer means that for common cases this issues are removed. This CL depends on CLs for power_manager (https://gerrit.chromium.org/gerrit/32092/), one for system_api (https://gerrit.chromium.org/gerrit/31916), and a DEPS roll(http://codereview.chromium.org/10915032/). There will be future CLs for power_manager that will use this information and test this code. BUG=chrome-os-partner:9203 TEST=Run updated unittests. Confirm there is no messages in the cros logs about this method being mishandled. Review URL: https://chromiumcodereview.appspot.com/10905026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/chromeos.gyp')
-rw-r--r--chromeos/chromeos.gyp15
1 files changed, 15 insertions, 0 deletions
diff --git a/chromeos/chromeos.gyp b/chromeos/chromeos.gyp
index 762adfd..2d5c692 100644
--- a/chromeos/chromeos.gyp
+++ b/chromeos/chromeos.gyp
@@ -18,6 +18,7 @@
'../third_party/libxml/libxml.gyp:libxml',
'power_state_control_proto',
'power_supply_properties_proto',
+ 'video_activity_update_proto',
],
'defines': [
'CHROMEOS_IMPLEMENTATION',
@@ -290,5 +291,19 @@
},
'includes': ['../build/protoc.gypi'],
},
+ {
+ # Protobuf compiler / generator for the VideoActivityUpdate protocol
+ # buffer.
+ 'target_name': 'video_activity_update_proto',
+ 'type': 'static_library',
+ 'sources': [
+ '../third_party/cros_system_api/dbus/video_activity_update.proto',
+ ],
+ 'variables': {
+ 'proto_in_dir': '../third_party/cros_system_api/dbus/',
+ 'proto_out_dir': 'chromeos/dbus',
+ },
+ 'includes': ['../build/protoc.gypi'],
+ },
],
}