Search completed in 2.06 seconds.
8 results for "windowState":
nsISessionStore
MozillaTechXPCOMReferenceInterfacensISessionStore
aindex); astring getbrowserstate(); unsigned long getclosedtabcount(in nsidomwindow awindow); astring getclosedtabdata(in nsidomwindow awindow); unsigned long getclosedwindowcount(); astring getclosedwindowdata(); astring gettabstate(in nsidomnode atab); astring gettabvalue(in nsidomnode atab, in astring akey); astring getwindowstate(in nsidomwindow awindow); astring getwindowvalue(in nsidomwindow awindow, in astring akey); void init(in nsidomwindow awindow); void persisttabattribute(in astring aname); void restorelastsession(); void setbrowserstate(in astring astate); void settabstate(in nsidomnode atab, in astring astate); void settabvalue(in nsidomnode atab, ...
...in astring akey, in astring astringvalue); void setwindowstate(in nsidomwindow awindow, in astring astate, in boolean aoverwrite); void setwindowvalue(in nsidomwindow awindow, in astring akey, in astring astringvalue); nsidomnode undoclosetab(in nsidomwindow awindow, in unsigned long aindex); nsidomwindow undoclosewindow(in unsigned long aindex); attributes attribute type description canrestorelastsession boolean is it possible to restore the previous session.
...if you need to retrieve cookies as well, you should use getwindowstate() instead.
...And 4 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
ArchiveAdd-onsOverlay ExtensionsFirefox addons developer guideLet's build a Firefox extension
lines 7–9 use the nslsessionstore interface’s setwindowstate method to restore the session, using the current window as an origin point.
... listing 20: content for restore method restore: function(event) { var filename = event.target.getattribute("filename"); var file = this._dir.clone(); file.append(filename); var state = this._readfile(file); var ss = components.classes["@mozilla.org/browser/sessionstore;1"] .getservice(components.interfaces.nsisessionstore); ss.setwindowstate(window, state, false); }, clear method this uses the directoryentries property of the nslfile interface to delete all files within the directory you got earlier.
... setwindowstate(awindow, astate, aoverwrite) restores the browser window indicated by the parameter awindow to the state indicated by astate.
nsISHEntry
MozillaTechXPCOMReferenceInterfacensISHEntry
(prior to gecko 6.0 returned a json encoded string.) sticky boolean whether the content viewer is marked "sticky" windowstate nsisupports saved state of the global window object.
...if either contentviewer or windowstate are null, then all of the following members are cleared/reset: contentviewer, sticky, windowstate, viewerbounds, childshells, refreshurilist.
Event reference
WebEvents
sswindowstateready addons specific a window state has switched to "ready".
... sswindowstatebusy addons specific a window state has switched to "busy".
sizemode - Archive of obsolete content
ArchiveMozillaXULAttributesizemode
to get the window state from javascript code, use window.windowstate.
XUL Events - Archive of obsolete content
ArchiveMozillaXULEvents
note: this event may fire several times or while resizing the window (for example, see bug 715867), so always check if the window state changed by inspecting window.windowstate in the event.
window - Archive of obsolete content
ArchiveMozillaXULwindow
to get the window state from javascript code, use window.windowstate.
nsIDOMChromeWindow
MozillaTechXPCOMReferenceInterfacensIDOMChromeWindow
title domstring obsolete since gecko 1.9.1 windowstate unsigned short returns current window state, the value is one of state_* constants.