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

Side by Side Diff: chrome/browser/resources/chromeos/wallpaper_manager/js/event_page.js

Issue 11028121: Convert wallpaper picker to v2 app (Closed) Base URL: http://git.chromium.org/chromium/src.git@AppsV2
Patch Set: Created 8 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var WALLPAPER_PICKER_WIDTH = 550;
6 var WALLPAPER_PICKER_HEIGHT = 420;
7
8 var wallpaperPickerWindow;
9
10 chrome.app.runtime.onLaunched.addListener(function() {
11 if (wallpaperPickerWindow && !wallpaperPickerWindow.contentWindow.closed) {
12 wallpaperPickerWindow.focus();
flackr 2012/11/12 22:00:34 This may be a legitimate case for minimizing the o
bshe 2012/11/12 23:53:38 I remember we had a double minimizing issue when w
flackr 2012/11/13 02:19:07 We may want to change chrome.wallpaperPrivate.mini
bshe 2012/11/13 15:24:46 Done. PTAL at the latest patchset. On 2012/11/13
13 return;
14 }
15
16 chrome.app.window.create('main.html', {
17 frame: 'chrome',
18 width: WALLPAPER_PICKER_WIDTH,
19 height: WALLPAPER_PICKER_HEIGHT
20 }, function(w) {
21 wallpaperPickerWindow = w;
22 chrome.wallpaperPrivate.minimizeInactiveWindows();
23 w.onClosed.addListener(function() {
24 chrome.wallpaperPrivate.restoreMinimizedWindows();
25 });
26 });
27 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698