closer to having a modal dialog loop on the Mac

This commit is contained in:
danm@netscape.com
1999-03-24 05:42:21 +00:00
parent ceb47ffcbd
commit 42e9655afe
13 changed files with 374 additions and 205 deletions

View File

@@ -69,8 +69,6 @@ public:
NS_IMETHOD Initialize(void);
NS_IMETHOD Run(void);
NS_IMETHOD GetNativeEvent(void *& aEvent, nsIWebShellWindow* aWindow, PRBool &aIsInWindow, PRBool &aIsMouseEvent);
NS_IMETHOD DispatchNativeEvent(void * aEvent);
NS_IMETHOD Shutdown(void);
NS_IMETHOD CreateTopLevelWindow(nsIWebShellWindow * aParent,
nsIURL* aUrl,
@@ -176,22 +174,6 @@ nsAppShellService::Run(void)
return mAppShell->Run();
}
NS_IMETHODIMP
nsAppShellService::GetNativeEvent(void *& aEvent, nsIWebShellWindow* aWindow, PRBool &aIsInWindow, PRBool &aIsMouseEvent)
{
nsIWidget *windowWidget = nsnull;
if (aWindow != nsnull)
if (NS_FAILED(aWindow->GetWidget(windowWidget)))
windowWidget = nsnull;
return mAppShell->GetNativeEvent(aEvent, windowWidget, aIsInWindow, aIsMouseEvent);
}
NS_IMETHODIMP
nsAppShellService::DispatchNativeEvent(void * aEvent)
{
return mAppShell->DispatchNativeEvent(aEvent);
}
NS_IMETHODIMP
nsAppShellService::Shutdown(void)
{