ported AddMouseListener() and AddEventListener() from Windows
git-svn-id: svn://10.0.0.236/trunk@9425 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4757c8e0e4
commit
0f30acf71c
@ -815,6 +815,8 @@ void nsWindow::SetTitle(const nsString& aTitle)
|
||||
//-------------------------------------------------------------------------
|
||||
void nsWindow::AddMouseListener(nsIMouseListener * aListener)
|
||||
{
|
||||
NS_PRECONDITION(mMouseListener == nsnull, "Null mouse listener");
|
||||
mMouseListener = aListener;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@ -824,6 +826,8 @@ void nsWindow::AddMouseListener(nsIMouseListener * aListener)
|
||||
//-------------------------------------------------------------------------
|
||||
void nsWindow::AddEventListener(nsIEventListener * aListener)
|
||||
{
|
||||
NS_PRECONDITION(mEventListener == nsnull, "Null event listener");
|
||||
mEventListener = aListener;
|
||||
}
|
||||
|
||||
PRBool nsWindow::ConvertStatus(nsEventStatus aStatus)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user