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.storage.local.
10 AccessLocalRssKey: 'wallpaper-picker-surprise-rss-key',
13 * Key to access wallpaper manifest in chrome.storage.local.
15 AccessLocalManifestKey: '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 in
29 * chrome.storage.local or chrome.storage.sync.
31 AccessLastSurpriseWallpaperChangedDate: 'wallpaper-last-changed-date-key',
34 * Key to access if surprise me feature is enabled or not in
35 * chrome.storage.local.
37 AccessLocalSurpriseMeEnabledKey: 'surprise-me-enabled-key',
40 * Key to access if surprise me feature is enabled or not in
41 * chrome.storage.sync.
43 AccessSyncSurpriseMeEnabledKey: 'sync-surprise-me-enabled-key',
46 * Suffix to append to baseURL if requesting high resoultion wallpaper.
48 HighResolutionSuffix: '_high_resolution.jpg',
51 * URL to get latest wallpaper RSS feed.
53 WallpaperRssURL: 'https://storage.googleapis.com/' +
54 'chromeos-wallpaper-public/wallpaper.rss',
57 * cros-wallpaper namespace URI.
59 WallpaperNameSpaceURI: 'http://commondatastorage.googleapis.com/' +
60 'chromeos-wallpaper-public/cros-wallpaper-uri',
63 * Wallpaper sources enum.
65 WallpaperSourceEnum: {
76 WallpaperLocalStorage: chrome.storage.local,
81 WallpaperSyncStorage: chrome.storage.sync,
84 * Suffix to append to file name if it is a thumbnail.
86 CustomWallpaperThumbnailSuffix: '_thumbnail',
89 * Wallpaper directory enum.
91 WallpaperDirNameEnum: {
93 THUMBNAIL: 'thumbnail'