From 8a71c22a7d5de8171353cbb43ea2dad60c8bfe0c Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Thu, 28 Feb 2002 23:34:51 +0000 Subject: [PATCH] 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 --- mozilla/widget/src/beos/nsWindow.cpp | 11 +++++++++-- mozilla/widget/src/beos/nsWindow.h | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/mozilla/widget/src/beos/nsWindow.cpp b/mozilla/widget/src/beos/nsWindow.cpp index 8a3bb5206db..c2cbd952732 100644 --- a/mozilla/widget/src/beos/nsWindow.cpp +++ b/mozilla/widget/src/beos/nsWindow.cpp @@ -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 diff --git a/mozilla/widget/src/beos/nsWindow.h b/mozilla/widget/src/beos/nsWindow.h index 45d50833c21..c9063e3dcc8 100644 --- a/mozilla/widget/src/beos/nsWindow.h +++ b/mozilla/widget/src/beos/nsWindow.h @@ -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);