implement GetScreenBounds. fixes gtk version of bug 5998. r:pavlov@netscape.com

git-svn-id: svn://10.0.0.236/trunk@57720 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
2000-01-13 23:28:29 +00:00
parent ff4962b0e7
commit bcc30b68dd
2 changed files with 10 additions and 0 deletions

View File

@@ -186,6 +186,8 @@ NS_IMETHODIMP nsWindow::WidgetToScreen(const nsRect& aOldRect, nsRect& aNewRect)
gint x;
gint y;
aNewRect.width = aOldRect.width;
aNewRect.height = aOldRect.height;
if (mIsToplevel && mShell)
{
if (mMozArea->window)
@@ -2185,6 +2187,12 @@ NS_IMETHODIMP nsWindow::EndResizingChildren(void)
return NS_OK;
}
NS_IMETHODIMP nsWindow::GetScreenBounds(nsRect &aRect)
{
WidgetToScreen(mBounds, aRect);
return NS_OK;
}
PRBool nsWindow::OnKey(nsKeyEvent &aEvent)
{

View File

@@ -77,6 +77,8 @@ public:
NS_IMETHOD BeginResizingChildren(void);
NS_IMETHOD EndResizingChildren(void);
NS_IMETHOD GetScreenBounds(nsRect &aRect);
NS_IMETHOD CaptureRollupEvents(nsIRollupListener * aListener,
PRBool aDoCapture,
PRBool aConsumeRollupEvent);