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

Side by Side Diff: ui/file_manager/audio_player/elements/control_panel.html

Issue 1458733003: Reland MD Audio Player. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forcePlay -> forceToPlay Created 5 years, 1 month 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 <!-- 1 <!--
2 -- Copyright 2015 The Chromium Authors. All rights reserved. 2 -- Copyright 2015 The Chromium Authors. All rights reserved.
3 -- Use of this source code is governed by a BSD-style license that can be 3 -- Use of this source code is governed by a BSD-style license that can be
4 -- found in the LICENSE file. 4 -- found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/font-roboto/roboto.html ">
9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-slider/paper-slid er.html">
8 <link rel="import" href="volume_controller.html"> 10 <link rel="import" href="volume_controller.html">
11 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for eground/elements/files_icon_button.html">
9 12
10 <dom-module id="control-panel"> 13 <dom-module id="control-panel">
11 <link rel="import" type="css" href="control_panel.css"> 14 <link rel="import" type="css" href="control_panel.css">
12 <template> 15 <template>
13 <div class="controls"> 16 <div class="controls">
14 <div class="upper-controls time-controls"> 17 <div class="upper-controls audio-controls">
15 <div class="time media-control">
16 <div class="current">[[time2string_(time)]]</div>
17 </div>
18 <div class="progress media-control custom-slider">
19 <input id="timeInput" name="timeInput" type="range" touch-action="mani pulation"
20 min="0" max="[[duration]]" value="{{time::input}}">
21 <div class="bar">
22 <div class="filled" style$="[[computeProgressBarStyle_(time, duratio n)]]"></div>
23 <div class="cap left"></div>
24 <div class="cap right"></div>
25 </div>
26 </div>
27 <div class="time media-control">
28 <div class="duration">[[time2string_(duration)]]</div>
29 </div>
30 </div>
31 <div class="lower-controls audio-controls">
32 <!-- Shuffle toggle button in the bottom line. --> 18 <!-- Shuffle toggle button in the bottom line. -->
33 <button class="shuffle-mode media-button toggle" state="default"> 19 <files-icon-button toggles
34 <label> 20 id="shuffle"
35 <input id="shuffleCheckbox" 21 class="shuffle-mode media-button toggle"
36 type="checkbox" 22 active="{{shuffle}}">
37 checked="{{shuffle::change}}"> 23 </files-icon-button>
38 <span class="icon"></span>
39 </label>
40 </button>
41 24
42 <!-- Repeat toggle button in the bottom line. --> 25 <!-- Repeat toggle button in the bottom line. -->
43 <button class="repeat media-button toggle" state="default"> 26 <files-icon-button toggles
44 <label> 27 id="repeat"
45 <input id="repeatCheckbox" 28 class="repeat media-button toggle"
46 type="checkbox" 29 active="{{repeat}}">
47 checked="{{repeat::change}}"> 30 </files-icon-button>
48 <span class="icon"></span>
49 </label>
50 </button>
51 31
52 <!-- Prev button in the bottom line. --> 32 <!-- Prev button in the bottom line. -->
53 <button class="previous media-button" 33 <files-icon-button
54 state="default" 34 id="previous"
55 on-click="previousClick"> 35 class="previous media-button"
56 <div class="normal default"></div> 36 on-click="previousClick">
57 <div class="disabled"></div> 37 </files-icon-button>
58 </button>
59 38
60 <!-- Play button in the bottom line. --> 39 <!-- Play button in the bottom line. -->
61 <button class="play media-control media-button" 40 <files-icon-button
62 state$="[[computePlayState_(playing)]]" 41 id="play"
63 on-click="playClick"> 42 class="play media-button"
64 <div class="normal playing"></div> 43 on-click="playClick">
65 <div class="normal ended"></div> 44 </files-icon-button>
66 <div class="disabled"></div>
67 </button>
68 45
69 <!-- Next button in the bottom line. --> 46 <!-- Next button in the bottom line. -->
70 <button class="next media-button" 47 <files-icon-button
71 state="default" 48 id="next"
72 on-click="nextClick"> 49 class="next media-button"
73 <div class="normal default"></div> 50 on-click="nextClick">
74 <div class="disabled"></div> 51 </files-icon-button>
75 </button>
76 52
77 <div id="volumeContainer" 53 <div id="volumeContainer"
78 class="default-hidden" 54 class="default-hidden"
79 anchor-point="bottom center"> 55 anchor-point="bottom center">
80 <volume-controller id="volumeSlider" value="{{volume}}" 56 <volume-controller id="volumeSlider" value="{{volume}}"
81 width="32" height="85" value="50"> 57 width="32" height="85" value="50">
82 </volume-controller> 58 </volume-controller>
83 59
84 <polymer-anchor-point id="anchorHelper"></polymer-anchor-point> 60 <polymer-anchor-point id="anchorHelper"></polymer-anchor-point>
85 </div> 61 </div>
86 62
87 <!-- Volume button in the bottom line. --> 63 <!-- Volume button in the bottom line. -->
88 <button id="volumeButton" 64 <files-icon-button toggles
89 class="volume media-button toggle" 65 id="volumeButton"
90 state="default" 66 class="volume media-button toggle"
91 anchor-point="bottom center"> 67 anchor-point="bottom center"
92 <label> 68 active="{{volumeSliderShown}}">
93 <input type="checkbox" checked="{{volumeSliderShown::change}}"> 69 </files-icon-button>
94 <span class="icon"></span>
95 </label>
96 </button>
97 70
98 <!-- Playlist button in the bottom line. --> 71 <!-- Playlist button in the bottom line. -->
99 <button id="playlistButton" 72 <files-icon-button toggles
100 class="playlist media-button toggle" 73 id="playList"
101 state="default"> 74 class="playlist media-button toggle"
102 <label> 75 active="{{expanded}}">
103 <input type="checkbox" checked="{{expanded::change}}"> 76 </files-icon-button>
104 <span class="icon"></span> 77 </div>
105 </label> 78 <div class="lower-controls time-controls">
106 </button> 79 <div class="time-container">
80 <div class="time-spacer">[[computeTimeString_(duration, duration)]]</d iv>
81 <div class="time">[[computeTimeString_(time, duration)]]</div>
82 </div>
83 <paper-slider id="timeSlider" max="[[duration]]" value="{{time::change}} "></paper-slider>
107 </div> 84 </div>
108 </div> 85 </div>
109 </template> 86 </template>
110 </dom-module> 87 </dom-module>
111 88
112 <script src="control_panel.js"></script> 89 <script src="control_panel.js"></script>
OLDNEW
« no previous file with comments | « ui/file_manager/audio_player/elements/control_panel.css ('k') | ui/file_manager/audio_player/elements/control_panel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698