home *** CD-ROM | disk | FTP | other *** search
/ Freelog 112 / FreelogNo112-NovembreDecembre2012.iso / Multimedia / Songbird / Songbird_2.0.0-2311_windows-i686-msvc8.exe / components / sbPlayQueueContentInfo.js < prev    next >
Text File  |  2012-06-08  |  3KB  |  95 lines

  1. /*
  2.  *=BEGIN SONGBIRD GPL
  3.  *
  4.  * This file is part of the Songbird web player.
  5.  *
  6.  * Copyright(c) 2005-2010 POTI, Inc.
  7.  * http://www.songbirdnest.com
  8.  *
  9.  * This file may be licensed under the terms of of the
  10.  * GNU General Public License Version 2 (the ``GPL'').
  11.  *
  12.  * Software distributed under the License is distributed
  13.  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
  14.  * express or implied. See the GPL for the specific language
  15.  * governing rights and limitations.
  16.  *
  17.  * You should have received a copy of the GPL along with this
  18.  * program. If not, go to http://www.gnu.org/licenses/gpl.html
  19.  * or write to the Free Software Foundation, Inc.,
  20.  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21.  *
  22.  *=END SONGBIRD GPL
  23.  */
  24.  
  25. /**
  26.  * \file sbPlayQueueContentInfo.js
  27.  * \brief Implementation of sbIDisplayPaneContentInfo to target play queue UI
  28.           content at display panes.
  29.  */
  30.  
  31. const Ci = Components.interfaces;
  32. const Cu = Components.utils;
  33.  
  34. Cu.import("resource://gre/modules/XPCOMUtils.jsm");
  35. Cu.import("resource://app/jsmodules/StringUtils.jsm");
  36.  
  37. // Constants for display pane content info
  38. const SB_PLAYQUEUE_CONTENTURL =
  39.     "chrome://songbird/content/xul/playQueue.xul";
  40. const SB_PLAYQUEUE_CONTENTICON =
  41.     "chrome://songbird/skin/browser/icon-link-playable.png";
  42. const SB_PLAYQUEUE_DEFAULTWIDTH = 150;
  43. const SB_PLAYQUEUE_DEFAULTHEIGHT = 300;
  44. const SB_PLAYQUEUE_SUGGESTEDCONTENTGROUPS = "sidebar";
  45.  
  46. function PlayQueueContentInfo () {
  47. }
  48.  
  49. PlayQueueContentInfo.prototype = {
  50.  
  51.   classID: Components.ID("{e0d6e860-1dd1-11b2-8663-a4d535a29859}"),
  52.   classDescription: "Songbird Play Queue Content Info",
  53.   contractID: "@songbirdnest.com/Songbird/playqueue/contentInfo;1",
  54.   _xpcom_categories:
  55.     [{
  56.       category: "display-pane-provider",
  57.       entry: "play-queue"
  58.     }],
  59.  
  60.   QueryInterface: XPCOMUtils.generateQI([Ci.sbIDisplayPaneContentInfo]),
  61.  
  62.   //----------------------------------------------------------------------------
  63.   //
  64.   // Implementation of sbIDisplayPaneContentInfo
  65.   //
  66.   //----------------------------------------------------------------------------
  67.  
  68.   get contentUrl() {
  69.     return SB_PLAYQUEUE_CONTENTURL;
  70.   },
  71.  
  72.   get contentTitle() {
  73.     return SBString("playqueue.pane.title");
  74.   },
  75.  
  76.   get contentIcon() {
  77.     return SB_PLAYQUEUE_CONTENTICON;
  78.   },
  79.  
  80.   get defaultWidth() {
  81.     return SB_PLAYQUEUE_DEFAULTWIDTH;
  82.   },
  83.  
  84.   get defaultHeight() {
  85.     return SB_PLAYQUEUE_DEFAULTHEIGHT;
  86.   },
  87.  
  88.   get suggestedContentGroups() {
  89.     return SB_PLAYQUEUE_SUGGESTEDCONTENTGROUPS;
  90.   }
  91.  
  92. };
  93.  
  94. var NSGetModule = XPCOMUtils.generateNSGetModule([PlayQueueContentInfo]);
  95.