[Media Router UI] Simplify rendering of route descriptions in the MR dialog.
We want to consolidate how route descriptions passed to the UX by using MediaRoute.description instead of MediaStatus.description. This adds comments explaining what the route description should be used for, and notes that MediaStatus.description will be deprecated once MRPs are updated to use MediaRoute.description instead. It also removes the "Casting" prefix which was sometimes inserted before MediaRoute.description, as we want to customize the description to say "Casting," "Remoting," or "Mirroring." The template string remains so we can use it in a future change for proper localization of the description. This change does not make the UX any worse than it is right now (and will be followed soon by an MRP changes to add "Casting" back where it makes sense). The Media Router elements are refactored to use "description" consistently and to better share CSS, which makes rendering more consistent between MediaStatus.description and MediaRoute.description. TBR=estark@chromium.org for comment-only .mojom changes Bug: 786208 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I9356fa917f0d77eeac5b7b32d6175aa03a943e5c Reviewed-on: https://chromium-review.googlesource.com/776130 Commit-Queue: mark a. foltz <mfoltz@chromium.org> Reviewed-by:Derek Cheng <imcheng@chromium.org> Reviewed-by:
Takumi Fujimoto <takumif@chromium.org> Cr-Commit-Position: refs/heads/master@{#517656}
Showing
Please register or sign in to comment