mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
basic implementation of new method nsIWidget::IsEnabled. bug 126786 r=hyatt,rginda a=asa
This commit is contained in:
parent
bfc5f51129
commit
355f7ae8cc
@ -1146,12 +1146,12 @@ NS_METHOD nsWindow::Resize(PRInt32 aX,
|
||||
// Enable/disable this component
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
NS_METHOD nsWindow::Enable(PRBool bState)
|
||||
NS_METHOD nsWindow::Enable(PRBool aState)
|
||||
{
|
||||
if(mView && mView->LockLooper()) {
|
||||
if (mView->Window()) {
|
||||
uint flags = mView->Window()->Flags();
|
||||
if (bState == PR_TRUE) {
|
||||
if (aState == PR_TRUE) {
|
||||
flags &= ~(B_AVOID_FRONT|B_AVOID_FOCUS);
|
||||
} else {
|
||||
flags |= B_AVOID_FRONT|B_AVOID_FOCUS;
|
||||
@ -1164,6 +1164,13 @@ NS_METHOD nsWindow::Enable(PRBool bState)
|
||||
}
|
||||
|
||||
|
||||
NS_METHOD nsWindow::IsEnabled(PRBool *aState)
|
||||
{
|
||||
// looks easy enough, but...
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Give the focus to this component
|
||||
|
@ -124,7 +124,8 @@ public:
|
||||
PRInt32 aWidth,
|
||||
PRInt32 aHeight,
|
||||
PRBool aRepaint);
|
||||
NS_IMETHOD Enable(PRBool bState);
|
||||
NS_IMETHOD Enable(PRBool aState);
|
||||
NS_IMETHOD IsEnabled(PRBool *aState);
|
||||
NS_IMETHOD SetFocus(PRBool aRaise);
|
||||
NS_IMETHOD GetBounds(nsRect &aRect);
|
||||
NS_IMETHOD GetClientBounds(nsRect &aRect);
|
||||
|
Loading…
Reference in New Issue
Block a user