mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
Removed SelectionMgr
This commit is contained in:
parent
2fbe4c3e49
commit
8272b88f90
@ -51,7 +51,6 @@ CPPSRCS = \
|
||||
nsDialog.cpp \
|
||||
nsLabel.cpp \
|
||||
nsToolkit.cpp \
|
||||
nsSelectionMgr.cpp \
|
||||
nsStringUtil.cpp \
|
||||
$(NULL)
|
||||
|
||||
@ -86,7 +85,6 @@ OBJS = \
|
||||
.\$(OBJDIR)\nsDialog.obj \
|
||||
.\$(OBJDIR)\nsLabel.obj \
|
||||
.\$(OBJDIR)\nsToolkit.obj \
|
||||
.\$(OBJDIR)\nsSelectionMgr.obj \
|
||||
.\$(OBJDIR)\nsStringUtil.obj \
|
||||
$(NULL)
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
#include "nsAppShell.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "nsSelectionMgr.h"
|
||||
#include <windows.h>
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsAppShell, NS_IAPPSHELL_IID)
|
||||
@ -32,7 +31,6 @@ nsAppShell::nsAppShell()
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
mDispatchListener = 0;
|
||||
mSelectionMgr = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -45,10 +43,6 @@ nsAppShell::nsAppShell()
|
||||
|
||||
NS_METHOD nsAppShell::Create(int* argc, char ** argv)
|
||||
{
|
||||
// Create the selection manager
|
||||
if (!mSelectionMgr)
|
||||
NS_NewSelectionMgr(&mSelectionMgr);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -189,7 +183,6 @@ NS_METHOD nsAppShell::Exit()
|
||||
//-------------------------------------------------------------------------
|
||||
nsAppShell::~nsAppShell()
|
||||
{
|
||||
NS_IF_RELEASE(mSelectionMgr);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@ -205,13 +198,4 @@ void* nsAppShell::GetNativeData(PRUint32 aDataType)
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
NS_METHOD
|
||||
nsAppShell::GetSelectionMgr(nsISelectionMgr** aSelectionMgr)
|
||||
{
|
||||
*aSelectionMgr = mSelectionMgr;
|
||||
NS_IF_ADDREF(mSelectionMgr);
|
||||
if (!mSelectionMgr)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -49,11 +49,9 @@ class nsAppShell : public nsIAppShell
|
||||
NS_IMETHOD SetDispatchListener(nsDispatchListener* aDispatchListener);
|
||||
NS_IMETHOD Exit();
|
||||
virtual void * GetNativeData(PRUint32 aDataType);
|
||||
NS_IMETHOD GetSelectionMgr(nsISelectionMgr** aSelectionMgr);
|
||||
|
||||
private:
|
||||
nsDispatchListener* mDispatchListener;
|
||||
nsISelectionMgr *mSelectionMgr;
|
||||
};
|
||||
|
||||
#endif // nsAppShell_h__
|
||||
|
Loading…
Reference in New Issue
Block a user