| OLD | NEW |
| 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 = 576; | 5 var WALLPAPER_PICKER_WIDTH = 574; |
| 6 var WALLPAPER_PICKER_HEIGHT = 422; | 6 var WALLPAPER_PICKER_HEIGHT = 420; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Key to access wallpaper rss in chrome.local.storage. | 9 * Key to access wallpaper rss in chrome.local.storage. |
| 10 */ | 10 */ |
| 11 /** @const */ var AccessRssKey = 'wallpaper-picker-surprise-rss-key'; | 11 /** @const */ var AccessRssKey = 'wallpaper-picker-surprise-rss-key'; |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Key to access wallpaper manifest in chrome.local.storage. | 14 * Key to access wallpaper manifest in chrome.local.storage. |
| 15 */ | 15 */ |
| 16 /** @const */ var AccessManifestKey = 'wallpaper-picker-manifest-key'; | 16 /** @const */ var AccessManifestKey = 'wallpaper-picker-manifest-key'; |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 chrome.wallpaperPrivate.restoreMinimizedWindows(); | 342 chrome.wallpaperPrivate.restoreMinimizedWindows(); |
| 343 }); | 343 }); |
| 344 }); | 344 }); |
| 345 }); | 345 }); |
| 346 | 346 |
| 347 chrome.alarms.onAlarm.addListener(function() { | 347 chrome.alarms.onAlarm.addListener(function() { |
| 348 var nextUpdate = SurpriseWallpaper.getInstance().nextUpdateTime(new Date()); | 348 var nextUpdate = SurpriseWallpaper.getInstance().nextUpdateTime(new Date()); |
| 349 chrome.alarms.create({when: nextUpdate}); | 349 chrome.alarms.create({when: nextUpdate}); |
| 350 SurpriseWallpaper.getInstance().tryChangeWallpaper(); | 350 SurpriseWallpaper.getInstance().tryChangeWallpaper(); |
| 351 }); | 351 }); |
| OLD | NEW |