2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#include "domstubs.idl"
|
|
|
|
|
2011-03-03 03:55:55 -08:00
|
|
|
%{ C++
|
|
|
|
struct JSContext;
|
|
|
|
%}
|
|
|
|
|
2009-09-01 09:45:05 -07:00
|
|
|
interface nsIVariant;
|
|
|
|
|
2011-03-03 03:55:55 -08:00
|
|
|
[scriptable, uuid(d5a3006b-dd6b-4ba3-81be-6559f8889e60)]
|
2007-03-22 10:30:00 -07:00
|
|
|
interface nsIDOMHistory : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute long length;
|
|
|
|
readonly attribute DOMString current;
|
|
|
|
readonly attribute DOMString previous;
|
|
|
|
readonly attribute DOMString next;
|
|
|
|
|
|
|
|
void back();
|
|
|
|
void forward();
|
|
|
|
|
2008-09-05 14:54:53 -07:00
|
|
|
void go([optional] in long aDelta);
|
2007-03-22 10:30:00 -07:00
|
|
|
DOMString item(in unsigned long index);
|
2011-03-03 03:55:55 -08:00
|
|
|
[implicit_jscontext]
|
2009-09-01 09:45:05 -07:00
|
|
|
void pushState(in nsIVariant aData,
|
|
|
|
in DOMString aTitle,
|
|
|
|
[optional] in DOMString aURL);
|
2011-03-03 03:55:55 -08:00
|
|
|
[implicit_jscontext]
|
2009-09-01 09:45:05 -07:00
|
|
|
void replaceState(in nsIVariant aData,
|
|
|
|
in DOMString aTitle,
|
|
|
|
[optional] in DOMString aURL);
|
2011-02-28 23:08:56 -08:00
|
|
|
|
|
|
|
readonly attribute nsIVariant state;
|
|
|
|
};
|