docshell/shistory/public/nsISHTransaction.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/shistory/public/nsISHTransaction.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +interface nsISHEntry;
    1.13 +
    1.14 +/**
    1.15 + * The nsISHTransaction.
    1.16 + */
    1.17 +
    1.18 +
    1.19 +[scriptable, uuid(2EDF705F-D252-4971-9F09-71DD0F760DC6)]
    1.20 +interface nsISHTransaction : nsISupports
    1.21 +{
    1.22 +	/**
    1.23 +     * The nsISHEntry for the current transaction
    1.24 +     */
    1.25 +	attribute nsISHEntry sHEntry;
    1.26 +
    1.27 +	/**
    1.28 +	 * The parent of this transaction
    1.29 +	 */
    1.30 +	attribute nsISHTransaction prev;
    1.31 +
    1.32 +	/**
    1.33 +	 * The legitimate child of this transaction 
    1.34 +	 */
    1.35 +	attribute nsISHTransaction next;
    1.36 +
    1.37 +	/**
    1.38 +	 *	Specifies if this transaction should persist.  If not it will be replaced
    1.39 +	 * by new additions to the list.
    1.40 +	 */
    1.41 +	attribute boolean persist;
    1.42 +
    1.43 +	/**
    1.44 +	 * Create a transaction with parent and History Entry 
    1.45 +	 */
    1.46 +	 void create(in nsISHEntry aSHEntry, in nsISHTransaction aPrev);
    1.47 +};
    1.48 +
    1.49 +%{ C++
    1.50 +// {BFD1A792-AD9F-11d3-BDC7-0050040A9B44}
    1.51 +
    1.52 +
    1.53 +#define NS_SHTRANSACTION_CID \
    1.54 +{0xbfd1a792, 0xad9f, 0x11d3, {0xbd, 0xc7, 0x0, 0x50, 0x4, 0xa, 0x9b, 0x44}}
    1.55 +
    1.56 +#define NS_SHTRANSACTION_CONTRACTID \
    1.57 +    "@mozilla.org/browser/session-history-transaction;1"
    1.58 +
    1.59 +%}

mercurial