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 | 5 |
6 /** @const */ var Constants = { | 6 /** @const */ var Constants = { |
7 /** | 7 /** |
8 * Key to access wallpaper rss in chrome.local.storage. | 8 * Key to access wallpaper rss in chrome.local.storage. |
9 */ | 9 */ |
10 AccessRssKey: 'wallpaper-picker-surprise-rss-key', | 10 AccessRssKey: 'wallpaper-picker-surprise-rss-key', |
11 | 11 |
12 /** | 12 /** |
13 * Key to access wallpaper manifest in chrome.local.storage. | 13 * Key to access wallpaper manifest in chrome.local.storage. |
14 */ | 14 */ |
15 AccessManifestKey: 'wallpaper-picker-manifest-key', | 15 AccessManifestKey: 'wallpaper-picker-manifest-key', |
16 | 16 |
17 /** | 17 /** |
| 18 * Key to access user wallpaper info in chrome.storage.sync |
| 19 */ |
| 20 AccessWallpaperInfoKey: 'wallpaper-info-key', |
| 21 |
| 22 /** |
18 * Key to access last changed date of a surprise wallpaper. | 23 * Key to access last changed date of a surprise wallpaper. |
19 */ | 24 */ |
20 AccessLastSurpriseWallpaperChangedDate: 'wallpaper-last-changed-date-key', | 25 AccessLastSurpriseWallpaperChangedDate: 'wallpaper-last-changed-date-key', |
21 | 26 |
22 /** | 27 /** |
23 * Key to access if surprise me feature is enabled or not in | 28 * Key to access if surprise me feature is enabled or not in |
24 * chrome.local.storage. | 29 * chrome.local.storage. |
25 */ | 30 */ |
26 AccessSurpriseMeEnabledKey: 'surprise-me-enabled-key', | 31 AccessSurpriseMeEnabledKey: 'surprise-me-enabled-key', |
27 | 32 |
(...skipping 19 matching lines...) Expand all Loading... |
47 */ | 52 */ |
48 WallpaperSourceEnum: { | 53 WallpaperSourceEnum: { |
49 Online: 'ONLINE', | 54 Online: 'ONLINE', |
50 Custom: 'CUSTOM', | 55 Custom: 'CUSTOM', |
51 AddNew: 'ADDNEW' | 56 AddNew: 'ADDNEW' |
52 }, | 57 }, |
53 | 58 |
54 /** | 59 /** |
55 * Local storage. | 60 * Local storage. |
56 */ | 61 */ |
57 WallpaperLocalStorage: chrome.storage.local | 62 WallpaperLocalStorage: chrome.storage.local, |
| 63 |
| 64 /** |
| 65 * Sync storage. |
| 66 */ |
| 67 WallpaperSyncStorage: chrome.storage.sync |
58 }; | 68 }; |
OLD | NEW |