зеркало из https://github.com/mozilla/gecko-dev.git
Removing the old session history code.
This commit is contained in:
Родитель
b4caf7e667
Коммит
d39298580d
|
@ -44,7 +44,6 @@ CPPSRCS = \
|
|||
nsFileLocations.cpp \
|
||||
nsNetSupportDialog.cpp \
|
||||
nsWindowMediator.cpp \
|
||||
nsSessionHistory.cpp \
|
||||
nsDialogParamBlock.cpp \
|
||||
nsCommonDialogs.cpp \
|
||||
nsAbout.cpp \
|
||||
|
|
|
@ -42,7 +42,6 @@ CPPSRCS= \
|
|||
nsFileLocations.cpp \
|
||||
nsNetSupportDialog.cpp \
|
||||
nsWindowMediator.cpp \
|
||||
nsSessionHistory.cpp \
|
||||
nsDialogParamBlock.cpp \
|
||||
nsCommonDialogs.cpp \
|
||||
nsAbout.cpp \
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include "nsIFileLocator.h"
|
||||
#include "nsINetSupportDialogService.h"
|
||||
#include "nsIWindowMediator.h"
|
||||
#include "nsISessionHistory.h"
|
||||
#include "rdf.h"
|
||||
#include "nsICommonDialogs.h"
|
||||
#include "nsIDialogParamBlock.h"
|
||||
|
@ -42,7 +41,6 @@
|
|||
#include "nsAppShellService.h"
|
||||
#include "nsXPConnectFactory.h"
|
||||
#include "nsWindowMediator.h"
|
||||
#include "nsSessionHistory.h"
|
||||
#include "nsCommonDialogs.h"
|
||||
#include "nsDialogParamBlock.h"
|
||||
#include "nsFileLocations.h"
|
||||
|
@ -58,7 +56,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsAppShellService);
|
|||
NS_GENERIC_FACTORY_CONSTRUCTOR(XPConnectFactoryImpl);
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNetSupportDialog);
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindowMediator);
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSessionHistory);
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCommonDialogs);
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDialogParamBlock);
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsFileLocator);
|
||||
|
@ -91,11 +88,6 @@ static nsModuleComponentInfo gAppShellModuleInfo[] =
|
|||
NS_RDF_DATASOURCE_PROGID_PREFIX "window-mediator",
|
||||
nsWindowMediatorConstructor,
|
||||
},
|
||||
{ "Session History",
|
||||
NS_SESSIONHISTORY_CID,
|
||||
NULL,
|
||||
nsSessionHistoryConstructor,
|
||||
},
|
||||
{ "Common Dialogs",
|
||||
NS_CommonDialog_CID,
|
||||
"component://netscape/appshell/commonDialogs",
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,74 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* 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 Communicator client 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):
|
||||
*/
|
||||
|
||||
#ifndef __nsSessionHistory_h
|
||||
#define __nsSessionHistory_h
|
||||
|
||||
#include "nsISessionHistory.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsAppShellCIDs.h"
|
||||
|
||||
// Advance declarations
|
||||
class nsHistoryEntry;
|
||||
|
||||
class nsSessionHistory: public nsISessionHistory
|
||||
{
|
||||
|
||||
public:
|
||||
nsSessionHistory();
|
||||
|
||||
//nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_DEFINE_STATIC_CID_ACCESSOR( NS_SESSIONHISTORY_CID )
|
||||
|
||||
NS_DECL_NSISESSIONHISTORY
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~nsSessionHistory();
|
||||
|
||||
private:
|
||||
PRInt32 mHistoryLength;
|
||||
PRInt32 mHistoryCurrentIndex;
|
||||
nsVoidArray mHistoryEntries;
|
||||
|
||||
/** Following member is used to identify whether we are in the
|
||||
* middle of loading a history document. The mIsLoadingDoc flag is
|
||||
* used to determine whether the document that is curently loaded
|
||||
* in the window s'd go to the end of the historylist or to be
|
||||
* handed over to the current history entry (mIndexOfHistoryInLoad)
|
||||
* that is in the process of loading. The current history entry
|
||||
* being loaded uses this new historyentry to decide whether the
|
||||
* document is completely in par with the one in history. If not, it
|
||||
* will initiate further loads. When the document currently loaded is
|
||||
* completely on par with the one in history, it will clear the
|
||||
* mIsLoadingDoc flag. Any new URL loaded from then on, will go to the
|
||||
* end of the history list. Note: these members are static.
|
||||
*/
|
||||
PRBool mIsLoadingDoc;
|
||||
nsHistoryEntry * mHistoryEntryInLoad;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Загрузка…
Ссылка в новой задаче