Description[Media Router] Custom Controls 3 - add plumbing through MRUI and
MRWebUIMessageHandler
When the route details view is opened, MediaRouterUI will instantiate an
observer for the controller obtained via MediaRouter::GetRouteController().
MediaRouterUI will send media commands (e.g. play/pause) to the controller
through the reference held by the observer. The observer will be destroyed when
the route details view is closed.
MediaRouterWebUIMessageHandler will parse media commands from the WebUI and pass
them on to MediaRouterUI. It will also forward status updates from the
controller observer to the WebUI.
The Chromium-side implementation of custom controls will be done in these
patches:
1. Mojo/MediaStatus/MediaRouteController: http://crrev/2727123002
2. MediaRouter::GetRouteController(): http://crrev/2728543009
3. MRUI/MRWebUIMessageHandler: this patch
4. Custom controls WebUI: http://crrev/2725503002
Custom controls design doc:
https://docs.google.com/document/d/1_8QxdFIiiJX39jR1Wi1Zn9FW-Y66EMvX1GmQZvjN4G0/edit
BUG=684638
Review-Url: https://codereview.chromium.org/2731033002
Cr-Commit-Position: refs/heads/master@{#468864}
Committed: https://chromium.googlesource.com/chromium/src/+/e91ca334b8194bc324044057aa6b9f8bf898b1a7
Patch Set 1 #Patch Set 2 : Make MediaRouteController ref-counted #Patch Set 3 : Add and refactor tests #Patch Set 4 : Notify WebUI of route controller invalidation #Patch Set 5 : Sync with CL #2 #Patch Set 6 : Update with finch switch #Patch Set 7 : Rebase #
Total comments: 20
Patch Set 8 : Address Derek's comments #
Total comments: 22
Patch Set 9 : Address Mark's and Derek's comments #
Total comments: 8
Patch Set 10 : Address Mark's and Derek's comments #Patch Set 11 : Rebase #Messages
Total messages: 40 (26 generated)
|