fixed event dispatcher

This commit is contained in:
rods 1998-06-04 18:53:22 +00:00
parent 571abd809f
commit 176be5581f

View File

@ -15,7 +15,6 @@
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsIAppShell_h__
#define nsIAppShell_h__
@ -28,10 +27,22 @@
#define NS_NATIVE_SHELL 0
#define NS_IAPPSHELL_IID \
{ 0xa0757c31, 0xeeac, 0x11d1, { 0x9e, 0xc1, 0x0, 0xaa, 0x0, 0x2f, 0xb8, 0x21 } };
/**
* During the nsIAppShell Run method notify this listener
* after each message dispatch.
* @see SetDispatchListener member function of nsIAppShell
*/
class nsDispatchListener {
public:
virtual void AfterDispatch() = 0;
};
/**
* Application shell used for Test applications
*/
@ -54,20 +65,20 @@ public:
virtual nsresult Run() = 0;
/**
* After event dispatch execute app specific code
*/
virtual void SetDispatchListener(nsDispatchListener* aDispatchListener) = 0;
/**
* Exit the handle event loop
*/
virtual void Exit() = 0;
/**
* Returns the Native Data
*/
virtual void* GetNativeData(PRUint32 aDataType) = 0;
};
#endif // nsIAppShell_h__