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 * Configuration of the Gallery window. | 6 * Configuration of the Gallery window. |
7 * @const | 7 * @const |
8 * @type {Object} | 8 * @type {Object} |
9 */ | 9 */ |
10 var windowCreateOptions = { | 10 var windowCreateOptions = { |
11 id: 'gallery', | 11 id: 'gallery', |
12 outerBounds: { | 12 innerBounds: { |
13 minWidth: 820, | 13 minWidth: 820, |
14 minHeight: 554 | 14 minHeight: 554 |
15 }, | 15 }, |
16 frame: { | 16 frame: 'none' |
17 color: '#1E2023' | |
18 } | |
19 }; | 17 }; |
20 | 18 |
21 /** | 19 /** |
22 * Backgound object. This is necessary for AppWindowWrapper. | 20 * Backgound object. This is necessary for AppWindowWrapper. |
23 * @type {!BackgroundBase} | 21 * @type {!BackgroundBase} |
24 */ | 22 */ |
25 var background = new BackgroundBase(); | 23 var background = new BackgroundBase(); |
26 | 24 |
27 /** | 25 /** |
28 * Wrapper of gallery window. | 26 * Wrapper of gallery window. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 }); | 113 }); |
116 }); | 114 }); |
117 }).then(function(gallery) { | 115 }).then(function(gallery) { |
118 gallery.rawAppWindow.focus(); | 116 gallery.rawAppWindow.focus(); |
119 return gallery.rawAppWindow.contentWindow.appID; | 117 return gallery.rawAppWindow.contentWindow.appID; |
120 }).catch(function(error) { | 118 }).catch(function(error) { |
121 console.error('Launch failed' + error.stack || error); | 119 console.error('Launch failed' + error.stack || error); |
122 return Promise.reject(error); | 120 return Promise.reject(error); |
123 }); | 121 }); |
124 } | 122 } |
OLD | NEW |