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

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

Issue 1415953006: Fix accessibility issues in AudioPlayer and VideoPlayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix query for repeat button. Created 5 years, 1 month 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 Polymer({ 5 Polymer({
6 is: 'audio-player', 6 is: 'audio-player',
7 7
8 properties: { 8 properties: {
9 /** 9 /**
10 * Flag whether the audio is playing or paused. True if playing, or false 10 * Flag whether the audio is playing or paused. True if playing, or false
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 reflectToAttribute: true 91 reflectToAttribute: true
92 }, 92 },
93 93
94 /** 94 /**
95 * The number of played tracks. (exposed publicly for tests) 95 * The number of played tracks. (exposed publicly for tests)
96 */ 96 */
97 playcount: { 97 playcount: {
98 type: Number, 98 type: Number,
99 value: 0, 99 value: 0,
100 reflectToAttribute: true 100 reflectToAttribute: true
101 },
102
103 ariaLabels: {
104 type: Object
101 } 105 }
102 }, 106 },
103 107
104 /** 108 /**
105 * The last playing state when user starts dragging the seek bar. 109 * The last playing state when user starts dragging the seek bar.
106 * @private {boolean} 110 * @private {boolean}
107 */ 111 */
108 wasPlayingOnDragStart_: false, 112 wasPlayingOnDragStart_: false,
109 113
110 /** 114 /**
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 489
486 /** 490 /**
487 * Computes volume value for audio element. (should be in [0.0, 1.0]) 491 * Computes volume value for audio element. (should be in [0.0, 1.0])
488 * @param {number} volume Volume which is set in the UI. ([0, 100]) 492 * @param {number} volume Volume which is set in the UI. ([0, 100])
489 * @return {number} 493 * @return {number}
490 */ 494 */
491 computeAudioVolume_: function(volume) { 495 computeAudioVolume_: function(volume) {
492 return volume / 100; 496 return volume / 100;
493 } 497 }
494 }); 498 });
OLDNEW
« no previous file with comments | « ui/file_manager/audio_player/elements/audio_player.html ('k') | ui/file_manager/audio_player/elements/control_panel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698