From e806f0062705e4dc6a021ee7fe4db06de676cd39 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Fri, 4 Aug 2000 14:47:46 +0000 Subject: [PATCH] new method ConstrainPosition provides implementation-dependent on-screen check for top-level windows. bug 31516 r=saari@netscape.com git-svn-id: svn://10.0.0.236/trunk@75585 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/public/nsIWidget.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mozilla/widget/public/nsIWidget.h b/mozilla/widget/public/nsIWidget.h index 3567133bf82..85f84f5a169 100644 --- a/mozilla/widget/public/nsIWidget.h +++ b/mozilla/widget/public/nsIWidget.h @@ -325,6 +325,19 @@ class nsIWidget : public nsISupports { */ NS_IMETHOD IsVisible(PRBool & aState) = 0; + /** + * Perform platform-dependent sanity check on a potential window position. + * This is guaranteed to work only for top-level windows. + * + * @param aX in: an x position expressed in screen coordinates. + * out: the x position constrained to fit on the screen(s). + * @param aY in: an y position expressed in screen coordinates. + * out: the y position constrained to fit on the screen(s). + * @return vapid success indication. but see also the parameters. + * + **/ + NS_IMETHOD ConstrainPosition(PRInt32 *aX, PRInt32 *aY) = 0; + /** * Move this widget. *