Adding a new method that will allow caller to check if there pending events in the elder queue. r=sfraser@netscape.com, danm@netscape.com, b=76075

git-svn-id: svn://10.0.0.236/trunk@93112 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2001-04-26 05:28:43 +00:00
parent c650c9da0b
commit 27efadd782
2 changed files with 14 additions and 0 deletions

View File

@@ -337,6 +337,19 @@ nsEventQueueImpl::IsQueueNative(PRBool *aResult)
return NS_OK;
}
NS_IMETHODIMP
nsEventQueueImpl::PendingEvents(PRBool *aResult)
{
*aResult = PL_EventAvailable(mEventQueue);
if (!*aResult && mElderQueue) {
nsCOMPtr<nsIEventQueue> elder(do_QueryInterface(mElderQueue));
if (elder)
return elder->EventAvailable(*aResult);
}
return NS_OK;
}
NS_IMETHODIMP
nsEventQueueImpl::ProcessPendingEvents()
{