mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Changed DispatchMouseEvent to take a & (ref).
This commit is contained in:
parent
fadc4d4beb
commit
83b9b44800
@ -1210,7 +1210,7 @@ PRBool nsWindow::DispatchEvent(nsGUIEvent* event)
|
||||
// Deal with all sort of mouse event
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
PRBool nsWindow::DispatchMouseEvent(nsMouseEvent aEvent)
|
||||
PRBool nsWindow::DispatchMouseEvent(nsMouseEvent& aEvent)
|
||||
{
|
||||
PRBool result = PR_FALSE;
|
||||
if (nsnull == mEventCallback && nsnull == mMouseListener) {
|
||||
@ -1510,3 +1510,4 @@ extern "C" void nsWindow_ResizeWidget(Widget w)
|
||||
win->SetResized(PR_TRUE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -122,7 +122,7 @@ public:
|
||||
|
||||
static PRBool ConvertStatus(nsEventStatus aStatus);
|
||||
virtual PRBool DispatchEvent(nsGUIEvent* event);
|
||||
virtual PRBool DispatchMouseEvent(nsMouseEvent aEvent);
|
||||
virtual PRBool DispatchMouseEvent(nsMouseEvent& aEvent);
|
||||
|
||||
virtual void OnDestroy();
|
||||
virtual PRBool OnPaint(nsPaintEvent &event);
|
||||
|
Loading…
Reference in New Issue
Block a user