| 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="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="control-row volume-controls" hidden="[[!volumeSliderShown]]"> |
| 18 <paper-slider id="volumeSlider" value="{{volume::change}}"></paper-slide
r> |
| 19 </div> |
| 20 <div class="control-row audio-controls"> |
| 19 <!-- Shuffle toggle button in the bottom line. --> | 21 <!-- Shuffle toggle button in the bottom line. --> |
| 20 <button class="shuffle-mode media-button toggle" state="default"> | 22 <button class="shuffle-mode media-button toggle" state="default"> |
| 21 <label> | 23 <label> |
| 22 <input id="shuffleCheckbox" | 24 <input id="shuffleCheckbox" |
| 23 type="checkbox" | 25 type="checkbox" |
| 24 checked="{{shuffle::change}}"> | 26 checked="{{shuffle::change}}"> |
| 25 <span class="icon"></span> | 27 <span class="icon"></span> |
| 26 </label> | 28 </label> |
| 27 <files-toggle-ripple activated="[[shuffle]]"></files-toggle-ripple> | 29 <files-toggle-ripple activated="[[shuffle]]"></files-toggle-ripple> |
| 28 </button> | 30 </button> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 59 | 61 |
| 60 <!-- Next button in the bottom line. --> | 62 <!-- Next button in the bottom line. --> |
| 61 <button class="next media-button" | 63 <button class="next media-button" |
| 62 state="default" | 64 state="default" |
| 63 on-click="nextClick"> | 65 on-click="nextClick"> |
| 64 <div class="normal default"></div> | 66 <div class="normal default"></div> |
| 65 <div class="disabled"></div> | 67 <div class="disabled"></div> |
| 66 <files-ripple></files-ripple> | 68 <files-ripple></files-ripple> |
| 67 </button> | 69 </button> |
| 68 | 70 |
| 69 <div id="volumeContainer" | |
| 70 class="default-hidden" | |
| 71 anchor-point="bottom center"> | |
| 72 <volume-controller id="volumeSlider" value="{{volume}}" | |
| 73 width="32" height="85" value="50"> | |
| 74 </volume-controller> | |
| 75 | |
| 76 <polymer-anchor-point id="anchorHelper"></polymer-anchor-point> | |
| 77 </div> | |
| 78 | |
| 79 <!-- Volume button in the bottom line. --> | 71 <!-- Volume button in the bottom line. --> |
| 80 <button id="volumeButton" | 72 <button id="volumeButton" |
| 81 class="volume media-button toggle" | 73 class="volume media-button toggle" |
| 82 state="default" | 74 state="default" |
| 83 anchor-point="bottom center"> | 75 anchor-point="bottom center"> |
| 84 <label> | 76 <label> |
| 85 <input type="checkbox" checked="{{volumeSliderShown::change}}"> | 77 <input type="checkbox" checked="{{volumeSliderShown::change}}"> |
| 86 <span class="icon"></span> | 78 <span class="icon"></span> |
| 87 </label> | 79 </label> |
| 88 <files-toggle-ripple activated="[[volumeSliderShown]]"></files-toggle-
ripple> | 80 <files-toggle-ripple activated="[[volumeSliderShown]]"></files-toggle-
ripple> |
| 89 </button> | 81 </button> |
| 90 | 82 |
| 91 <!-- Playlist button in the bottom line. --> | 83 <!-- Playlist button in the bottom line. --> |
| 92 <button id="playlistButton" | 84 <button id="playlistButton" |
| 93 class="playlist media-button toggle" | 85 class="playlist media-button toggle" |
| 94 state="default"> | 86 state="default"> |
| 95 <label> | 87 <label> |
| 96 <input type="checkbox" checked="{{expanded::change}}"> | 88 <input type="checkbox" checked="{{expanded::change}}"> |
| 97 <span class="icon"></span> | 89 <span class="icon"></span> |
| 98 </label> | 90 </label> |
| 99 <files-toggle-ripple activated="[[expanded]]"></files-toggle-ripple> | 91 <files-toggle-ripple activated="[[expanded]]"></files-toggle-ripple> |
| 100 </button> | 92 </button> |
| 101 </div> | 93 </div> |
| 102 <div class="lower-controls time-controls"> | 94 <div class="control-row time-controls"> |
| 103 <div class="time-container"> | 95 <div class="time-container"> |
| 104 <div class="time-spacer">[[computeTimeString_(duration, duration)]]</d
iv> | 96 <div class="time-spacer">[[computeTimeString_(duration, duration)]]</d
iv> |
| 105 <div class="time">[[computeTimeString_(time, duration)]]</div> | 97 <div class="time">[[computeTimeString_(time, duration)]]</div> |
| 106 </div> | 98 </div> |
| 107 <paper-slider id="timeSlider" max="[[duration]]" value="{{time::change}}
"></paper-slider> | 99 <paper-slider id="timeSlider" max="[[duration]]" value="{{time::change}}
"></paper-slider> |
| 108 </div> | 100 </div> |
| 109 </div> | 101 </div> |
| 110 </template> | 102 </template> |
| 111 </dom-module> | 103 </dom-module> |
| 112 | 104 |
| 113 <script src="control_panel.js"></script> | 105 <script src="control_panel.js"></script> |
| OLD | NEW |