basic implementation of new method nsIWidget::IsEnabled. bug 126786 r=hyatt,rginda a=asa
git-svn-id: svn://10.0.0.236/trunk@115525 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user