mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
#4084 "JS events: Mac form element events"
This commit is contained in:
parent
4824d684b1
commit
5c9b83c219
@ -49,6 +49,8 @@ nsMacControl::nsMacControl() : nsWindow()
|
||||
mLastBounds.SetRect(0,0,0,0);
|
||||
mLastValue = 0;
|
||||
mLastHilite = 0;
|
||||
|
||||
AcceptFocusOnClick(PR_FALSE);
|
||||
}
|
||||
|
||||
/**-------------------------------------------------------------------------
|
||||
@ -252,6 +254,16 @@ void nsMacControl::ControlChanged(PRInt32 aNewValue)
|
||||
//
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
NS_IMETHODIMP nsMacControl::Enable(PRBool bState)
|
||||
{
|
||||
Inherited::Enable(bState);
|
||||
Invalidate(PR_FALSE);
|
||||
return NS_OK;
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
NS_IMETHODIMP nsMacControl::Show(PRBool bState)
|
||||
{
|
||||
Inherited::Show(bState);
|
||||
|
@ -47,6 +47,7 @@ public:
|
||||
virtual PRBool DispatchMouseEvent(nsMouseEvent &aEvent);
|
||||
|
||||
// nsIWidget interface
|
||||
NS_IMETHOD Enable(PRBool bState);
|
||||
NS_IMETHOD Show(PRBool aState);
|
||||
NS_IMETHODIMP SetFont(const nsFont &aFont);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user