fixed event dispatcher code
git-svn-id: svn://10.0.0.236/trunk@3236 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
49cdcfdd1b
commit
c8cb8adbfc
@ -27,6 +27,10 @@
|
||||
NS_DEFINE_IID(kIAppShellIID, NS_IAPPSHELL_IID);
|
||||
NS_IMPL_ISUPPORTS(nsAppShell,kIAppShellIID);
|
||||
|
||||
void nsAppShell::SetDispatchListener(nsDispatchListener* aDispatchListener)
|
||||
{
|
||||
mDispatchListener = aDispatchListener;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
@ -73,6 +77,7 @@ void nsAppShell::Exit()
|
||||
//-------------------------------------------------------------------------
|
||||
nsAppShell::nsAppShell()
|
||||
{
|
||||
mDispatchListener = 0;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
@ -30,8 +30,9 @@
|
||||
class nsAppShell : public nsIAppShell
|
||||
{
|
||||
private:
|
||||
Widget mTopLevel;
|
||||
XtAppContext mAppContext;
|
||||
Widget mTopLevel;
|
||||
XtAppContext mAppContext;
|
||||
nsDispatchListener* mDispatchListener;
|
||||
|
||||
public:
|
||||
nsAppShell();
|
||||
@ -45,6 +46,8 @@ class nsAppShell : public nsIAppShell
|
||||
virtual nsresult Run();
|
||||
virtual void Exit();
|
||||
|
||||
virtual void SetDispatchListener(nsDispatchListener* aDispatchListener);
|
||||
|
||||
virtual void* GetNativeData(PRUint32 aDataType);
|
||||
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user