nsISessionStore.idl
Go to the documentation of this file.
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is the Session Restore component.
15  *
16  * The Initial Developer of the Original Code is
17  * Simon Bünzli <zeniko@gmail.com>
18  * Portions created by the Initial Developer are Copyright (C) 2006
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  * Dietrich Ayala <dietrich@mozilla.com>
23  * Michael Kraft <morac99-firefox@yahoo.com>
24  *
25  * Alternatively, the contents of this file may be used under the terms of
26  * either the GNU General Public License Version 2 or later (the "GPL"), or
27  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28  * in which case the provisions of the GPL or the LGPL are applicable instead
29  * of those above. If you wish to allow use of your version of this file only
30  * under the terms of either the GPL or the LGPL, and not to allow others to
31  * use your version of this file under the terms of the MPL, indicate your
32  * decision by deleting the provisions above and replace them with the notice
33  * and other provisions required by the GPL or the LGPL. If you do not delete
34  * the provisions above, a recipient may use your version of this file under
35  * the terms of any one of the MPL, the GPL or the LGPL.
36  *
37  * ***** END LICENSE BLOCK ***** */
38 
39 #include "nsISupports.idl"
40 
41 interface nsIDOMWindow;
42 interface nsIDOMNode;
43 
62 [scriptable, uuid(70592a0d-87d3-459c-8db7-dcb8d47af78e)]
64 {
68  void init(in nsIDOMWindow aWindow);
69 
74  AString getBrowserState();
75 
83  void setBrowserState(in AString aState);
84 
90  AString getWindowState(in nsIDOMWindow aWindow);
91 
97  void setWindowState(in nsIDOMWindow aWindow, in AString aState, in boolean aOverwrite);
98 
105  AString getTabState(in nsIDOMNode aTab);
106 
111  void setTabState(in nsIDOMNode aTab, in AString aState);
112 
120  nsIDOMNode duplicateTab(in nsIDOMWindow aWindow, in nsIDOMNode aTab);
121 
125  unsigned long getClosedTabCount(in nsIDOMWindow aWindow);
126 
133  AString getClosedTabData(in nsIDOMWindow aWindow);
134 
140  nsIDOMNode undoCloseTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
141 
146  nsIDOMNode forgetClosedTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
147 
151  unsigned long getClosedWindowCount();
152 
158  AString getClosedWindowData();
159 
164  nsIDOMWindow undoCloseWindow(in unsigned long aIndex);
165 
172  nsIDOMNode forgetClosedWindow(in unsigned long aIndex);
173 
180  AString getWindowValue(in nsIDOMWindow aWindow, in AString aKey);
181 
187  void setWindowValue(in nsIDOMWindow aWindow, in AString aKey, in AString aStringValue);
188 
193  void deleteWindowValue(in nsIDOMWindow aWindow, in AString aKey);
194 
201  AString getTabValue(in nsIDOMNode aTab, in AString aKey);
202 
208  void setTabValue(in nsIDOMNode aTab, in AString aKey, in AString aStringValue);
209 
214  void deleteTabValue(in nsIDOMNode aTab, in AString aKey);
215 
219  void persistTabAttribute(in AString aName);
220 };
nsIDOMWindow undoCloseWindow(in unsigned long aIndex)
AString getWindowValue(in nsIDOMWindow aWindow, in AString aKey)
nsIDOMNode forgetClosedWindow(in unsigned long aIndex)
void setWindowValue(in nsIDOMWindow aWindow, in AString aKey, in AString aStringValue)
nsIDOMNode undoCloseTab(in nsIDOMWindow aWindow, in unsigned long aIndex)
AString getClosedTabData(in nsIDOMWindow aWindow)
AString getTabState(in nsIDOMNode aTab)
void setWindowState(in nsIDOMWindow aWindow, in AString aState, in boolean aOverwrite)
unsigned long getClosedTabCount(in nsIDOMWindow aWindow)
AString getClosedWindowData()
void setTabState(in nsIDOMNode aTab, in AString aState)
var uuid
void setTabValue(in nsIDOMNode aTab, in AString aKey, in AString aStringValue)
const nsIDOMWindow
AString getTabValue(in nsIDOMNode aTab, in AString aKey)
unsigned long getClosedWindowCount()
AString getBrowserState()
void init(in nsIDOMWindow aWindow)
_updateCookies aName
void setBrowserState(in AString aState)
_replaceLoadingTitle aTab
AString getWindowState(in nsIDOMWindow aWindow)
void persistTabAttribute(in AString aName)
nsIDOMNode forgetClosedTab(in nsIDOMWindow aWindow, in unsigned long aIndex)
void deleteWindowValue(in nsIDOMWindow aWindow, in AString aKey)
void deleteTabValue(in nsIDOMNode aTab, in AString aKey)
restoreWindow aState
nsIDOMNode duplicateTab(in nsIDOMWindow aWindow, in nsIDOMNode aTab)