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

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

Issue 587843002: Test wallpaper picker app could launch in dev and stable channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 6 years, 3 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 = 574; 5 var WALLPAPER_PICKER_WIDTH = 574;
6 var WALLPAPER_PICKER_HEIGHT = 420; 6 var WALLPAPER_PICKER_HEIGHT = 420;
7 7
8 var wallpaperPickerWindow; 8 var wallpaperPickerWindow;
9 9
10 var surpriseWallpaper = null; 10 var surpriseWallpaper = null;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 width: WALLPAPER_PICKER_WIDTH, 225 width: WALLPAPER_PICKER_WIDTH,
226 height: WALLPAPER_PICKER_HEIGHT, 226 height: WALLPAPER_PICKER_HEIGHT,
227 resizable: false, 227 resizable: false,
228 alphaEnabled: true 228 alphaEnabled: true
229 }, function(w) { 229 }, function(w) {
230 wallpaperPickerWindow = w; 230 wallpaperPickerWindow = w;
231 chrome.wallpaperPrivate.minimizeInactiveWindows(); 231 chrome.wallpaperPrivate.minimizeInactiveWindows();
232 w.onClosed.addListener(function() { 232 w.onClosed.addListener(function() {
233 chrome.wallpaperPrivate.restoreMinimizedWindows(); 233 chrome.wallpaperPrivate.restoreMinimizedWindows();
234 }); 234 });
235 WallpaperUtil.testSendMessage('wallpaper-window-created');
235 }); 236 });
236 }); 237 });
237 238
238 chrome.storage.onChanged.addListener(function(changes, namespace) { 239 chrome.storage.onChanged.addListener(function(changes, namespace) {
239 if (changes[Constants.AccessSurpriseMeEnabledKey]) { 240 if (changes[Constants.AccessSurpriseMeEnabledKey]) {
240 if (changes[Constants.AccessSurpriseMeEnabledKey].newValue) { 241 if (changes[Constants.AccessSurpriseMeEnabledKey].newValue) {
241 SurpriseWallpaper.getInstance().next(); 242 SurpriseWallpaper.getInstance().next();
242 } else { 243 } else {
243 SurpriseWallpaper.getInstance().disable(); 244 SurpriseWallpaper.getInstance().disable();
244 } 245 }
(...skipping 22 matching lines...) Expand all
267 WallpaperUtil.saveToStorage(Constants.AccessLocalWallpaperInfoKey, 268 WallpaperUtil.saveToStorage(Constants.AccessLocalWallpaperInfoKey,
268 newValue, false); 269 newValue, false);
269 } 270 }
270 }); 271 });
271 } 272 }
272 }); 273 });
273 274
274 chrome.alarms.onAlarm.addListener(function() { 275 chrome.alarms.onAlarm.addListener(function() {
275 SurpriseWallpaper.getInstance().next(); 276 SurpriseWallpaper.getInstance().next();
276 }); 277 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698