Bug 461634 - new API: allow to delete a single closed tab. r=zeniko, sr=dietrich

This commit is contained in:
Michael Kraft
2009-04-06 13:50:45 +02:00
parent 11964c8823
commit 0e6d66c40b
4 changed files with 134 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
*
* Contributor(s):
* Dietrich Ayala <dietrich@mozilla.com>
* Michael Kraft <morac99-firefox@yahoo.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -58,7 +59,7 @@ interface nsIDOMNode;
* |getBrowser().tabContainer| such as e.g. |getBrowser().selectedTab|.
*/
[scriptable, uuid(91f6d650-898d-11dd-ad8b-0800200c9a66)]
[scriptable, uuid(534d81e3-d3fb-4f1e-aed6-3de601406270)]
interface nsISessionStore : nsISupports
{
/**
@@ -138,6 +139,12 @@ interface nsISessionStore : nsISupports
*/
nsIDOMNode undoCloseTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
/**
* @param aWindow is the browser window associated with the closed tab.
* @param aIndex is the index of the closed tab to be removed (FIFO ordered).
*/
nsIDOMNode forgetClosedTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
/**
* @param aWindow is the window to get the value for.
* @param aKey is the value's name.