зеркало из https://github.com/mozilla/pjs.git
implement GetScreenBounds. fixes gtk version of bug 5998. r:pavlov@netscape.com
This commit is contained in:
Родитель
bc1301151c
Коммит
d10ac39463
|
@ -186,6 +186,8 @@ NS_IMETHODIMP nsWindow::WidgetToScreen(const nsRect& aOldRect, nsRect& aNewRect)
|
||||||
gint x;
|
gint x;
|
||||||
gint y;
|
gint y;
|
||||||
|
|
||||||
|
aNewRect.width = aOldRect.width;
|
||||||
|
aNewRect.height = aOldRect.height;
|
||||||
if (mIsToplevel && mShell)
|
if (mIsToplevel && mShell)
|
||||||
{
|
{
|
||||||
if (mMozArea->window)
|
if (mMozArea->window)
|
||||||
|
@ -2185,6 +2187,12 @@ NS_IMETHODIMP nsWindow::EndResizingChildren(void)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP nsWindow::GetScreenBounds(nsRect &aRect)
|
||||||
|
{
|
||||||
|
WidgetToScreen(mBounds, aRect);
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
PRBool nsWindow::OnKey(nsKeyEvent &aEvent)
|
PRBool nsWindow::OnKey(nsKeyEvent &aEvent)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,8 @@ public:
|
||||||
NS_IMETHOD BeginResizingChildren(void);
|
NS_IMETHOD BeginResizingChildren(void);
|
||||||
NS_IMETHOD EndResizingChildren(void);
|
NS_IMETHOD EndResizingChildren(void);
|
||||||
|
|
||||||
|
NS_IMETHOD GetScreenBounds(nsRect &aRect);
|
||||||
|
|
||||||
NS_IMETHOD CaptureRollupEvents(nsIRollupListener * aListener,
|
NS_IMETHOD CaptureRollupEvents(nsIRollupListener * aListener,
|
||||||
PRBool aDoCapture,
|
PRBool aDoCapture,
|
||||||
PRBool aConsumeRollupEvent);
|
PRBool aConsumeRollupEvent);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче