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

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

Issue 1015463006: [Audio Player] Cleanup the code along with closure compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/file_manager/audio_player/elements/control_panel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/audio_player/elements/audio_player.js
diff --git a/ui/file_manager/audio_player/elements/audio_player.js b/ui/file_manager/audio_player/elements/audio_player.js
index c01104ad1e9b561ded8c2465353c375eff91fc46..990513f2f2c04c422e111bca8a68983a5ab106e0 100644
--- a/ui/file_manager/audio_player/elements/audio_player.js
+++ b/ui/file_manager/audio_player/elements/audio_player.js
@@ -2,14 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-Polymer('audio-player', {
- /**
- * Child Elements
- */
+/**
+ * @constructor
+ * @extends {PolymerElement}
+ */
+var AudioPlayerElement = function() {};
+
+AudioPlayerElement.prototype = {
+ // Child Elements
audioController: null,
audioElement: null,
trackList: null,
+ // Published values
+ playing: true,
+ currenttrackurl: '',
+ playcount: 0,
+
// Attributes of the element (lower characters only).
// These values must be used only to data binding and shouldn't be assigned
// any value nowhere except in the handler.
@@ -244,7 +253,7 @@ Polymer('audio-player', {
/**
* Timeout ID of auto advance. Used internally in scheduleAutoAdvance_() and
* cancelAutoAdvance_().
- * @type {number}
+ * @type {number?}
* @private
*/
autoAdvanceTimer_: null,
@@ -375,4 +384,6 @@ Polymer('audio-player', {
break;
}
},
-});
+};
+
+Polymer('audio-player', AudioPlayerElement.prototype);
« no previous file with comments | « no previous file | ui/file_manager/audio_player/elements/control_panel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698