зеркало из https://github.com/mozilla/gecko-dev.git
base implementation of new method GetScreenBounds. part of bug 5998. r:pierre.
This commit is contained in:
Родитель
d2ec27a11f
Коммит
afc43c4cd4
|
@ -554,6 +554,15 @@ NS_METHOD nsBaseWidget::GetBounds(nsRect &aRect)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* If the implementation of nsWindow uses a local coordinate system within the window,
|
||||
* this method must be overridden
|
||||
*
|
||||
**/
|
||||
NS_METHOD nsBaseWidget::GetScreenBounds(nsRect &aRect)
|
||||
{
|
||||
return GetBounds(aRect);
|
||||
}
|
||||
|
||||
/**
|
||||
* If the implementation of nsWindow supports borders this method MUST be overridden
|
||||
|
|
|
@ -91,6 +91,7 @@ public:
|
|||
NS_IMETHOD GetBounds(nsRect &aRect);
|
||||
NS_IMETHOD GetBoundsAppUnits(nsRect &aRect, float aAppUnits);
|
||||
NS_IMETHOD GetClientBounds(nsRect &aRect);
|
||||
NS_IMETHOD GetScreenBounds(nsRect &aRect);
|
||||
NS_IMETHOD GetBorderSize(PRInt32 &aWidth, PRInt32 &aHeight);
|
||||
NS_IMETHOD Paint(nsIRenderingContext& aRenderingContext, const nsRect& aDirtyRect);
|
||||
NS_IMETHOD ScrollRect(nsRect &aRect, PRInt32 aDx, PRInt32 aDy);
|
||||
|
|
Загрузка…
Ссылка в новой задаче