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

Side by Side Diff: ui/file_manager/audio_player/js/background.js

Issue 1458733003: Reland MD Audio Player. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forcePlay -> forceToPlay Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * Icon of the audio player. 6 * Icon of the audio player.
7 * TODO(yoshiki): Consider providing an exact size icon, instead of relying 7 * TODO(yoshiki): Consider providing an exact size icon, instead of relying
8 * on downsampling by ash. 8 * on downsampling by ash.
9 * 9 *
10 * @type {string} 10 * @type {string}
11 * @const 11 * @const
12 */ 12 */
13 var AUDIO_PLAYER_ICON = 'icons/audio-player-64.png'; 13 var AUDIO_PLAYER_ICON = 'icons/audio-player-64.png';
14 14
15 var AUDIO_PLAYER_APP_URL = 'audio_player.html'; 15 var AUDIO_PLAYER_APP_URL = 'audio_player.html';
16 16
17 /** 17 /**
18 * Configuration of the audio player panel. 18 * Configuration of the audio player panel.
19 * @type {Object} 19 * @type {Object}
20 */ 20 */
21 var audioPlayerCreateOptions = { 21 var audioPlayerCreateOptions = {
22 id: 'audio-player', 22 id: 'audio-player',
23 type: 'panel', 23 type: 'panel',
24 minHeight: 44 + 73, // 44px: track, 73px: controller 24 minHeight: 4 + 48 + 96, // 4px: border-top, 48px: track, 96px: controller
25 minWidth: 292, 25 minWidth: 280,
26 height: 44 + 73, // collapsed 26 height: 4 + 48 + 96, // collapsed
27 width: 292 27 width: 280,
28 frame: {
29 color: '#fafafa'
30 }
28 }; 31 };
29 32
30 /** 33 /**
31 * @constructor 34 * @constructor
32 * @extends {BackgroundBase} 35 * @extends {BackgroundBase}
33 */ 36 */
34 function AudioPlayerBackground() { 37 function AudioPlayerBackground() {
35 BackgroundBase.call(this); 38 BackgroundBase.call(this);
36 } 39 }
37 40
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 audioPlayer.setIcon(AUDIO_PLAYER_ICON); 124 audioPlayer.setIcon(AUDIO_PLAYER_ICON);
122 audioPlayer.rawAppWindow.focus(); 125 audioPlayer.rawAppWindow.focus();
123 return AUDIO_PLAYER_APP_URL; 126 return AUDIO_PLAYER_APP_URL;
124 }).catch(function(error) { 127 }).catch(function(error) {
125 console.error('Launch failed' + error.stack || error); 128 console.error('Launch failed' + error.stack || error);
126 return Promise.reject(error); 129 return Promise.reject(error);
127 }); 130 });
128 } 131 }
129 132
130 background.setLaunchHandler(open); 133 background.setLaunchHandler(open);
OLDNEW
« no previous file with comments | « ui/file_manager/audio_player/js/audio_player.js ('k') | ui/file_manager/audio_player/js/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698