From c8d824834b443e68dafe5171d5d6dd4e92ac200a Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Thu, 21 Oct 1999 03:01:33 +0000 Subject: [PATCH] More changes to the interface. Merging in changes from buster. git-svn-id: svn://10.0.0.236/trunk@51350 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsIDocShell.idl | 59 +++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/mozilla/docshell/base/nsIDocShell.idl b/mozilla/docshell/base/nsIDocShell.idl index 210c52107d1..81d16a42765 100644 --- a/mozilla/docshell/base/nsIDocShell.idl +++ b/mozilla/docshell/base/nsIDocShell.idl @@ -18,10 +18,12 @@ * * Contributor(s): * Travis Bogard + * Steve Clark */ #include "nsISupports.idl" #include "domstubs.idl" +#include "nsIPref.idl" /** * The nsIDocShell @@ -37,14 +39,65 @@ {69E5DE01-7B8B-11d3-AF61-00A024FFC08C} - nsIDocShellFile {69E5DE02-7B8B-11d3-AF61-00A024FFC08C} - nsIDocShellEdit {69E5DE03-7B8B-11d3-AF61-00A024FFC08C} - nsIHTMLDocShell - + {69E5DE04-7B8B-11d3-AF61-00A024FFC08C} - nsIDocShellContainer */ +[ptr] native nsIPresContext(nsIPresContext); + [scriptable, uuid(69E5DE00-7B8B-11d3-AF61-00A024FFC08C)] interface nsIDocShell : nsISupports { - void LoadDocument(in wstring url); - void LoadDocumentVia(in wstring url, in unsigned long adapterBinding); + /* + Loads a given URI. This will give priority to loading the requested URI + in the object implementing this interface. If it can't be loaded here + however, the URL dispatcher will go through its normal process of content + loading. + @param uri - The URI to load. + */ + void LoadURI(in wstring uri); + + /* + Loads a given URI through the specified adapter. This will give priority + to loading the requested URI in the object implementing this interface. + If it can't be loaded here however, the URL dispatcher will go through its + normal process of content loading. + + @param uri - The URI to load. + @param adapterBinding - The local IP address of the adapter to bind to. + */ + void LoadURIVia(in wstring uri, in unsigned long adapterBinding); + + /* + The current document that is loaded in the DocShell. When setting this it + will will simulate the normal load process. + */ attribute nsIDOMDocument document; + + /* + name of the DocShell + */ + attribute wstring name; + + /* + Presentation context + */ + attribute nsIPresContext presContext; + + /* + Parent DocShell + */ + attribute nsIDocShell parent; + + /* + Prefs to use for the DocShell. + */ + attribute nsIPref Prefs; + + /* + Returns the root DocShell instance. Since DocShells can be nested + (when frames are present for example) this instance represents the + outermost DocShell. + */ + readonly attribute nsIDocShell rootDocShell; };