Home | History | Annotate | Download | only in js
      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.
      4 
      5 
      6 /** @const */ var Constants = {
      7   /**
      8    * Key to access wallpaper rss in chrome.local.storage.
      9    */
     10   AccessRssKey: 'wallpaper-picker-surprise-rss-key',
     11 
     12   /**
     13    * Key to access wallpaper manifest in chrome.storage.local.
     14    */
     15   AccessManifestKey: 'wallpaper-picker-manifest-key',
     16 
     17   /**
     18    * Key to access user wallpaper info in chrome.storage.local.
     19    */
     20   AccessLocalWallpaperInfoKey: 'wallpaper-local-info-key',
     21 
     22   /**
     23    * Key to access user wallpaper info in chrome.storage.sync.
     24    */
     25   AccessSyncWallpaperInfoKey: 'wallpaper-sync-info-key',
     26 
     27   /**
     28    * Key to access last changed date of a surprise wallpaper.
     29    */
     30   AccessLastSurpriseWallpaperChangedDate: 'wallpaper-last-changed-date-key',
     31 
     32   /**
     33    * Key to access if surprise me feature is enabled or not in
     34    * chrome.local.storage.
     35    */
     36   AccessSurpriseMeEnabledKey: 'surprise-me-enabled-key',
     37 
     38   /**
     39    * Suffix to append to baseURL if requesting high resoultion wallpaper.
     40    */
     41   HighResolutionSuffix: '_high_resolution.jpg',
     42 
     43   /**
     44    * URL to get latest wallpaper RSS feed.
     45    */
     46   WallpaperRssURL: 'https://commondatastorage.googleapis.com/' +
     47       'chromeos-wallpaper-public/wallpaper.rss',
     48 
     49   /**
     50    * cros-wallpaper namespace URI.
     51    */
     52   WallpaperNameSpaceURI: 'http://commondatastorage.googleapis.com/' +
     53       'chromeos-wallpaper-public/cros-wallpaper-uri',
     54 
     55   /**
     56    * Wallpaper sources enum.
     57    */
     58   WallpaperSourceEnum: {
     59       Online: 'ONLINE',
     60       OEM: 'OEM',
     61       Custom: 'CUSTOM',
     62       AddNew: 'ADDNEW'
     63   },
     64 
     65   /**
     66    * Local storage.
     67    */
     68   WallpaperLocalStorage: chrome.storage.local,
     69 
     70   /**
     71    * Sync storage.
     72    */
     73   WallpaperSyncStorage: chrome.storage.sync
     74 };
     75