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

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

Issue 1425033006: AudioPlayer: Update volume controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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
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 7b6cab4d7cfd521fa08d9c5739709061ef579766..a050d3cbdb5d55e8292a1157066a5176e5fc274a 100644
--- a/ui/file_manager/audio_player/elements/audio_player.js
+++ b/ui/file_manager/audio_player/elements/audio_player.js
@@ -57,6 +57,14 @@ Polymer({
},
/**
+ * Whether the volume slider is shown.
+ */
+ volumeSliderShown: {
+ type: Boolean,
+ observer: 'volumeSliderShownChanged'
+ },
+
+ /**
* Track index of the current track.
*/
currentTrackIndex: {
@@ -135,6 +143,14 @@ Polymer({
},
/**
+ * Handles change event for volumeSliderShown state.
+ */
+ volumeSliderShownChanged: function(volumeSliderShown) {
+ if (this.model)
+ this.model.volumeSliderShown = volumeSliderShown;
+ },
+
+ /**
* Initializes an element. This method is called automatically when the
* element is ready.
*/
@@ -222,6 +238,7 @@ Polymer({
this.repeat = newModel.repeat;
this.volume = newModel.volume;
this.expanded = newModel.expanded;
+ this.volumeSliderShown = newModel.volumeSliderShown;
}
},
« no previous file with comments | « ui/file_manager/audio_player/elements/audio_player.html ('k') | ui/file_manager/audio_player/elements/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698