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

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

Issue 11028121: Convert wallpaper picker to v2 app (Closed) Base URL: http://git.chromium.org/chromium/src.git@AppsV2
Patch Set: Review this patch Created 8 years, 2 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
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 /** 5 /**
6 * Global wallpaperManager reference useful for poking at from the console. 6 * Global wallpaperManager reference useful for poking at from the console.
7 */ 7 */
8 var wallpaperManager; 8 var wallpaperManager;
9 9
10 function init() { 10 function init() {
11 window.addEventListener('load', 11 window.addEventListener('load',
12 windowStateManager.saveStates.bind(windowStateManager)); 12 windowStateManager.saveStates.bind(windowStateManager));
13 window.addEventListener('unload', 13 window.addEventListener('close',
Mihai Parparita -not on Chrome 2012/10/12 00:48:47 This won't work either. Once http://crbug.com/1304
bshe 2012/10/12 16:28:30 Thanks for info. I will wait for 130465 and the ch
14 windowStateManager.restoreStates.bind(windowStateManager)); 14 windowStateManager.restoreStates.bind(windowStateManager));
15 WallpaperManager.initStrings(function() { 15 WallpaperManager.initStrings(function() {
16 wallpaperManager = new WallpaperManager(document.body); 16 wallpaperManager = new WallpaperManager(document.body);
17 }); 17 });
18 } 18 }
19 19
20 document.addEventListener('DOMContentLoaded', init); 20 document.addEventListener('DOMContentLoaded', init);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698