Go to the source code of this file.
Functions | |
Components utils | import ("resource://gre/modules/XPCOMUtils.jsm") |
function | LOG (str) |
__defineGetter__ ("_tabState", function(){var state=Application.prefs.getValue(PREF_TAB_STATE, null);if(state===null) return null;try{return JSON.decode(state);}catch(e){Components.utils.reportError("Error restoring tab state: invalid JSON\n"+state);return null;}}) | |
__defineSetter__ ("_tabState", function(aValue){Application.prefs.setValue(PREF_TAB_STATE, JSON.encode(aValue));}) | |
Variables | |
const | EXPORTED_SYMBOLS = ["SBSessionStore"] |
const | Cc = Components.classes |
const | Ci = Components.interfaces |
const | Application = Cc["@mozilla.org/fuel/application;1"].getService() |
const | JSON = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON) |
const | PREF_TAB_STATE = "songbird.browser.tab_state" |
const | PREF_FIRSTRUN = "songbird.firstrun.tabs.restore" |
const | PREF_FIRSTRUN_URL = "songbird.url.firstrunpage" |
const | PLACEHOLDER_URL = "chrome://songbird/content/mediapages/firstrun.xul" |
const | PREF_FIRSTRUN_SESSION = "songbird.firstrun.is_session" |
const | PREF_UPDATE_VERSION = "nightingale.update.version" |
const | PREF_UPDATE_URL = "nightingale.update.url" |
var | SBSessionStore |
__defineGetter__ | ( | "Application" | , |
function(){delete Application;Application=Cc["@mozilla.org/fuel/application;1"].getService(Ci.fuelIApplication);return Application;} | |||
) |
Construct a column spec parser and read the column specification immediately
aMediaList | The media list to find columns to display for |
aPlaylist | the playlist binding |
aMask | a bitfield containing the source to look for; see the ColumnSpecParser.ORIGIN_* constants |
[optional] | aConstraint the media type constraint to use, if any |
__defineSetter__ | ( | "_tabState" | , |
function(aValue){Application.prefs.setValue(PREF_TAB_STATE, JSON.encode(aValue));} | |||
) |
Components utils import | ( | "resource://gre/modules/XPCOMUtils.jsm" | ) |
function LOG | ( | str | ) |
Definition at line 58 of file SBSessionStore.js.
const Application = Cc["@mozilla.org/fuel/application;1"].getService() |
Definition at line 44 of file SBSessionStore.js.
const Cc = Components.classes |
Definition at line 41 of file SBSessionStore.js.
const Ci = Components.interfaces |
Definition at line 42 of file SBSessionStore.js.
const EXPORTED_SYMBOLS = ["SBSessionStore"] |
Session Store
This is loaded into the tabbrowser as an object to provide session restore services (remember which tabs are open to which locations, and restore them on restart). It is not expected to be used separately from the tabbrowser.
Currently it depends on tabbrowser internals.
Definition at line 36 of file SBSessionStore.js.
const JSON = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON) |
Definition at line 45 of file SBSessionStore.js.
const PLACEHOLDER_URL = "chrome://songbird/content/mediapages/firstrun.xul" |
Definition at line 50 of file SBSessionStore.js.
const PREF_FIRSTRUN = "songbird.firstrun.tabs.restore" |
Definition at line 48 of file SBSessionStore.js.
const PREF_FIRSTRUN_SESSION = "songbird.firstrun.is_session" |
Definition at line 53 of file SBSessionStore.js.
const PREF_FIRSTRUN_URL = "songbird.url.firstrunpage" |
Definition at line 49 of file SBSessionStore.js.
const PREF_TAB_STATE = "songbird.browser.tab_state" |
Definition at line 47 of file SBSessionStore.js.
const PREF_UPDATE_URL = "nightingale.update.url" |
Definition at line 56 of file SBSessionStore.js.
const PREF_UPDATE_VERSION = "nightingale.update.version" |
Definition at line 55 of file SBSessionStore.js.
var SBSessionStore |
Definition at line 95 of file SBSessionStore.js.