New Session Hsitory in its own directory.
Initial checkin. r=law a=don git-svn-id: svn://10.0.0.236/trunk@56433 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
37
mozilla/docshell/shistory/public/Makefile.in
Normal file
37
mozilla/docshell/shistory/public/Makefile.in
Normal file
@@ -0,0 +1,37 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = shistory
|
||||
|
||||
XPIDLSRCS = nsISHEntry.idl \
|
||||
nsISHContainer.idl \
|
||||
nsISHTransaction.idl \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
59
mozilla/docshell/shistory/public/nsISHContainer.idl
Normal file
59
mozilla/docshell/shistory/public/nsISHContainer.idl
Normal file
@@ -0,0 +1,59 @@
|
||||
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is the Mozilla browser.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications, Inc. Portions created by Netscape are
|
||||
* Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Radha Kulkarni <radha@netscape.com>
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIEnumerator.idl"
|
||||
#include "nsISHEntry.idl"
|
||||
|
||||
|
||||
/**
|
||||
* The nsISHEntryContainer. The interface to access child entries
|
||||
* of an nsISHEntry.
|
||||
*
|
||||
*/
|
||||
|
||||
[scriptable, uuid(65281BA2-988A-11d3-BDC7-0050040A9B44)]
|
||||
interface nsISHContainer : nsISupports
|
||||
{
|
||||
/**
|
||||
* The current number of nsISHEntries which are immediate children of the
|
||||
* current SHEntry
|
||||
*/
|
||||
readonly attribute long childCount;
|
||||
|
||||
/**
|
||||
* Add a new child SHEntry. Adds to the end of the list.
|
||||
*/
|
||||
void AddChild(in nsISHEntry child);
|
||||
|
||||
/**
|
||||
* Removes a child SHEntry
|
||||
*/
|
||||
void RemoveChild(in nsISHEntry child);
|
||||
|
||||
/**
|
||||
* Enumerator to walk child list.
|
||||
*/
|
||||
readonly attribute nsIEnumerator childEnumerator;
|
||||
|
||||
};
|
||||
|
||||
73
mozilla/docshell/shistory/public/nsISHEntry.idl
Normal file
73
mozilla/docshell/shistory/public/nsISHEntry.idl
Normal file
@@ -0,0 +1,73 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Radha Kulkarni <radha@netscape.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
* The interface to nsISHentry. Each document or subframe in
|
||||
* Session History will have a nsISHEntry associated with it which will
|
||||
* hold all information required to recreate the document from history
|
||||
*
|
||||
*/
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIURI.idl"
|
||||
#include "domstubs.idl"
|
||||
#include "nsIInputStream.idl"
|
||||
|
||||
[scriptable, uuid(65281BA1-988A-11d3-BDC7-0050040A9B44)]
|
||||
interface nsISHEntry : nsISupports
|
||||
{
|
||||
|
||||
/** URI for the document */
|
||||
attribute nsIURI uri;
|
||||
|
||||
/** DOM Document */
|
||||
attribute nsIDOMDocument document;
|
||||
|
||||
/** Title for the document */
|
||||
attribute wstring title;
|
||||
|
||||
/** Post Data for the document */
|
||||
attribute nsIInputStream postData;
|
||||
|
||||
/** LayoutHistoryState for scroll position and form values */
|
||||
attribute nsISupports layoutHistoryState;
|
||||
|
||||
/** Parent of the current entry */
|
||||
attribute nsISHEntry parent;
|
||||
|
||||
/** Additional ways to create an entry */
|
||||
void create(in nsIURI aURI, in wstring aTitle, in nsIDOMDocument aDocument,
|
||||
in nsIInputStream aInputStream, in nsISupports aHistoryLayoutState);
|
||||
|
||||
};
|
||||
|
||||
|
||||
%{ C++
|
||||
// {BFD1A791-AD9F-11d3-BDC7-0050040A9B44}
|
||||
#define NS_SHENTRY_CID \
|
||||
{0xbfd1a791, 0xad9f, 0x11d3, {0xbd, 0xc7, 0x0, 0x50, 0x4, 0xa, 0x9b, 0x44}}
|
||||
|
||||
#define NS_SHENTRY_PROGID \
|
||||
"component://netscape/browser/session-history-entry"
|
||||
|
||||
%}
|
||||
|
||||
72
mozilla/docshell/shistory/public/nsISHTransaction.idl
Normal file
72
mozilla/docshell/shistory/public/nsISHTransaction.idl
Normal file
@@ -0,0 +1,72 @@
|
||||
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is the Mozilla browser.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications, Inc. Portions created by Netscape are
|
||||
* Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Radha Kulkarni <radha@netscape.com>
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsISHEntry.idl"
|
||||
#include "nsIEnumerator.idl"
|
||||
|
||||
|
||||
/**
|
||||
* The nsISHTransaction.
|
||||
*/
|
||||
|
||||
|
||||
[scriptable, uuid(2F0C3A72-988B-11d3-BDC7-0050040A9B44)]
|
||||
interface nsISHTransaction : nsISupports
|
||||
{
|
||||
/**
|
||||
* The nsISHEntry for the current transaction
|
||||
*/
|
||||
readonly attribute nsISHEntry currentSHistoryEntry;
|
||||
|
||||
/**
|
||||
* The parent of this transaction
|
||||
*/
|
||||
readonly attribute nsISHTransaction parent;
|
||||
|
||||
/**
|
||||
* The legitimate child of this transaction
|
||||
*/
|
||||
readonly attribute nsISHTransaction child;
|
||||
|
||||
/**
|
||||
* The *other* children of this transaction.
|
||||
*/
|
||||
readonly attribute nsISHTransaction lrvList;
|
||||
|
||||
/**
|
||||
* Create a transaction with parent and History Entry
|
||||
*/
|
||||
void create(in nsISHEntry aSHEntry, in nsISHTransaction aParent);
|
||||
};
|
||||
|
||||
%{ C++
|
||||
// {BFD1A792-AD9F-11d3-BDC7-0050040A9B44}
|
||||
|
||||
|
||||
#define NS_SHTRANSACTION_CID \
|
||||
{0xbfd1a792, 0xad9f, 0x11d3, {0xbd, 0xc7, 0x0, 0x50, 0x4, 0xa, 0x9b, 0x44}}
|
||||
|
||||
#define NS_SHTRANSACTION_PROGID \
|
||||
"component://netscape/browser/session-history-transaction"
|
||||
|
||||
%}
|
||||
Reference in New Issue
Block a user