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. *