Chromium Code Reviews| 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="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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 media-control">[[computeTimeString_(time, duration)]]</ div> | |
|
yawano
2015/10/30 01:59:53
Don't you need to put an invisible element to prev
fukino
2015/10/30 04:25:53
Thank you for the good catch!
I inserted invisible
| |
| 104 <paper-slider id="timeSlider" max="[[duration]]" value="{{time::change}} "></paper-slider> | |
| 105 </div> | |
| 118 </div> | 106 </div> |
| 119 </template> | 107 </template> |
| 120 </dom-module> | 108 </dom-module> |
| 121 | 109 |
| 122 <script src="control_panel.js"></script> | 110 <script src="control_panel.js"></script> |
| OLD | NEW |