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

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

Issue 1173863003: Revert "Gallery: use native header." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/file_manager/gallery/css/gallery.css ('k') | ui/file_manager/gallery/js/gallery.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * 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
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 }
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/css/gallery.css ('k') | ui/file_manager/gallery/js/gallery.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698