adding method ListenToEventQueue (moving EventQueue observation from appshells to appshellservice) r:hyatt@netscape.com

git-svn-id: svn://10.0.0.236/trunk@51417 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
1999-10-21 21:34:57 +00:00
parent 32ccfffb02
commit 49ae6251f8
14 changed files with 92 additions and 151 deletions

View File

@@ -84,7 +84,7 @@ NS_IMETHODIMP nsAppShell::Create(int* argc, char ** argv)
// Enter a message handler loop
//
//-------------------------------------------------------------------------
NS_IMETHODIMP nsAppShell::Run()
NS_IMETHODIMP nsAppShell::Run(void)
{
if (!mMacPump.get())
return NS_ERROR_NOT_INITIALIZED;
@@ -110,7 +110,7 @@ NS_IMETHODIMP nsAppShell::Run()
// Exit appshell
//
//-------------------------------------------------------------------------
NS_IMETHODIMP nsAppShell::Exit()
NS_IMETHODIMP nsAppShell::Exit(void)
{
if (mMacPump.get())
{
@@ -124,12 +124,22 @@ NS_IMETHODIMP nsAppShell::Exit()
return NS_OK;
}
//-------------------------------------------------------------------------
//
// respond to notifications that an event queue has come or gone
//
//-------------------------------------------------------------------------
NS_IMETHODIMP nsAppShell::ListenToEventQueue(nsIEventQueue * aQueue, PRBool aListen)
{ // unnecessary; handled elsewhere
return NS_OK;
}
//-------------------------------------------------------------------------
//
// Prepare to process events
//
//-------------------------------------------------------------------------
NS_IMETHODIMP nsAppShell::Spinup()
NS_IMETHODIMP nsAppShell::Spinup(void)
{
if (mMacPump.get())
{
@@ -144,7 +154,7 @@ NS_IMETHODIMP nsAppShell::Spinup()
// Stop being prepared to process events.
//
//-------------------------------------------------------------------------
NS_IMETHODIMP nsAppShell::Spindown()
NS_IMETHODIMP nsAppShell::Spindown(void)
{
if (mMacPump.get())
mMacPump->StopRunning();