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

This commit is contained in:
danm%netscape.com 2000-01-13 23:28:29 +00:00
Родитель bc1301151c
Коммит d10ac39463
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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);