1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/events/nsIDOMPageTransitionEvent.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsIDOMEvent.idl" 1.10 + 1.11 +/** 1.12 + * The nsIDOMPageTransitionEvent interface is used for the pageshow and 1.13 + * pagehide events, which are generic events that apply to both page 1.14 + * load/unload and saving/restoring a document from session history. 1.15 + */ 1.16 + 1.17 +[scriptable, builtinclass, uuid(8a69a3d6-c7da-4caa-993c-7f9583d9f896)] 1.18 +interface nsIDOMPageTransitionEvent : nsIDOMEvent 1.19 +{ 1.20 + /** 1.21 + * Set to true if the document has been or will be persisted across 1.22 + * firing of the event. For example, if a document is being cached in 1.23 + * session history, |persisted| is true for the PageHide event. 1.24 + */ 1.25 + readonly attribute boolean persisted; 1.26 + 1.27 + /* Initialize a new pageshow or pagehide event. */ 1.28 + void initPageTransitionEvent(in DOMString typeArg, 1.29 + in boolean canBubbleArg, 1.30 + in boolean canCancelArg, 1.31 + in boolean persisted); 1.32 +};