Chromium Code Reviews| Index: ui/views/widget/widget.h |
| diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h |
| index 265ae361f4c3746201ce42a522ca13c3eebe6a46..6490eca62d8e33d5e609f1f652b08daf4942127c 100644 |
| --- a/ui/views/widget/widget.h |
| +++ b/ui/views/widget/widget.h |
| @@ -314,6 +314,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, |
| // Sizes and/or places the widget to the specified bounds, size or position. |
| void SetBounds(const gfx::Rect& bounds); |
| void SetSize(const gfx::Size& size); |
| + void CenterWindow(const gfx::Size& size); |
|
mazda
2012/03/02 07:52:23
Please add comment.
yoshiki
2012/03/02 10:07:57
Done.
|
| // Like SetBounds(), but ensures the Widget is fully visible on screen, |
| // resizing and/or repositioning as necessary. This is only useful for |