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

Side by Side Diff: chrome/browser/resources/media_router/elements/route_details/route_details.html

Issue 2725503002: [Media Router] Custom Controls 4 - Implement details view WebUI (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/av-icons.htm l">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-slider/paper-slid er.html">
4 <dom-module id="route-details"> 7 <dom-module id="route-details">
5 <link rel="import" type="css" href="../../media_router_common.css"> 8 <link rel="import" type="css" href="../../media_router_common.css">
6 <link rel="import" type="css" href="route_details.css"> 9 <link rel="import" type="css" href="route_details.css">
7 <template> 10 <template>
8 <div id="route-information" hidden$="[[!isCustomControllerHidden_]]"> 11 <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
9 <span>[[activityStatus_]]</span> 12 <div class="display-name ellipsis">[[routeStatus.title]]</div>
13 <div class="description ellipsis">[[routeStatus.status]]</div>
14 <div>
15 <div>
16 <div class="time-controls"
17 hidden="[[!routeStatus.canSeek]]">
18 <paper-slider class="time-slider"
19 on-change="onTimeSliderChange_"
20 on-immediate-value-change="onImmediateTimeSliderChange_"
21 min="0" max="100"
22 title="[[i18n('seekTitle')]]"
23 value="[[timeSliderValue_]]"></paper-slider>
24 <div class="timeline">
25 <span class="current-time">
26 [[getFormattedTime_(displayedCurrentTime_)]]</span>
27 <span class="duration">[[getDuration_(routeStatus)]]</span>
28 </div>
29 </div>
30 <div class="media-controls">
31 <span class="button-holder">
32 <paper-icon-button
33 hidden="[[!routeStatus.canPlayPause]]"
34 disabled="[[!routeStatus.canPlayPause]]"
35 icon="[[getPlayPauseIcon_(routeStatus)]]"
36 title="[[getPlayPauseTitle_(routeStatus.isPaused)]]"
37 on-click="onPlayPause_"></paper-icon-button>
38 <paper-icon-button class="volume-button"
39 hidden="[[!routeStatus.canMute]]"
40 icon="[[getMuteUnmuteIcon_(routeStatus)]]"
41 title="[[getMuteUnmuteTitle_(routeStatus.isMuted)]]"
42 on-click="onMuteUnmute_"></paper-icon-button>
43 </span>
44 <span class="volume-holder">
45 <paper-slider class="volume-slider"
46 hidden="[[!routeStatus.canSetVolume]]"
47 on-change="onVolumeSliderChange_"
48 on-immediate-value-change="onImmediateVolumeSliderChange_"
49 title="[[i18n('volumeTitle')]]"
50 value="[[volumeSliderValue_]]"
51 min="0" max="1" step="0.01"></paper-slider>
52 </span>
53 </div>
54 </div>
55 </div>
10 </div> 56 </div>
11 <extensionview id="custom-controller"
12 hidden$="[[isCustomControllerHidden_]]">
13 </extensionview>
14 <div id="route-action-buttons" class="layout"> 57 <div id="route-action-buttons" class="layout">
15 <paper-button flat class="route-button button" 58 <paper-button flat class="route-button button"
16 id="start-casting-to-route-button" 59 id="start-casting-to-route-button"
17 hidden$="[[computeCastButtonHidden_(route, changeRouteSourceAvailable_ )]]" 60 hidden$="[[computeCastButtonHidden_(route, changeRouteSourceAvailable_ )]]"
18 on-tap="startCastingToRoute_"> 61 on-tap="startCastingToRoute_">
19 <span>[[i18n('startCastingButtonText')]]</span> 62 <span>[[i18n('startCastingButtonText')]]</span>
20 </paper-button> 63 </paper-button>
21 <paper-button flat class="route-button button" 64 <paper-button flat class="route-button button"
22 id="close-route-button" 65 id="close-route-button"
23 on-tap="closeRoute_"> 66 on-tap="closeRoute_">
24 <span>[[i18n('stopCastingButtonText')]]</span> 67 <span>[[i18n('stopCastingButtonText')]]</span>
25 </paper-button> 68 </paper-button>
26 <div> 69 <div>
27 </template> 70 </template>
28 <script src="route_details.js"></script> 71 <script src="route_details.js"></script>
29 </dom-module> 72 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698