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
3 // found in the LICENSE file.
6 /** @const */ var Constants = {
8 * Key to access wallpaper rss in chrome.local.storage.
10 AccessRssKey: 'wallpaper-picker-surprise-rss-key',
13 * Key to access wallpaper manifest in chrome.storage.local.
15 AccessManifestKey: 'wallpaper-picker-manifest-key',
18 * Key to access user wallpaper info in chrome.storage.local.
20 AccessLocalWallpaperInfoKey: 'wallpaper-local-info-key',
23 * Key to access user wallpaper info in chrome.storage.sync.
25 AccessSyncWallpaperInfoKey: 'wallpaper-sync-info-key',
28 * Key to access last changed date of a surprise wallpaper.
30 AccessLastSurpriseWallpaperChangedDate: 'wallpaper-last-changed-date-key',
33 * Key to access if surprise me feature is enabled or not in
34 * chrome.local.storage.
36 AccessSurpriseMeEnabledKey: 'surprise-me-enabled-key',
39 * Suffix to append to baseURL if requesting high resoultion wallpaper.
41 HighResolutionSuffix: '_high_resolution.jpg',
44 * URL to get latest wallpaper RSS feed.
46 WallpaperRssURL: 'https://commondatastorage.googleapis.com/' +
47 'chromeos-wallpaper-public/wallpaper.rss',
50 * cros-wallpaper namespace URI.
52 WallpaperNameSpaceURI: 'http://commondatastorage.googleapis.com/' +
53 'chromeos-wallpaper-public/cros-wallpaper-uri',
56 * Wallpaper sources enum.
58 WallpaperSourceEnum: {
68 WallpaperLocalStorage: chrome.storage.local,
73 WallpaperSyncStorage: chrome.storage.sync