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

Unified Diff: ui/file_manager/audio_player/elements/control_panel.js

Issue 2602693002: Files app: Compile custom elements. (Closed)
Patch Set: Sort dependencies. Created 4 years 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698