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.

This commit is contained in:
tbogard%aol.net 2000-04-21 23:31:40 +00:00
Родитель dd4ba745fc
Коммит 8c0297f0d5
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -57,6 +57,7 @@
#include "nsIDocumentCharsetInfo.h" #include "nsIDocumentCharsetInfo.h"
#include "nsIGlobalHistory.h" #include "nsIGlobalHistory.h"
#include "nsIInterfaceRequestor.h" #include "nsIInterfaceRequestor.h"
#include "nsIPrompt.h"
#include "nsIRefreshURI.h" #include "nsIRefreshURI.h"
#include "nsIScriptGlobalObject.h" #include "nsIScriptGlobalObject.h"
#include "nsIScriptGlobalObjectOwner.h" #include "nsIScriptGlobalObjectOwner.h"
@ -126,6 +127,9 @@ friend class nsDSURIContentListener;
friend class nsDSWebProgressListener; friend class nsDSWebProgressListener;
public: public:
// Object Management
nsDocShell();
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS
NS_DECL_NSIDOCSHELL NS_DECL_NSIDOCSHELL
@ -150,11 +154,8 @@ public:
nsISupports* aExtraInfo); nsISupports* aExtraInfo);
static NS_METHOD Create(nsISupports* aOuter, const nsIID& aIID, void** ppv);
protected: protected:
// Object Management // Object Management
nsDocShell();
virtual ~nsDocShell(); virtual ~nsDocShell();
NS_IMETHOD DestroyChildren(); NS_IMETHOD DestroyChildren();
@ -207,7 +208,6 @@ protected:
NS_IMETHOD LoadHistoryEntry(nsISHEntry* aEntry); NS_IMETHOD LoadHistoryEntry(nsISHEntry* aEntry);
// Global History // Global History
NS_IMETHOD EnsureGlobalHistory();
NS_IMETHOD ShouldAddToGlobalHistory(nsIURI* aURI, PRBool* aShouldAdd); NS_IMETHOD ShouldAddToGlobalHistory(nsIURI* aURI, PRBool* aShouldAdd);
NS_IMETHOD AddToGlobalHistory(nsIURI* aURI); NS_IMETHOD AddToGlobalHistory(nsIURI* aURI);
NS_IMETHOD UpdateCurrentGlobalHistory(); NS_IMETHOD UpdateCurrentGlobalHistory();
@ -227,7 +227,8 @@ protected:
// Helper Routines // Helper Routines
nsDocShellInitInfo* InitInfo(); nsDocShellInitInfo* InitInfo();
NS_IMETHOD GetStringBundle(nsIStringBundle** aStringBundle); NS_IMETHOD GetPromptAndStringBundle(nsIPrompt** aPrompt, nsIStringBundle**
aStringBundle);
NS_IMETHOD GetChildOffset(nsIDOMNode* aChild, nsIDOMNode* aParent, NS_IMETHOD GetChildOffset(nsIDOMNode* aChild, nsIDOMNode* aParent,
PRInt32* aOffset); PRInt32* aOffset);
NS_IMETHOD GetRootScrollableView(nsIScrollableView** aOutScrollView); NS_IMETHOD GetRootScrollableView(nsIScrollableView** aOutScrollView);