| Index: ui/views/widget/widget.h
|
| diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
|
| index e33bb830c139b18a7d88312a8cf80458bc566a95..968c03889db53795348bb3c85ce642442d0578d5 100644
|
| --- a/ui/views/widget/widget.h
|
| +++ b/ui/views/widget/widget.h
|
| @@ -316,6 +316,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
|
| void SetBounds(const gfx::Rect& bounds);
|
| void SetSize(const gfx::Size& size);
|
|
|
| + // Sizes the window to the specified size and centerizes it.
|
| + void CenterWindow(const gfx::Size& size);
|
| +
|
| // Like SetBounds(), but ensures the Widget is fully visible on screen,
|
| // resizing and/or repositioning as necessary. This is only useful for
|
| // non-child widgets.
|
|
|