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

Issue 1139203003: [Media Router] MediaRouterUI + WebUI handler implementation. (Closed)

Created:
5 years, 7 months ago by imcheng (use chromium acct)
Modified:
5 years, 6 months ago
Reviewers:
Wez
CC:
chromium-reviews, posciak+watch_chromium.org, media-router+watch_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] MediaRouterUI + WebUI handler implementation. This patch has two parts: - MediaRouterWebUIMessageHandler handles calls coming from WebUI/JS. Also sends up-to-date data (e.g. MediaSinks) to WebUI. - MediaRouterUI interfaces with the MediaRouter to handle calls from the WebUI (such as CreateRoute) and listen for sink / route updates. Implemented handler logic for the following from Media Router WebUI: OnGetInitialSettings OnCreateRoute OnActOnIssue - skeleton impl OnCloseRoute OnCloseDialog Implemented WebUI logic for the following (to update the UI): UpdateSinks UpdateRoutes UpdateCastModes AddRoute UpdateIssue - skeleton impl Some Issues related APIs are left unimplemented until more resources have been upstreamed. BUG=464216, 464208 Committed: https://crrev.com/bcb07449ce226e9263cf4f2637a1656377782e17 Cr-Commit-Position: refs/heads/master@{#331905}

Patch Set 1 #

Patch Set 2 : Fix naming #

Patch Set 3 : fix compile #

Patch Set 4 : Rebase #

Total comments: 118

Patch Set 5 : Addressed wez's comments + git cl format #

Patch Set 6 : fix compile' #

Total comments: 8

Patch Set 7 : Addressed wez's 2nd set of comments #

Patch Set 8 : Rebase #

Patch Set 9 : add back use of MediaRouterMojoImpl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -14 lines) Patch
M chrome/browser/ui/webui/media_router/media_router_ui.h View 1 2 3 4 5 6 2 chunks +89 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 4 5 6 7 8 2 chunks +147 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h View 1 2 3 4 5 6 3 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 1 2 3 4 5 6 4 chunks +177 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
imcheng (use chromium acct)
5 years, 7 months ago (2015-05-18 22:25:18 UTC) #2
Wez
https://codereview.chromium.org/1139203003/diff/60001/chrome/browser/media/router/media_router.h File chrome/browser/media/router/media_router.h (right): https://codereview.chromium.org/1139203003/diff/60001/chrome/browser/media/router/media_router.h#newcode39 chrome/browser/media/router/media_router.h:39: // Requests a media route from |source| to |sink_id|. ...
5 years, 7 months ago (2015-05-20 17:51:47 UTC) #3
imcheng (use chromium acct)
PTAL https://codereview.chromium.org/1139203003/diff/60001/chrome/browser/media/router/media_router.h File chrome/browser/media/router/media_router.h (right): https://codereview.chromium.org/1139203003/diff/60001/chrome/browser/media/router/media_router.h#newcode39 chrome/browser/media/router/media_router.h:39: // Requests a media route from |source| to ...
5 years, 7 months ago (2015-05-20 22:01:14 UTC) #4
Wez
LGTM w/ nits. https://codereview.chromium.org/1139203003/diff/60001/chrome/browser/ui/webui/media_router/media_router_ui.cc File chrome/browser/ui/webui/media_router/media_router_ui.cc (right): https://codereview.chromium.org/1139203003/diff/60001/chrome/browser/ui/webui/media_router/media_router_ui.cc#newcode88 chrome/browser/ui/webui/media_router/media_router_ui.cc:88: /* TODO(imcheng): Uncomment once Kevin's MediaRouterMojoImpl ...
5 years, 7 months ago (2015-05-21 22:58:37 UTC) #5
imcheng (use chromium acct)
https://codereview.chromium.org/1139203003/diff/60001/chrome/browser/ui/webui/media_router/media_router_ui.cc File chrome/browser/ui/webui/media_router/media_router_ui.cc (right): https://codereview.chromium.org/1139203003/diff/60001/chrome/browser/ui/webui/media_router/media_router_ui.cc#newcode135 chrome/browser/ui/webui/media_router/media_router_ui.cc:135: // |cast_mode_override| == |GetPreferredCastMode(cast_modes_)|. On 2015/05/21 22:58:36, Wez wrote: ...
5 years, 7 months ago (2015-05-22 00:02:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139203003/160001
5 years, 6 months ago (2015-05-29 00:39:30 UTC) #9
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 6 months ago (2015-05-29 01:34:18 UTC) #10
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/bcb07449ce226e9263cf4f2637a1656377782e17 Cr-Commit-Position: refs/heads/master@{#331905}
5 years, 6 months ago (2015-05-29 01:35:00 UTC) #11
dmurph
5 years, 6 months ago (2015-05-29 03:13:00 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:160001) has been created in
https://codereview.chromium.org/1162693002/ by dmurph@chromium.org.

The reason for reverting is: Causing failures:
https://code.google.com/p/chromium/issues/detail?id=493525.

Powered by Google App Engine
This is Rietveld 408576698