| Index: ui/file_manager/audio_player/elements/control_panel.js
|
| diff --git a/ui/file_manager/audio_player/elements/control_panel.js b/ui/file_manager/audio_player/elements/control_panel.js
|
| index ad142fd1736e95a245a778fb29f11f2612f577ce..8e6668bb6a689110f62555eaf13070b7d9743ea5 100644
|
| --- a/ui/file_manager/audio_player/elements/control_panel.js
|
| +++ b/ui/file_manager/audio_player/elements/control_panel.js
|
| @@ -2,6 +2,24 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +/**
|
| + * @typedef {?{
|
| + * mute: string,
|
| + * next: string,
|
| + * pause: string,
|
| + * play: string,
|
| + * playList: string,
|
| + * previous: string,
|
| + * repeat: string,
|
| + * seekSlider: string,
|
| + * shuffle: string,
|
| + * unmute: string,
|
| + * volume: string,
|
| + * volumeSlider: string,
|
| + * }}
|
| + */
|
| +var AriaLabels;
|
| +
|
| (function() {
|
| 'use strict';
|
|
|
| @@ -279,6 +297,7 @@
|
| this.$.volumeSlider.value = volume;
|
|
|
| if (this.ariaLabels) {
|
| + this.ariaLabels = /** @type {!AriaLabels} */ (this.ariaLabels);
|
| this.$.volumeButton.setAttribute('aria-label',
|
| volume !== 0 ? this.ariaLabels.mute : this.ariaLabels.unmute);
|
| }
|
| @@ -291,6 +310,7 @@
|
| */
|
| ariaLabelsChanged_: function(ariaLabels) {
|
| assert(ariaLabels);
|
| + ariaLabels = /** @type {!AriaLabels} */ (ariaLabels);
|
| // TODO(fukino): Use data bindings.
|
| this.$.volumeSlider.setAttribute('aria-label', ariaLabels.volumeSlider);
|
| this.$.shuffle.setAttribute('aria-label', ariaLabels.shuffle);
|
|
|