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

Unified Diff: chrome/browser/resources/chromeos/wallpaper_manager/js/main.js

Issue 10698099: Implement the new wallpaper manager launcher window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix presubmit errors Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/wallpaper_manager/js/main.js
diff --git a/chrome/browser/resources/chromeos/wallpaper_manager/js/main.js b/chrome/browser/resources/chromeos/wallpaper_manager/js/main.js
new file mode 100644
index 0000000000000000000000000000000000000000..c6f2edc91c72c9c33ea216dfc9d00d71a912b0f8
--- /dev/null
+++ b/chrome/browser/resources/chromeos/wallpaper_manager/js/main.js
@@ -0,0 +1,14 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function init() {
+ window.addEventListener('load',
+ windowStateManager.saveStates.bind(windowStateManager));
+ window.addEventListener('focus',
+ windowStateManager.saveStates.bind(windowStateManager));
+ window.addEventListener('unload',
+ windowStateManager.restoreStates.bind(windowStateManager));
+}
+
+document.addEventListener('DOMContentLoaded', init);

Powered by Google App Engine
This is Rietveld 408576698