dom/interfaces/events/nsIDOMPageTransitionEvent.idl

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "nsIDOMEvent.idl"
     8 /**
     9  * The nsIDOMPageTransitionEvent interface is used for the pageshow and
    10  * pagehide events, which are generic events that apply to both page
    11  * load/unload and saving/restoring a document from session history.
    12  */
    14 [scriptable, builtinclass, uuid(8a69a3d6-c7da-4caa-993c-7f9583d9f896)]
    15 interface nsIDOMPageTransitionEvent : nsIDOMEvent
    16 {
    17   /**
    18    * Set to true if the document has been or will be persisted across
    19    * firing of the event.  For example, if a document is being cached in
    20    * session history, |persisted| is true for the PageHide event.
    21    */
    22   readonly attribute boolean persisted;
    24   /* Initialize a new pageshow or pagehide event. */
    25   void initPageTransitionEvent(in DOMString typeArg,
    26                                in boolean canBubbleArg,
    27                                in boolean canCancelArg,
    28                                in boolean persisted);
    29 };

mercurial