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

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

Issue 1403303011: AudioPlayer: Update control panel with playback progress bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments 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 "> 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">
9 <link rel="import" href="volume_controller.html"> 10 <link rel="import" href="volume_controller.html">
10 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for eground/elements/files_ripple.html"> 11 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for eground/elements/files_ripple.html">
11 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for eground/elements/files_toggle_ripple.html"> 12 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for eground/elements/files_toggle_ripple.html">
12 13
13 <dom-module id="control-panel"> 14 <dom-module id="control-panel">
14 <link rel="import" type="css" href="control_panel.css"> 15 <link rel="import" type="css" href="control_panel.css">
15 <template> 16 <template>
16 <div class="controls"> 17 <div class="controls">
17 <div class="upper-controls time-controls"> 18 <div class="upper-controls audio-controls">
18 <div class="time media-control">
19 <div class="current">[[time2string_(time)]]</div>
20 </div>
21 <div class="progress media-control custom-slider">
22 <input id="timeInput" name="timeInput" type="range" touch-action="mani pulation"
23 min="0" max="[[duration]]" value="{{time::input}}">
24 <div class="bar">
25 <div class="filled" style$="[[computeProgressBarStyle_(time, duratio n)]]"></div>
26 <div class="cap left"></div>
27 <div class="cap right"></div>
28 </div>
29 </div>
30 <div class="time media-control">
31 <div class="duration">[[time2string_(duration)]]</div>
32 </div>
33 </div>
34 <div class="lower-controls audio-controls">
35 <!-- Shuffle toggle button in the bottom line. --> 19 <!-- Shuffle toggle button in the bottom line. -->
36 <button class="shuffle-mode media-button toggle" state="default"> 20 <button class="shuffle-mode media-button toggle" state="default">
37 <label> 21 <label>
38 <input id="shuffleCheckbox" 22 <input id="shuffleCheckbox"
39 type="checkbox" 23 type="checkbox"
40 checked="{{shuffle::change}}"> 24 checked="{{shuffle::change}}">
41 <span class="icon"></span> 25 <span class="icon"></span>
42 </label> 26 </label>
43 <files-toggle-ripple activated="[[shuffle]]"></files-toggle-ripple> 27 <files-toggle-ripple activated="[[shuffle]]"></files-toggle-ripple>
44 </button> 28 </button>
(...skipping 12 matching lines...) Expand all
57 <!-- Prev button in the bottom line. --> 41 <!-- Prev button in the bottom line. -->
58 <button class="previous media-button" 42 <button class="previous media-button"
59 state="default" 43 state="default"
60 on-click="previousClick"> 44 on-click="previousClick">
61 <div class="normal default"></div> 45 <div class="normal default"></div>
62 <div class="disabled"></div> 46 <div class="disabled"></div>
63 <files-ripple></files-ripple> 47 <files-ripple></files-ripple>
64 </button> 48 </button>
65 49
66 <!-- Play button in the bottom line. --> 50 <!-- Play button in the bottom line. -->
67 <button class="play media-control media-button" 51 <button class="play media-button"
68 state$="[[computePlayState_(playing)]]" 52 state$="[[computePlayState_(playing)]]"
69 on-click="playClick"> 53 on-click="playClick">
70 <div class="normal playing"></div> 54 <div class="normal playing"></div>
71 <div class="normal ended"></div> 55 <div class="normal ended"></div>
72 <div class="disabled"></div> 56 <div class="disabled"></div>
73 <files-ripple></files-ripple> 57 <files-ripple></files-ripple>
74 </button> 58 </button>
75 59
76 <!-- Next button in the bottom line. --> 60 <!-- Next button in the bottom line. -->
77 <button class="next media-button" 61 <button class="next media-button"
(...skipping 30 matching lines...) Expand all
108 <button id="playlistButton" 92 <button id="playlistButton"
109 class="playlist media-button toggle" 93 class="playlist media-button toggle"
110 state="default"> 94 state="default">
111 <label> 95 <label>
112 <input type="checkbox" checked="{{expanded::change}}"> 96 <input type="checkbox" checked="{{expanded::change}}">
113 <span class="icon"></span> 97 <span class="icon"></span>
114 </label> 98 </label>
115 <files-toggle-ripple activated="[[expanded]]"></files-toggle-ripple> 99 <files-toggle-ripple activated="[[expanded]]"></files-toggle-ripple>
116 </button> 100 </button>
117 </div> 101 </div>
102 <div class="lower-controls time-controls">
103 <div class="time-container">
104 <div class="time-spacer">[[computeTimeString_(duration, duration)]]</d iv>
105 <div class="time">[[computeTimeString_(time, duration)]]</div>
106 </div>
107 <paper-slider id="timeSlider" max="[[duration]]" value="{{time::change}} "></paper-slider>
108 </div>
118 </div> 109 </div>
119 </template> 110 </template>
120 </dom-module> 111 </dom-module>
121 112
122 <script src="control_panel.js"></script> 113 <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