sbFeathersManager.js File Reference

Coordinates the loading of feathers (combination of skin and XUL window layout) More...

Go to the source code of this file.

Functions

Components utils import ("resource://app/jsmodules/ObserverUtils.jsm")
 
function SkinDescription ()
 
function LayoutDescription ()
 
function FeathersManager_switchFeathers_callback (aFeathersManager, aLayoutURL, aInternalName)
 
function NSGetModule (comMgr, fileSpec)
 

Variables

const Ci = Components.interfaces
 
const Cc = Components.classes
 
const Cr = Components.results
 
const Cu = Components.utils
 
const CONTRACTID = "@songbirdnest.com/songbird/feathersmanager;1"
 
const CLASSNAME = "Songbird Feathers Manager Service Interface"
 
const CID = Components.ID("{99f24350-a67f-11db-befa-0800200c9a66}")
 
const IID = Ci.sbIFeathersManager
 
const RDFURI_ADDON_ROOT
 
const CHROME_PREFIX
 
const PREF_DEFAULT_MAIN_LAYOUT = "songbird.feathers.default_main_layout"
 
const PREF_DEFAULT_SECONDARY_LAYOUT = "songbird.feathers.default_secondary_layout"
 
const PREF_DEFAULT_SKIN_INTERNALNAME = "songbird.feathers.default_skin_internalname"
 
const PREF_DEFAULT_FEATHER_ID = "songbird.feathers.default_feather_id"
 
const PREF_FEATHERS_MANAGER_HAS_STARTED = "songbird.feathersmanager.hasStarted"
 
const WINDOWTYPE_SONGBIRD_PLAYER = "Songbird:Main"
 
const WINDOWTYPE_SONGBIRD_CORE = "Songbird:Core"
 
SkinDescription prototype
 
LayoutDescription verify
 

Detailed Description

Coordinates the loading of feathers (combination of skin and XUL window layout)

Definition in file sbFeathersManager.js.

Function Documentation

function FeathersManager_switchFeathers_callback (   aFeathersManager,
  aLayoutURL,
  aInternalName 
)

Callback helper for FeathersManager::switchFeathers This is needed to make sure the window is really closed before we switch skins

Definition at line 1403 of file sbFeathersManager.js.

Components utils import ( "resource://app/jsmodules/ObserverUtils.jsm"  )
function LayoutDescription ( )

sbILayoutDescription

Definition at line 121 of file sbFeathersManager.js.

function NSGetModule (   comMgr,
  fileSpec 
)

Registration for XPCOM

Definition at line 1457 of file sbFeathersManager.js.

function SkinDescription ( )

sbISkinDescription

Definition at line 106 of file sbFeathersManager.js.

Variable Documentation

const Cc = Components.classes

Definition at line 41 of file sbFeathersManager.js.

const CHROME_PREFIX
Initial value:
= "chrome://"
const DATAREMOTE_TESTMODE = "__testmode__"

Definition at line 54 of file sbFeathersManager.js.

Definition at line 40 of file sbFeathersManager.js.

const CID = Components.ID("{99f24350-a67f-11db-befa-0800200c9a66}")

Definition at line 47 of file sbFeathersManager.js.

const CLASSNAME = "Songbird Feathers Manager Service Interface"

Definition at line 46 of file sbFeathersManager.js.

const CONTRACTID = "@songbirdnest.com/songbird/feathersmanager;1"

Definition at line 45 of file sbFeathersManager.js.

const Cr = Components.results

Definition at line 42 of file sbFeathersManager.js.

const Cu = Components.utils

Definition at line 43 of file sbFeathersManager.js.

const IID = Ci.sbIFeathersManager

Definition at line 48 of file sbFeathersManager.js.

const PREF_DEFAULT_FEATHER_ID = "songbird.feathers.default_feather_id"

Definition at line 89 of file sbFeathersManager.js.

const PREF_DEFAULT_MAIN_LAYOUT = "songbird.feathers.default_main_layout"

Definition at line 86 of file sbFeathersManager.js.

const PREF_DEFAULT_SECONDARY_LAYOUT = "songbird.feathers.default_secondary_layout"

Definition at line 87 of file sbFeathersManager.js.

const PREF_DEFAULT_SKIN_INTERNALNAME = "songbird.feathers.default_skin_internalname"

Definition at line 88 of file sbFeathersManager.js.

const PREF_FEATHERS_MANAGER_HAS_STARTED = "songbird.feathersmanager.hasStarted"

Definition at line 93 of file sbFeathersManager.js.

Initial value:
= {
requiredProperties: [ "internalName" ],
optionalProperties: [ "name" ],
QueryInterface: function(iid) {
if (!iid.equals(Ci.sbISkinDescription))
throw Components.results.NS_ERROR_NO_INTERFACE;
return this;
}
}
sbOSDControlService prototype QueryInterface
const Ci

Definition at line 107 of file sbFeathersManager.js.

const RDFURI_ADDON_ROOT
Initial value:
= "urn:songbird:addon:root"
const PREFIX_NS_SONGBIRD = "http://www.songbirdnest.com/2007/addon-metadata-rdf#"
const PREFIX_NS_SONGBIRD

Definition at line 51 of file sbFeathersManager.js.

Initial value:
= SkinDescription.verify = function( description )
{
for (var i = 0; i < this.prototype.requiredProperties.length; i++) {
var property = this.prototype.requiredProperties[i];
if (! (typeof(description[property]) == 'string'
&& description[property].length > 0))
{
throw("Invalid description. '" + property + "' is a required property.");
}
}
}
function AddonMetadataReader() {}
SkinDescription prototype
_getSelectedPageStyle s i
function SkinDescription()

Static function that verifies the contents of the given description

Example: try { LayoutDescription.verify(layout); } catch (e) { reportError(e); }

Definition at line 144 of file sbFeathersManager.js.

const WINDOWTYPE_SONGBIRD_CORE = "Songbird:Core"

Definition at line 96 of file sbFeathersManager.js.

const WINDOWTYPE_SONGBIRD_PLAYER = "Songbird:Main"

Definition at line 95 of file sbFeathersManager.js.