Index: chrome/browser/resources/media_router/elements/route_details/route_details.html |
diff --git a/chrome/browser/resources/media_router/elements/route_details/route_details.html b/chrome/browser/resources/media_router/elements/route_details/route_details.html |
index 61043b440754fe8722df8a78cdedfe05eae796e2..7795960ef89a586f357ca20ea593ea5d9ecd84fb 100644 |
--- a/chrome/browser/resources/media_router/elements/route_details/route_details.html |
+++ b/chrome/browser/resources/media_router/elements/route_details/route_details.html |
@@ -1,16 +1,59 @@ |
<link rel="import" href="chrome://resources/html/polymer.html"> |
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/av-icons.html"> |
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> |
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html"> |
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-slider/paper-slider.html"> |
<dom-module id="route-details"> |
<link rel="import" type="css" href="../../media_router_common.css"> |
<link rel="import" type="css" href="route_details.css"> |
<template> |
- <div id="route-information" hidden$="[[!isCustomControllerHidden_]]"> |
- <span>[[activityStatus_]]</span> |
+ <div id="route-controls"> |
imcheng
2017/03/02 02:25:47
- Is this used for both mirroring and Cast routes?
takumif
2017/03/02 19:21:27
Yes, I was thinking of using one template for all
imcheng
2017/03/06 23:36:35
Ok, sounds good. Thanks for figuring this out and
takumif
2017/03/08 23:34:58
I thought about splitting the controller into its
takumif
2017/03/08 23:34:58
DIAL currently just shows just the title that says
imcheng
2017/03/11 21:57:38
If you interact with the controller element then w
imcheng
2017/03/11 21:57:39
Ok. Is the idea that the C++ code will try to crea
takumif
2017/03/16 20:16:02
Factored out the controls into their own Polymer m
takumif
2017/03/16 20:16:02
Yes. The Dial MRP can return false for the CreateM
|
+ <div class="display-name ellipsis">[[routeStatus.title]]</div> |
+ <div class="description ellipsis">[[routeStatus.status]]</div> |
+ <div> |
+ <div> |
+ <div class="time-controls" |
+ hidden="[[!routeStatus.canSeek]]"> |
+ <paper-slider class="time-slider" |
+ on-change="onTimeSliderChange_" |
+ on-immediate-value-change="onImmediateTimeSliderChange_" |
+ min="0" max="100" |
+ title="[[i18n('seekTitle')]]" |
+ value="[[timeSliderValue_]]"></paper-slider> |
+ <div class="timeline"> |
+ <span class="current-time"> |
+ [[getFormattedTime_(displayedCurrentTime_)]]</span> |
+ <span class="duration">[[getDuration_(routeStatus)]]</span> |
+ </div> |
+ </div> |
+ <div class="media-controls"> |
+ <span class="button-holder"> |
+ <paper-icon-button |
+ hidden="[[!routeStatus.canPlayPause]]" |
+ disabled="[[!routeStatus.canPlayPause]]" |
+ icon="[[getPlayPauseIcon_(routeStatus)]]" |
+ title="[[getPlayPauseTitle_(routeStatus.isPaused)]]" |
+ on-click="onPlayPause_"></paper-icon-button> |
+ <paper-icon-button class="volume-button" |
+ hidden="[[!routeStatus.canMute]]" |
+ icon="[[getMuteUnmuteIcon_(routeStatus)]]" |
+ title="[[getMuteUnmuteTitle_(routeStatus.isMuted)]]" |
+ on-click="onMuteUnmute_"></paper-icon-button> |
+ </span> |
+ <span class="volume-holder"> |
+ <paper-slider class="volume-slider" |
+ hidden="[[!routeStatus.canSetVolume]]" |
+ on-change="onVolumeSliderChange_" |
+ on-immediate-value-change="onImmediateVolumeSliderChange_" |
+ title="[[i18n('volumeTitle')]]" |
+ value="[[volumeSliderValue_]]" |
+ min="0" max="1" step="0.01"></paper-slider> |
+ </span> |
+ </div> |
+ </div> |
+ </div> |
</div> |
- <extensionview id="custom-controller" |
- hidden$="[[isCustomControllerHidden_]]"> |
- </extensionview> |
<div id="route-action-buttons" class="layout"> |
<paper-button flat class="route-button button" |
id="start-casting-to-route-button" |