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

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

Issue 2602693002: Files app: Compile custom elements. (Closed)
Patch Set: Address review comments. Created 3 years, 11 months 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /**
6 * @typedef {?{
oka 2016/12/26 11:38:38 nit: Can you remove ? here and add ? to @type {Ari
fukino 2016/12/26 11:44:43 This is a common pattern for typedefs of record ty
7 * mute: string,
8 * next: string,
9 * pause: string,
10 * play: string,
11 * playList: string,
12 * previous: string,
13 * repeat: string,
14 * seekSlider: string,
15 * shuffle: string,
16 * unmute: string,
17 * volume: string,
18 * volumeSlider: string,
19 * }}
20 */
21 var AriaLabels;
22
5 (function() { 23 (function() {
6 'use strict'; 24 'use strict';
7 25
8 /** 26 /**
9 * Moves |target| element above |anchor| element, in order to match the 27 * Moves |target| element above |anchor| element, in order to match the
10 * bottom lines. 28 * bottom lines.
11 * @param {HTMLElement} target Target element. 29 * @param {HTMLElement} target Target element.
12 * @param {HTMLElement} anchor Anchor element. 30 * @param {HTMLElement} anchor Anchor element.
13 */ 31 */
14 function matchBottomLine(target, anchor) { 32 function matchBottomLine(target, anchor) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 * Whether the knob of time slider is being dragged. 128 * Whether the knob of time slider is being dragged.
111 */ 129 */
112 dragging: { 130 dragging: {
113 type: Boolean, 131 type: Boolean,
114 value: false, 132 value: false,
115 notify: true 133 notify: true
116 }, 134 },
117 135
118 /** 136 /**
119 * Dictionary which contains aria-labels for each controls. 137 * Dictionary which contains aria-labels for each controls.
138 * @type {AriaLabels}
120 */ 139 */
121 ariaLabels: { 140 ariaLabels: {
122 type: Object, 141 type: Object,
123 observer: 'ariaLabelsChanged_' 142 observer: 'ariaLabelsChanged_'
124 } 143 }
125 }, 144 },
126 145
127 /** 146 /**
128 * Initializes an element. This method is called automatically when the 147 * Initializes an element. This method is called automatically when the
129 * element is ready. 148 * element is ready.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 this.$.next.setAttribute('aria-label', ariaLabels.next); 320 this.$.next.setAttribute('aria-label', ariaLabels.next);
302 this.$.volumeButton.setAttribute('aria-label', ariaLabels.volume); 321 this.$.volumeButton.setAttribute('aria-label', ariaLabels.volume);
303 this.$.playList.setAttribute('aria-label', ariaLabels.playList); 322 this.$.playList.setAttribute('aria-label', ariaLabels.playList);
304 this.$.timeSlider.setAttribute('aria-label', ariaLabels.seekSlider); 323 this.$.timeSlider.setAttribute('aria-label', ariaLabels.seekSlider);
305 this.$.volumeButton.setAttribute('aria-label', 324 this.$.volumeButton.setAttribute('aria-label',
306 this.volume !== 0 ? ariaLabels.mute : ariaLabels.unmute); 325 this.volume !== 0 ? ariaLabels.mute : ariaLabels.unmute);
307 this.$.volumeSlider.setAttribute('aria-label', ariaLabels.volumeSlider); 326 this.$.volumeSlider.setAttribute('aria-label', ariaLabels.volumeSlider);
308 }, 327 },
309 }); 328 });
310 })(); // Anonymous closure 329 })(); // Anonymous closure
OLDNEW
« no previous file with comments | « ui/file_manager/audio_player/elements/compiled_resources2.gyp ('k') | ui/file_manager/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698