OLD | NEW |
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 video player. | 6 * Icon of the video 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 ICON_IMAGE = 'images/icon/video-player-64.png'; | 13 var ICON_IMAGE = 'images/icon/video-player-64.png'; |
14 | 14 |
15 /** | 15 /** |
16 * Configuration of the video player panel. | 16 * Configuration of the video player panel. |
17 * @type {Object} | 17 * @type {Object} |
18 */ | 18 */ |
19 var windowCreateOptions = { | 19 var windowCreateOptions = { |
20 frame: 'none', | 20 frame: { |
| 21 color: '#fafafa' |
| 22 }, |
21 minWidth: 480, | 23 minWidth: 480, |
22 minHeight: 270 | 24 minHeight: 270 |
23 }; | 25 }; |
24 | 26 |
25 /** | 27 /** |
26 * Backgound object. This is necessary for AppWindowWrapper. | 28 * Backgound object. This is necessary for AppWindowWrapper. |
27 * @type {BackgroundBase} | 29 * @type {BackgroundBase} |
28 */ | 30 */ |
29 var background = new BackgroundBase(); | 31 var background = new BackgroundBase(); |
30 | 32 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 appWindow.focus(); | 86 appWindow.focus(); |
85 | 87 |
86 return windowId; | 88 return windowId; |
87 }.wrap()).catch(function(error) { | 89 }.wrap()).catch(function(error) { |
88 console.error('Launch failed' + error.stack || error); | 90 console.error('Launch failed' + error.stack || error); |
89 return Promise.reject(error); | 91 return Promise.reject(error); |
90 }.wrap()); | 92 }.wrap()); |
91 } | 93 } |
92 | 94 |
93 background.setLaunchHandler(openVideoPlayerWindow); | 95 background.setLaunchHandler(openVideoPlayerWindow); |
OLD | NEW |