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

Issue 2932933002: [Media Router] Increment the media's current_time in the WebUI route controller (Closed)

Created:
3 years, 6 months ago by takumif
Modified:
3 years, 6 months ago
Reviewers:
imcheng, dcheng
CC:
chromium-reviews, imcheng+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, arv+watch_chromium.org, darin (slow to review), mfoltz+watch_chromium.org, qsr+mojo_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Increment the media's current_time in the WebUI route controller This CL replaces the is_paused attribute of the MediaRoute object with play_state enum, and makes the WebUI route controller increment the current time of the media every second if the enum value is PLAYING (not PAUSED/BUFFERING). This is the second of the three (extension-side, browser-side, extension-side) patches to allow the WebUI route controller to increment the current time (shown on the seek bar) on its own while the media is playing: 1. Add play_state attribute to the extension side (cl/159493444) 2. Make the browser side use only play_state, and increment time on its own (this patch) 3. Remove is_paused attribute and time-incrementing-logic from the extension side This CL must land after the CL #1 above. BUG=731192 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2932933002 Cr-Commit-Position: refs/heads/master@{#481318} Committed: https://chromium.googlesource.com/chromium/src/+/572110ec256c5a328a0cc6f17a893c27418410fb

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 10

Patch Set 6 : Address Daniel's and Derek's comments #

Patch Set 7 : Check that we can increment in onRouteStatusChange_() #

Messages

Total messages: 33 (27 generated)
takumif
Please take a look at: imcheng: all dcheng: media_status.mojom and struct traits Thanks!
3 years, 6 months ago (2017-06-20 17:19:25 UTC) #8
dcheng
ipc lgtm https://codereview.chromium.org/2932933002/diff/80001/chrome/common/media_router/mojo/media_status_struct_traits.h File chrome/common/media_router/mojo/media_status_struct_traits.h (right): https://codereview.chromium.org/2932933002/diff/80001/chrome/common/media_router/mojo/media_status_struct_traits.h#newcode46 chrome/common/media_router/mojo/media_status_struct_traits.h:46: return false; For enum traits, it's actually ...
3 years, 6 months ago (2017-06-20 21:18:05 UTC) #9
imcheng
lgtm % comments https://codereview.chromium.org/2932933002/diff/80001/chrome/browser/resources/media_router/elements/route_controls/route_controls.js File chrome/browser/resources/media_router/elements/route_controls/route_controls.js (right): https://codereview.chromium.org/2932933002/diff/80001/chrome/browser/resources/media_router/elements/route_controls/route_controls.js#newcode88 chrome/browser/resources/media_router/elements/route_controls/route_controls.js:88: '', '', false, false, false, false, ...
3 years, 6 months ago (2017-06-20 23:00:00 UTC) #10
takumif
Thanks for the reviews! https://codereview.chromium.org/2932933002/diff/80001/chrome/browser/resources/media_router/elements/route_controls/route_controls.js File chrome/browser/resources/media_router/elements/route_controls/route_controls.js (right): https://codereview.chromium.org/2932933002/diff/80001/chrome/browser/resources/media_router/elements/route_controls/route_controls.js#newcode88 chrome/browser/resources/media_router/elements/route_controls/route_controls.js:88: '', '', false, false, false, ...
3 years, 6 months ago (2017-06-20 23:56:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2932933002/120001
3 years, 6 months ago (2017-06-21 21:44:40 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 21:50:15 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/572110ec256c5a328a0cc6f17a89...

Powered by Google App Engine
This is Rietveld 408576698