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

Issue 2725503002: [Media Router] Custom Controls 4 - Implement details view WebUI (Closed)

Created:
3 years, 9 months ago by takumif
Modified:
3 years, 6 months ago
CC:
arv+watch_chromium.org, chromium-reviews, media-router+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Custom Controls 4 - Implement details view WebUI This CL adds a built-in alternative to the extensionview controller in the route details view of the media router dialog WebUI. The WebUI route controller is functionally equivalent to the extensionview controller. Whenever the WebUI is notified by the browser process of updates to the media status of the shown route, the details view is updated. Whenever the user interacts with the media controls on the details view, the media commands are sent to the browser process. The switch to the WebUI controller is managed by a Finch experiment that is currently disabled, so this CL has no behavioral change. Its functionality can be checked out with the flag --enable-features=MediaRouterUIRouteController. Before-and-after screenshots: https://docs.google.com/document/d/1v8jGV33FiFtH_qs2_Ui0UNubt1nHRN_CBrHLt1wRXF0 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: http://crrev/2731033002 4. Custom controls WebUI: this patch Custom controls design doc: https://docs.google.com/document/d/1_8QxdFIiiJX39jR1Wi1Zn9FW-Y66EMvX1GmQZvjN4G0/edit [1] https://codereview.chromium.org/2724513002/ BUG=684633 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2725503002 Cr-Commit-Position: refs/heads/master@{#475667} Committed: https://chromium.googlesource.com/chromium/src/+/3f7923888b023461435906b4b1488a5a857cdc32

Patch Set 1 : . #

Total comments: 17

Patch Set 2 : Address Derek's comments #

Patch Set 3 : Support switching between extensionview and new controls #

Patch Set 4 : Update #

Patch Set 5 : Fix a test #

Total comments: 73

Patch Set 6 : Address Mark's comments #

Total comments: 14

Patch Set 7 : Address Derek's comments, don't load extensionview unnecessarily #

Total comments: 42

Patch Set 8 : Address Mark's comments #

Total comments: 26

Patch Set 9 : Address Jennifer's comments #

Patch Set 10 : Remove uses of 'new' in comments #

Patch Set 11 : Factor out browserApi, rebase #

Patch Set 12 : Try to fix gyp errors #

Patch Set 13 : Try to appease Closure #

Patch Set 14 : Make Closure happy #

Total comments: 2

Patch Set 15 : Add braces to @implements {Interface} #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1503 lines, -573 lines) Patch
M chrome/app/media_router_strings.grdp View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/media_router_resources.grdp View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/compiled_resources2.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/compiled_resources2.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +44 lines, -5 lines 0 comments Download
A chrome/browser/resources/media_router/elements/media_router_container/media_router_container_interface.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +155 lines, -0 lines 0 comments Download
A + chrome/browser/resources/media_router/elements/route_controls/compiled_resources2.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +11 lines, -2 lines 0 comments Download
A chrome/browser/resources/media_router/elements/route_controls/route_controls.css View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/resources/media_router/elements/route_controls/route_controls.html View 1 2 3 4 5 6 7 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/resources/media_router/elements/route_controls/route_controls.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +261 lines, -0 lines 0 comments Download
A chrome/browser/resources/media_router/elements/route_controls/route_controls_interface.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/elements/route_details/compiled_resources2.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/resources/media_router/elements/route_details/extension_view_wrapper/compiled_resources2.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/resources/media_router/elements/route_details/extension_view_wrapper/extension_view_wrapper.css View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/resources/media_router/elements/route_details/extension_view_wrapper/extension_view_wrapper.html View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/resources/media_router/elements/route_details/extension_view_wrapper/extension_view_wrapper.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/elements/route_details/route_details.css View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/media_router/elements/route_details/route_details.html View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -4 lines 0 comments Download
M chrome/browser/resources/media_router/elements/route_details/route_details.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +122 lines, -45 lines 0 comments Download
M chrome/browser/resources/media_router/media_router.css View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/media_router/media_router.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/media_router/media_router.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
A + chrome/browser/resources/media_router/media_router_browser_api.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +79 lines, -188 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_common.css View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_data.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +66 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_ui_interface.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +40 lines, -252 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_localized_strings_provider.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_resources_provider.cc View 1 2 3 4 5 6 2 chunks +19 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_route_tests.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +23 lines, -20 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_elements_browsertest.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +52 lines, -3 lines 0 comments Download
A chrome/test/data/webui/media_router/route_controls_tests.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +247 lines, -0 lines 0 comments Download
M chrome/test/data/webui/media_router/route_details_tests.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +38 lines, -39 lines 0 comments Download

Messages

Total messages: 102 (75 generated)
takumif
Hi Derek, this is what I currently have for the WebUI side. You can see ...
3 years, 9 months ago (2017-02-28 18:51:59 UTC) #11
imcheng
Some preliminary comments. Look forward to seeing how this works with the browser side. https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js ...
3 years, 9 months ago (2017-03-02 02:25:47 UTC) #12
takumif
https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/route_details/route_details.html File chrome/browser/resources/media_router/elements/route_details/route_details.html (right): https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/route_details/route_details.html#newcode11 chrome/browser/resources/media_router/elements/route_details/route_details.html:11: <div id="route-controls"> On 2017/03/02 02:25:47, imcheng wrote: > - ...
3 years, 9 months ago (2017-03-02 19:21:27 UTC) #13
imcheng
https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/route_details/route_details.html File chrome/browser/resources/media_router/elements/route_details/route_details.html (right): https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/route_details/route_details.html#newcode11 chrome/browser/resources/media_router/elements/route_details/route_details.html:11: <div id="route-controls"> On 2017/03/02 19:21:27, takumif wrote: > On ...
3 years, 9 months ago (2017-03-06 23:36:35 UTC) #18
takumif
https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode2386 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:2386: updateRouteStatus: function(status) { On 2017/03/02 02:25:47, imcheng wrote: > ...
3 years, 9 months ago (2017-03-08 23:34:58 UTC) #20
imcheng
https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2725503002/diff/20001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode2386 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:2386: updateRouteStatus: function(status) { On 2017/03/08 23:34:58, takumif wrote: > ...
3 years, 9 months ago (2017-03-11 21:57:39 UTC) #21
takumif
Thanks for reviewing. Please feel free to prioritize other reviews/implementation over this one, since as ...
3 years, 9 months ago (2017-03-16 20:16:02 UTC) #22
takumif
+mfoltz Please take a look, thanks!
3 years, 9 months ago (2017-03-25 00:45:05 UTC) #25
takumif
FYI, you can now try this out with Derek's Hangouts route controller (http://cl/150905615). Patch Custom ...
3 years, 7 months ago (2017-04-27 21:12:21 UTC) #28
takumif
+apacible@: Please take a look at the usage of Polymer in route_controls.*, route_details.*, and media_router_container.*. ...
3 years, 7 months ago (2017-05-03 01:38:10 UTC) #33
mark a. foltz
Overall looks good and most of my comments were bikeshedding names. A couple of high ...
3 years, 7 months ago (2017-05-03 21:27:01 UTC) #34
takumif
https://codereview.chromium.org/2725503002/diff/180001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2725503002/diff/180001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode394 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:394: useNewRouteControls: { On 2017/05/03 21:26:59, mark a. foltz wrote: ...
3 years, 7 months ago (2017-05-05 18:57:40 UTC) #37
takumif
Thanks for reviewing, Mark. Jennifer, I wanted to make the loading of the extension view ...
3 years, 7 months ago (2017-05-05 18:59:53 UTC) #38
imcheng
Looks good overall. It would be a good idea to stamp the <extensionview> conditionally. We ...
3 years, 7 months ago (2017-05-05 21:36:41 UTC) #39
takumif
Thanks for reviewing! https://codereview.chromium.org/2725503002/diff/240001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2725503002/diff/240001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode2289 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:2289: media_router.browserApi.onMediaControllerAvailable(route.id); On 2017/05/05 21:36:40, imcheng wrote: ...
3 years, 7 months ago (2017-05-09 00:14:57 UTC) #40
mark a. foltz
Overall looks good with mostly minor comments. This is a lot of code, but it ...
3 years, 7 months ago (2017-05-12 00:02:47 UTC) #41
mark a. foltz
Tests look great - really well written. https://codereview.chromium.org/2725503002/diff/260001/chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js File chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js (right): https://codereview.chromium.org/2725503002/diff/260001/chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js#newcode73 chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js:73: var overrideBrowserApi ...
3 years, 7 months ago (2017-05-12 21:07:35 UTC) #42
takumif
https://codereview.chromium.org/2725503002/diff/260001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2725503002/diff/260001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode390 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:390: * Whether the new web UI route controls should ...
3 years, 7 months ago (2017-05-15 17:13:13 UTC) #46
takumif
On 2017/05/12 00:02:47, mark a. foltz wrote: > Overall looks good with mostly minor comments. ...
3 years, 7 months ago (2017-05-15 17:17:35 UTC) #47
mark a. foltz
LGTM Can you put the screenshots in a document on chromium.org so that others can ...
3 years, 7 months ago (2017-05-15 20:43:22 UTC) #48
apacible
Nice work! https://codereview.chromium.org/2725503002/diff/280001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2725503002/diff/280001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode390 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:390: * Whether the new WebUI route controls ...
3 years, 7 months ago (2017-05-17 21:52:17 UTC) #50
takumif
Thanks for reviewing! https://codereview.chromium.org/2725503002/diff/280001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2725503002/diff/280001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode390 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:390: * Whether the new WebUI route ...
3 years, 7 months ago (2017-05-18 18:01:56 UTC) #52
apacible
lgtm https://codereview.chromium.org/2725503002/diff/280001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2725503002/diff/280001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode390 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:390: * Whether the new WebUI route controls should ...
3 years, 6 months ago (2017-05-24 20:28:26 UTC) #76
imcheng
lgtm https://codereview.chromium.org/2725503002/diff/560001/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/2725503002/diff/560001/chrome/browser/resources/media_router/elements/route_controls/route_controls.js#newcode206 chrome/browser/resources/media_router/elements/route_controls/route_controls.js:206: */ Does adding @override here and in reset() ...
3 years, 6 months ago (2017-05-26 18:17:17 UTC) #83
takumif
https://codereview.chromium.org/2725503002/diff/560001/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/2725503002/diff/560001/chrome/browser/resources/media_router/elements/route_controls/route_controls.js#newcode206 chrome/browser/resources/media_router/elements/route_controls/route_controls.js:206: */ On 2017/05/26 18:17:17, imcheng wrote: > Does adding ...
3 years, 6 months ago (2017-05-27 01:00:04 UTC) #90
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/2725503002/580001
3 years, 6 months ago (2017-05-30 20:54:13 UTC) #99
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 20:59:10 UTC) #102
Message was sent while issue was closed.
Committed patchset #15 (id:580001) as
https://chromium.googlesource.com/chromium/src/+/3f7923888b023461435906b4b148...

Powered by Google App Engine
This is Rietveld 408576698