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:
@@ -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)
|
||||
{
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user