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 = 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 } | 342 } |
343 }); | 343 }); |
344 }); | 344 }); |
345 } | 345 } |
346 }); | 346 }); |
347 }); | 347 }); |
348 | 348 |
349 chrome.alarms.onAlarm.addListener(function() { | 349 chrome.alarms.onAlarm.addListener(function() { |
350 SurpriseWallpaper.getInstance().next(); | 350 SurpriseWallpaper.getInstance().next(); |
351 }); | 351 }); |
| 352 |
| 353 chrome.wallpaperPrivate.OnWallpaperChangedBy3rdParty.addListener(function() { |
| 354 WallpaperUtil.saveToStorage(Constants.AccessSurpriseMeEnabledKey, |
| 355 false, true); |
| 356 SurpriseWallpaper.getInstance().disable(); |
| 357 }); |
OLD | NEW |