| 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"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-slider/paper-slid
er.html"> |
| 10 <link rel="import" href="chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/for
eground/elements/files_icon_button.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_toggle_ripple.html"> |
| 11 | 12 |
| 12 <dom-module id="control-panel"> | 13 <dom-module id="control-panel"> |
| 13 <link rel="import" type="css" href="control_panel.css"> | 14 <link rel="import" type="css" href="control_panel.css"> |
| 14 <template> | 15 <template> |
| 15 <div class="controls"> | 16 <div class="controls"> |
| 16 <div class="control-row volume-controls" hidden="[[!volumeSliderShown]]"> | 17 <div class="control-row volume-controls" hidden="[[!volumeSliderShown]]"> |
| 17 <paper-slider id="volumeSlider" value="{{volume::change}}"></paper-slide
r> | 18 <paper-slider id="volumeSlider" value="{{volume::change}}"></paper-slide
r> |
| 18 </div> | 19 </div> |
| 19 <div class="control-row audio-controls"> | 20 <div class="control-row audio-controls"> |
| 20 <!-- Shuffle toggle button in the bottom line. --> | 21 <!-- Shuffle toggle button in the bottom line. --> |
| 21 <files-icon-button toggles | 22 <button class="shuffle-mode media-button toggle" state="default"> |
| 22 id="shuffle" | 23 <label> |
| 23 class="shuffle-mode media-button toggle" | 24 <input id="shuffleCheckbox" |
| 24 active="{{shuffle}}"> | 25 type="checkbox" |
| 25 </files-icon-button> | 26 checked="{{shuffle::change}}"> |
| 27 <span class="icon"></span> |
| 28 </label> |
| 29 <files-toggle-ripple activated="[[shuffle]]"></files-toggle-ripple> |
| 30 </button> |
| 26 | 31 |
| 27 <!-- Repeat toggle button in the bottom line. --> | 32 <!-- Repeat toggle button in the bottom line. --> |
| 28 <files-icon-button toggles | 33 <button class="repeat media-button toggle" state="default"> |
| 29 id="repeat" | 34 <label> |
| 30 class="repeat media-button toggle" | 35 <input id="repeatCheckbox" |
| 31 active="{{repeat}}"> | 36 type="checkbox" |
| 32 </files-icon-button> | 37 checked="{{repeat::change}}"> |
| 38 <span class="icon"></span> |
| 39 </label> |
| 40 <files-toggle-ripple activated="[[repeat]]"></files-toggle-ripple> |
| 41 </button> |
| 33 | 42 |
| 34 <!-- Prev button in the bottom line. --> | 43 <!-- Prev button in the bottom line. --> |
| 35 <files-icon-button | 44 <button class="previous media-button" |
| 36 id="previous" | 45 state="default" |
| 37 class="previous media-button" | 46 on-click="previousClick"> |
| 38 on-click="previousClick"> | 47 <div class="normal default"></div> |
| 39 </files-icon-button> | 48 <div class="disabled"></div> |
| 49 <files-ripple></files-ripple> |
| 50 </button> |
| 40 | 51 |
| 41 <!-- Play button in the bottom line. --> | 52 <!-- Play button in the bottom line. --> |
| 42 <files-icon-button | 53 <button class="play media-button" |
| 43 id="play" | 54 state$="[[computePlayState_(playing)]]" |
| 44 class="play media-button" | 55 on-click="playClick"> |
| 45 on-click="playClick"> | 56 <div class="normal playing"></div> |
| 46 </files-icon-button> | 57 <div class="normal ended"></div> |
| 58 <div class="disabled"></div> |
| 59 <files-ripple></files-ripple> |
| 60 </button> |
| 47 | 61 |
| 48 <!-- Next button in the bottom line. --> | 62 <!-- Next button in the bottom line. --> |
| 49 <files-icon-button | 63 <button class="next media-button" |
| 50 id="next" | 64 state="default" |
| 51 class="next media-button" | 65 on-click="nextClick"> |
| 52 on-click="nextClick"> | 66 <div class="normal default"></div> |
| 53 </files-icon-button> | 67 <div class="disabled"></div> |
| 68 <files-ripple></files-ripple> |
| 69 </button> |
| 54 | 70 |
| 55 <!-- Volume button in the bottom line. --> | 71 <!-- Volume button in the bottom line. --> |
| 56 <files-icon-button toggles | 72 <button id="volumeButton" |
| 57 id="volume" | 73 class="volume media-button toggle" |
| 58 class="volume media-button toggle" | 74 state="default" |
| 59 anchor-point="bottom center" | 75 anchor-point="bottom center"> |
| 60 active="{{volumeSliderShown}}"> | 76 <label> |
| 61 </files-icon-button> | 77 <input type="checkbox" checked="{{volumeSliderShown::change}}"> |
| 78 <span class="icon"></span> |
| 79 </label> |
| 80 <files-toggle-ripple activated="[[volumeSliderShown]]"></files-toggle-
ripple> |
| 81 </button> |
| 62 | 82 |
| 63 <!-- Playlist button in the bottom line. --> | 83 <!-- Playlist button in the bottom line. --> |
| 64 <files-icon-button toggles | 84 <button id="playlistButton" |
| 65 id="playList" | 85 class="playlist media-button toggle" |
| 66 class="playlist media-button toggle" | 86 state="default"> |
| 67 active="{{expanded}}"> | 87 <label> |
| 68 </files-toggle-ripple> | 88 <input type="checkbox" checked="{{expanded::change}}"> |
| 89 <span class="icon"></span> |
| 90 </label> |
| 91 <files-toggle-ripple activated="[[expanded]]"></files-toggle-ripple> |
| 92 </button> |
| 69 </div> | 93 </div> |
| 70 <div class="control-row time-controls"> | 94 <div class="control-row time-controls"> |
| 71 <div class="time-container"> | 95 <div class="time-container"> |
| 72 <div class="time-spacer">[[computeTimeString_(duration, duration)]]</d
iv> | 96 <div class="time-spacer">[[computeTimeString_(duration, duration)]]</d
iv> |
| 73 <div class="time">[[computeTimeString_(time, duration)]]</div> | 97 <div class="time">[[computeTimeString_(time, duration)]]</div> |
| 74 </div> | 98 </div> |
| 75 <paper-slider id="timeSlider" max="[[duration]]" value="{{time::change}}
"></paper-slider> | 99 <paper-slider id="timeSlider" max="[[duration]]" value="{{time::change}}
"></paper-slider> |
| 76 </div> | 100 </div> |
| 77 </div> | 101 </div> |
| 78 </template> | 102 </template> |
| 79 </dom-module> | 103 </dom-module> |
| 80 | 104 |
| 81 <script src="control_panel.js"></script> | 105 <script src="control_panel.js"></script> |
| OLD | NEW |