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

Unified Diff: chrome/browser/resources/file_manager/js/media/audio_player.js

Issue 11269043: Make the title of Chrome OS Audio Player empty (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a test Created 8 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
« no previous file with comments | « chrome/browser/chromeos/media/media_player_extension_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/media/audio_player.js
diff --git a/chrome/browser/resources/file_manager/js/media/audio_player.js b/chrome/browser/resources/file_manager/js/media/audio_player.js
index eb979bcbbf02247e9355eadd5f4a59535ddd9d29..8d047bdaf55913959ed7cfedeb10de6c1e67d993 100644
--- a/chrome/browser/resources/file_manager/js/media/audio_player.js
+++ b/chrome/browser/resources/file_manager/js/media/audio_player.js
@@ -387,11 +387,13 @@ AudioPlayer.prototype.syncHeight_ = function() {
Math.min(this.urls_.length, 3) * AudioPlayer.TRACK_HEIGHT;
this.trackList_.style.height = expandedListHeight + 'px';
+ var targetClientHeight = AudioPlayer.CONTROLS_HEIGHT +
+ (this.isCompact_() ?
+ AudioPlayer.TRACK_HEIGHT :
+ AudioPlayer.HEADER_HEIGHT + expandedListHeight);
+
chrome.mediaPlayerPrivate.setWindowHeight(
- (this.isCompact_() ?
- AudioPlayer.TRACK_HEIGHT :
- AudioPlayer.HEADER_HEIGHT + expandedListHeight) +
- AudioPlayer.CONTROLS_HEIGHT);
+ targetClientHeight - this.container_.clientHeight);
};
« no previous file with comments | « chrome/browser/chromeos/media/media_player_extension_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698