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

Issue 2426653002: Adding mojo MediaSessionClient to support media controls (Closed)

Created:
4 years, 2 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, haraken, jam, mlamouri (slow - plz ping), qsr+mojo_chromium.org, Srirama, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding mojo MediaSessionClient to support media controls This CL adds MediaSessionClient mojo interface to allow Blink MediaSession and content::MediaSession communicate for media control messages. BUG=656563 Committed: https://crrev.com/649f9b868f6783ec9de71c123212b908bf3b232e Cr-Commit-Position: refs/heads/master@{#426924}

Patch Set 1 : Still rough, depends on "blink media controls" CL #

Total comments: 6

Patch Set 2 : addressed Anton's comments #

Total comments: 6

Patch Set 3 : Addressed haraken's comments #

Total comments: 26

Patch Set 4 : addressing more comments #

Total comments: 8

Patch Set 5 : rebased and nits #

Messages

Total messages: 37 (19 generated)
Zhiqiang Zhang (Slow)
4 years, 2 months ago (2016-10-17 14:53:15 UTC) #2
whywhat
https://codereview.chromium.org/2426653002/diff/1/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html File third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html (right): https://codereview.chromium.org/2426653002/diff/1/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html#newcode56 third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html:56: runTests(); hm, does this really work? https://codereview.chromium.org/2426653002/diff/1/third_party/WebKit/public/platform/modules/mediasession/media_session.mojom File third_party/WebKit/public/platform/modules/mediasession/media_session.mojom ...
4 years, 2 months ago (2016-10-17 15:38:44 UTC) #3
Zhiqiang Zhang (Slow)
PTAL https://codereview.chromium.org/2426653002/diff/1/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html File third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html (right): https://codereview.chromium.org/2426653002/diff/1/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html#newcode56 third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html:56: runTests(); On 2016/10/17 15:38:43, whywhat wrote: > hm, ...
4 years, 2 months ago (2016-10-17 21:17:39 UTC) #4
haraken
https://codereview.chromium.org/2426653002/diff/20001/third_party/WebKit/Source/modules/mediasession/MediaSession.cpp File third_party/WebKit/Source/modules/mediasession/MediaSession.cpp (right): https://codereview.chromium.org/2426653002/diff/20001/third_party/WebKit/Source/modules/mediasession/MediaSession.cpp#newcode23 third_party/WebKit/Source/modules/mediasession/MediaSession.cpp:23: Vector<AtomicString>* vec = new Vector<AtomicString>(); Use std::unique_ptr. However, why ...
4 years, 2 months ago (2016-10-17 22:37:06 UTC) #6
Zhiqiang Zhang (Slow)
PTAL +rickyz to review mojo changes. Addressed haraken's comments. https://codereview.chromium.org/2426653002/diff/20001/third_party/WebKit/Source/modules/mediasession/MediaSession.cpp File third_party/WebKit/Source/modules/mediasession/MediaSession.cpp (right): https://codereview.chromium.org/2426653002/diff/20001/third_party/WebKit/Source/modules/mediasession/MediaSession.cpp#newcode23 third_party/WebKit/Source/modules/mediasession/MediaSession.cpp:23: ...
4 years, 2 months ago (2016-10-18 14:42:15 UTC) #8
mlamouri (slow - plz ping)
I see that avayvod@ and haraken@ are reviewing the CL already so I'm not going ...
4 years, 2 months ago (2016-10-18 17:11:15 UTC) #10
haraken
https://codereview.chromium.org/2426653002/diff/60001/third_party/WebKit/Source/modules/mediasession/MediaSession.cpp File third_party/WebKit/Source/modules/mediasession/MediaSession.cpp (right): https://codereview.chromium.org/2426653002/diff/60001/third_party/WebKit/Source/modules/mediasession/MediaSession.cpp#newcode25 third_party/WebKit/Source/modules/mediasession/MediaSession.cpp:25: Vector<AtomicString>, actionEnumToEventNameVec, []() { I'm asking why we need ...
4 years, 2 months ago (2016-10-18 19:42:37 UTC) #12
whywhat
https://chromiumcodereview.appspot.com/2426653002/diff/60001/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html File third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html (right): https://chromiumcodereview.appspot.com/2426653002/diff/60001/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html#newcode55 third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html:55: m.setClientCallback(t.step_func_done(_ => { it seems like you could just ...
4 years, 2 months ago (2016-10-18 21:02:57 UTC) #13
Zhiqiang Zhang (Slow)
PTAL Addressed comments from avayvod@ and haraken@. * Using switch to translate between mojo action ...
4 years, 2 months ago (2016-10-19 12:52:07 UTC) #14
haraken
WebKit LGTM https://codereview.chromium.org/2426653002/diff/80001/third_party/WebKit/Source/modules/mediasession/MediaSession.cpp File third_party/WebKit/Source/modules/mediasession/MediaSession.cpp (right): https://codereview.chromium.org/2426653002/diff/80001/third_party/WebKit/Source/modules/mediasession/MediaSession.cpp#newcode45 third_party/WebKit/Source/modules/mediasession/MediaSession.cpp:45: return emptyString; Return WTF::emptyString() ?
4 years, 2 months ago (2016-10-19 12:58:05 UTC) #15
whywhat
lgtm https://codereview.chromium.org/2426653002/diff/80001/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html File third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html (right): https://codereview.chromium.org/2426653002/diff/80001/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html#newcode32 third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html:32: window.navigator.mediaSession.onplay = t.step_func(checkExpectation.bind(null, t)); the order of parameters ...
4 years, 2 months ago (2016-10-19 21:59:00 UTC) #16
rickyz (no longer on Chrome)
Hi, when doing security reviews mojom changes, we prefer to also see the browser-side implementation ...
4 years, 2 months ago (2016-10-20 05:56:49 UTC) #17
Zhiqiang Zhang (Slow)
On 2016/10/20 05:56:49, rickyz wrote: > Hi, when doing security reviews mojom changes, we prefer ...
4 years, 2 months ago (2016-10-20 09:54:49 UTC) #18
Zhiqiang Zhang (Slow)
Friendly ping to rickyz@ :) We have other works blocked by this CL. I had ...
4 years, 2 months ago (2016-10-21 14:52:45 UTC) #28
rickyz (no longer on Chrome)
Thanks for the explanation - lgtm, but please also include a security reviewer on the ...
4 years, 2 months ago (2016-10-21 22:37:55 UTC) #31
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/2426653002/160001
4 years, 2 months ago (2016-10-21 22:50:16 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years, 2 months ago (2016-10-21 23:18:04 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 23:20:42 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/649f9b868f6783ec9de71c123212b908bf3b232e
Cr-Commit-Position: refs/heads/master@{#426924}

Powered by Google App Engine
This is Rietveld 408576698