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

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

Issue 11411244: Disable resize of wallpaper picker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 var WALLPAPER_PICKER_WIDTH = 550; 5 var WALLPAPER_PICKER_WIDTH = 550;
6 var WALLPAPER_PICKER_HEIGHT = 420; 6 var WALLPAPER_PICKER_HEIGHT = 420;
7 7
8 var wallpaperPickerWindow; 8 var wallpaperPickerWindow;
9 9
10 chrome.app.runtime.onLaunched.addListener(function() { 10 chrome.app.runtime.onLaunched.addListener(function() {
11 if (wallpaperPickerWindow && !wallpaperPickerWindow.contentWindow.closed) { 11 if (wallpaperPickerWindow && !wallpaperPickerWindow.contentWindow.closed) {
12 wallpaperPickerWindow.focus(); 12 wallpaperPickerWindow.focus();
13 chrome.wallpaperPrivate.minimizeInactiveWindows(); 13 chrome.wallpaperPrivate.minimizeInactiveWindows();
14 return; 14 return;
15 } 15 }
16 16
17 chrome.app.window.create('main.html', { 17 chrome.app.window.create('main.html', {
18 frame: 'chrome', 18 frame: 'chrome',
19 width: WALLPAPER_PICKER_WIDTH, 19 width: WALLPAPER_PICKER_WIDTH,
20 height: WALLPAPER_PICKER_HEIGHT 20 height: WALLPAPER_PICKER_HEIGHT,
21 minWidth: WALLPAPER_PICKER_WIDTH,
22 maxWidth: WALLPAPER_PICKER_WIDTH,
23 minHeight: WALLPAPER_PICKER_HEIGHT,
24 maxHeight: WALLPAPER_PICKER_HEIGHT
21 }, function(w) { 25 }, function(w) {
22 wallpaperPickerWindow = w; 26 wallpaperPickerWindow = w;
23 chrome.wallpaperPrivate.minimizeInactiveWindows(); 27 chrome.wallpaperPrivate.minimizeInactiveWindows();
24 w.onClosed.addListener(function() { 28 w.onClosed.addListener(function() {
25 chrome.wallpaperPrivate.restoreMinimizedWindows(); 29 chrome.wallpaperPrivate.restoreMinimizedWindows();
26 }); 30 });
27 }); 31 });
28 }); 32 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698