From 5ccd89354b72d4afbbb0115d357a9350cfafb6cd Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Fri, 21 Apr 2000 23:31:40 +0000 Subject: [PATCH] Made the constructor public to allow the generic factory to be used for creation. Removed the static Create. Removed EnsureGlobalHistory. Global History is now instantiated on startup. Changed GetStringBundle to GetPromptAndStringBundle since most people are always wanting to get both the prompt and the string bundle. git-svn-id: svn://10.0.0.236/trunk@66798 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mozilla/docshell/base/nsDocShell.h b/mozilla/docshell/base/nsDocShell.h index 527ab7fba23..4ac1711066d 100644 --- a/mozilla/docshell/base/nsDocShell.h +++ b/mozilla/docshell/base/nsDocShell.h @@ -57,6 +57,7 @@ #include "nsIDocumentCharsetInfo.h" #include "nsIGlobalHistory.h" #include "nsIInterfaceRequestor.h" +#include "nsIPrompt.h" #include "nsIRefreshURI.h" #include "nsIScriptGlobalObject.h" #include "nsIScriptGlobalObjectOwner.h" @@ -126,6 +127,9 @@ friend class nsDSURIContentListener; friend class nsDSWebProgressListener; public: + // Object Management + nsDocShell(); + NS_DECL_ISUPPORTS NS_DECL_NSIDOCSHELL @@ -150,11 +154,8 @@ public: nsISupports* aExtraInfo); - static NS_METHOD Create(nsISupports* aOuter, const nsIID& aIID, void** ppv); - protected: // Object Management - nsDocShell(); virtual ~nsDocShell(); NS_IMETHOD DestroyChildren(); @@ -207,7 +208,6 @@ protected: NS_IMETHOD LoadHistoryEntry(nsISHEntry* aEntry); // Global History - NS_IMETHOD EnsureGlobalHistory(); NS_IMETHOD ShouldAddToGlobalHistory(nsIURI* aURI, PRBool* aShouldAdd); NS_IMETHOD AddToGlobalHistory(nsIURI* aURI); NS_IMETHOD UpdateCurrentGlobalHistory(); @@ -227,7 +227,8 @@ protected: // Helper Routines nsDocShellInitInfo* InitInfo(); - NS_IMETHOD GetStringBundle(nsIStringBundle** aStringBundle); + NS_IMETHOD GetPromptAndStringBundle(nsIPrompt** aPrompt, nsIStringBundle** + aStringBundle); NS_IMETHOD GetChildOffset(nsIDOMNode* aChild, nsIDOMNode* aParent, PRInt32* aOffset); NS_IMETHOD GetRootScrollableView(nsIScrollableView** aOutScrollView);