mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Bug 3322: NS_CONTROL_CHANGE events call ControlChanged on the form frame.
This commit is contained in:
parent
ff3c5ccf00
commit
c43e4a93e8
@ -607,6 +607,9 @@ NS_METHOD nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext,
|
|||||||
case NS_MOUSE_EXIT:
|
case NS_MOUSE_EXIT:
|
||||||
mLastMouseState = eMouseNone;
|
mLastMouseState = eMouseNone;
|
||||||
break;
|
break;
|
||||||
|
case NS_CONTROL_CHANGE:
|
||||||
|
ControlChanged(&aPresContext);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +133,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void MouseClicked(nsIPresContext* aPresContext) {}
|
virtual void MouseClicked(nsIPresContext* aPresContext) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Respond to a control change (e.g. combo box close-up)
|
||||||
|
*/
|
||||||
|
virtual void ControlChanged(nsIPresContext* aPresContext) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform opertations after the widget associated with this frame has been
|
* Perform opertations after the widget associated with this frame has been
|
||||||
* created.
|
* created.
|
||||||
|
@ -607,6 +607,9 @@ NS_METHOD nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext,
|
|||||||
case NS_MOUSE_EXIT:
|
case NS_MOUSE_EXIT:
|
||||||
mLastMouseState = eMouseNone;
|
mLastMouseState = eMouseNone;
|
||||||
break;
|
break;
|
||||||
|
case NS_CONTROL_CHANGE:
|
||||||
|
ControlChanged(&aPresContext);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +133,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void MouseClicked(nsIPresContext* aPresContext) {}
|
virtual void MouseClicked(nsIPresContext* aPresContext) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Respond to a control change (e.g. combo box close-up)
|
||||||
|
*/
|
||||||
|
virtual void ControlChanged(nsIPresContext* aPresContext) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform opertations after the widget associated with this frame has been
|
* Perform opertations after the widget associated with this frame has been
|
||||||
* created.
|
* created.
|
||||||
|
Loading…
Reference in New Issue
Block a user