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

Issue 10905026: Add is_fullscreen to video updates (Closed)

Created:
8 years, 3 months ago by rharrison
Modified:
8 years, 3 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

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. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154905

Patch Set 1 #

Total comments: 9

Patch Set 2 : Responded to derat's comments #

Total comments: 16

Patch Set 3 : Fixed nits introduced by bad diff-fu #

Patch Set 4 : Fixed build issue in the unit tests #

Patch Set 5 : Added in missing header that clang caught #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -17 lines) Patch
M ash/wm/video_detector.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/video_detector.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M ash/wm/video_detector_unittest.cc View 1 2 3 4 7 chunks +54 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/power/video_activity_notifier.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/power/video_activity_notifier.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 chunks +15 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_power_manager_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/power_manager_client.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 3 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
rharrison
This CL is probably not ready for review yet, until I have the DEPS roll ...
8 years, 3 months ago (2012-08-30 19:09:02 UTC) #1
rharrison
http://codereview.chromium.org/10905026/diff/1/chromeos/dbus/power_manager_client.cc File chromeos/dbus/power_manager_client.cc (right): http://codereview.chromium.org/10905026/diff/1/chromeos/dbus/power_manager_client.cc#newcode235 chromeos/dbus/power_manager_client.cc:235: VideoDetectUpdate protobuf; I am going to change the name ...
8 years, 3 months ago (2012-08-30 19:16:06 UTC) #2
Daniel Erat
See http://crbug.com/114128, which concerns adding still more suspend-blocking to Chrome. Since we already have separate ...
8 years, 3 months ago (2012-08-30 19:27:10 UTC) #3
rharrison
On 2012/08/30 19:27:10, Daniel Erat wrote: > See http://crbug.com/114128, which concerns adding still more suspend-blocking ...
8 years, 3 months ago (2012-08-30 19:46:55 UTC) #4
Daniel Erat
On 2012/08/30 19:46:55, rharrison wrote: > On 2012/08/30 19:27:10, Daniel Erat wrote: > > See ...
8 years, 3 months ago (2012-08-30 20:02:32 UTC) #5
Daniel Erat
http://codereview.chromium.org/10905026/diff/1/ash/wm/mock_video_detector_observer.h File ash/wm/mock_video_detector_observer.h (right): http://codereview.chromium.org/10905026/diff/1/ash/wm/mock_video_detector_observer.h#newcode15 ash/wm/mock_video_detector_observer.h:15: class MockVideoDetectorObserver : public VideoDetectorObserver { i dislike gmock ...
8 years, 3 months ago (2012-08-30 20:33:59 UTC) #6
rharrison
http://codereview.chromium.org/10905026/diff/1/ash/wm/mock_video_detector_observer.h File ash/wm/mock_video_detector_observer.h (right): http://codereview.chromium.org/10905026/diff/1/ash/wm/mock_video_detector_observer.h#newcode15 ash/wm/mock_video_detector_observer.h:15: class MockVideoDetectorObserver : public VideoDetectorObserver { On 2012/08/30 20:33:59, ...
8 years, 3 months ago (2012-08-31 18:57:13 UTC) #7
rharrison
I have confirmed that this builds now. I am waiting on completing the CrOS side ...
8 years, 3 months ago (2012-08-31 18:57:48 UTC) #8
Daniel Erat
lgtm http://codereview.chromium.org/10905026/diff/1010/ash/wm/video_detector_unittest.cc File ash/wm/video_detector_unittest.cc (right): http://codereview.chromium.org/10905026/diff/1010/ash/wm/video_detector_unittest.cc#newcode111 ash/wm/video_detector_unittest.cc:111: // Send not-quite-enough adaquately-sized updates. nit: re-add blank ...
8 years, 3 months ago (2012-08-31 19:15:57 UTC) #9
rharrison
http://codereview.chromium.org/10905026/diff/1010/ash/wm/video_detector_unittest.cc File ash/wm/video_detector_unittest.cc (right): http://codereview.chromium.org/10905026/diff/1010/ash/wm/video_detector_unittest.cc#newcode111 ash/wm/video_detector_unittest.cc:111: // Send not-quite-enough adaquately-sized updates. On 2012/08/31 19:15:58, Daniel ...
8 years, 3 months ago (2012-09-04 20:12:56 UTC) #10
flackr
lgtm
8 years, 3 months ago (2012-09-05 00:27:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rharrison@chromium.org/10905026/1012
8 years, 3 months ago (2012-09-05 04:51:58 UTC) #12
commit-bot: I haz the power
8 years, 3 months ago (2012-09-05 07:16:26 UTC) #13
Change committed as 154905

Powered by Google App Engine
This is Rietveld 408576698