| OLD | NEW |
| 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"> | |
| 10 <link rel="import" href="volume_controller.html"> | 9 <link rel="import" href="volume_controller.html"> |
| 11 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for
eground/elements/files_ripple.html"> | 10 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for
eground/elements/files_ripple.html"> |
| 12 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for
eground/elements/files_toggle_ripple.html"> | 11 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for
eground/elements/files_toggle_ripple.html"> |
| 13 | 12 |
| 14 <dom-module id="control-panel"> | 13 <dom-module id="control-panel"> |
| 15 <link rel="import" type="css" href="control_panel.css"> | 14 <link rel="import" type="css" href="control_panel.css"> |
| 16 <template> | 15 <template> |
| 17 <div class="controls"> | 16 <div class="controls"> |
| 18 <div class="upper-controls audio-controls"> | 17 <div class="upper-controls time-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"> |
| 19 <!-- Shuffle toggle button in the bottom line. --> | 35 <!-- Shuffle toggle button in the bottom line. --> |
| 20 <button class="shuffle-mode media-button toggle" state="default"> | 36 <button class="shuffle-mode media-button toggle" state="default"> |
| 21 <label> | 37 <label> |
| 22 <input id="shuffleCheckbox" | 38 <input id="shuffleCheckbox" |
| 23 type="checkbox" | 39 type="checkbox" |
| 24 checked="{{shuffle::change}}"> | 40 checked="{{shuffle::change}}"> |
| 25 <span class="icon"></span> | 41 <span class="icon"></span> |
| 26 </label> | 42 </label> |
| 27 <files-toggle-ripple activated="[[shuffle]]"></files-toggle-ripple> | 43 <files-toggle-ripple activated="[[shuffle]]"></files-toggle-ripple> |
| 28 </button> | 44 </button> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 41 <!-- Prev button in the bottom line. --> | 57 <!-- Prev button in the bottom line. --> |
| 42 <button class="previous media-button" | 58 <button class="previous media-button" |
| 43 state="default" | 59 state="default" |
| 44 on-click="previousClick"> | 60 on-click="previousClick"> |
| 45 <div class="normal default"></div> | 61 <div class="normal default"></div> |
| 46 <div class="disabled"></div> | 62 <div class="disabled"></div> |
| 47 <files-ripple></files-ripple> | 63 <files-ripple></files-ripple> |
| 48 </button> | 64 </button> |
| 49 | 65 |
| 50 <!-- Play button in the bottom line. --> | 66 <!-- Play button in the bottom line. --> |
| 51 <button class="play media-button" | 67 <button class="play media-control media-button" |
| 52 state$="[[computePlayState_(playing)]]" | 68 state$="[[computePlayState_(playing)]]" |
| 53 on-click="playClick"> | 69 on-click="playClick"> |
| 54 <div class="normal playing"></div> | 70 <div class="normal playing"></div> |
| 55 <div class="normal ended"></div> | 71 <div class="normal ended"></div> |
| 56 <div class="disabled"></div> | 72 <div class="disabled"></div> |
| 57 <files-ripple></files-ripple> | 73 <files-ripple></files-ripple> |
| 58 </button> | 74 </button> |
| 59 | 75 |
| 60 <!-- Next button in the bottom line. --> | 76 <!-- Next button in the bottom line. --> |
| 61 <button class="next media-button" | 77 <button class="next media-button" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 92 <button id="playlistButton" | 108 <button id="playlistButton" |
| 93 class="playlist media-button toggle" | 109 class="playlist media-button toggle" |
| 94 state="default"> | 110 state="default"> |
| 95 <label> | 111 <label> |
| 96 <input type="checkbox" checked="{{expanded::change}}"> | 112 <input type="checkbox" checked="{{expanded::change}}"> |
| 97 <span class="icon"></span> | 113 <span class="icon"></span> |
| 98 </label> | 114 </label> |
| 99 <files-toggle-ripple activated="[[expanded]]"></files-toggle-ripple> | 115 <files-toggle-ripple activated="[[expanded]]"></files-toggle-ripple> |
| 100 </button> | 116 </button> |
| 101 </div> | 117 </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> | |
| 109 </div> | 118 </div> |
| 110 </template> | 119 </template> |
| 111 </dom-module> | 120 </dom-module> |
| 112 | 121 |
| 113 <script src="control_panel.js"></script> | 122 <script src="control_panel.js"></script> |
| OLD | NEW |