| Index: ui/views/widget/widget.cc
|
| ===================================================================
|
| --- ui/views/widget/widget.cc (revision 177189)
|
| +++ ui/views/widget/widget.cc (working copy)
|
| @@ -221,15 +221,8 @@
|
|
|
| // static
|
| Widget* Widget::CreateWindow(WidgetDelegate* delegate) {
|
| - return CreateWindowWithBounds(delegate, gfx::Rect());
|
| -}
|
| -
|
| -// static
|
| -Widget* Widget::CreateWindowWithBounds(WidgetDelegate* delegate,
|
| - const gfx::Rect& bounds) {
|
| Widget* widget = new Widget;
|
| Widget::InitParams params;
|
| - params.bounds = bounds;
|
| params.delegate = delegate;
|
| params.top_level = true;
|
| widget->Init(params);
|
| @@ -237,6 +230,12 @@
|
| }
|
|
|
| // static
|
| +Widget* Widget::CreateWindowWithBounds(WidgetDelegate* delegate,
|
| + const gfx::Rect& bounds) {
|
| + return CreateWindowWithParentAndBounds(delegate, NULL, bounds);
|
| +}
|
| +
|
| +// static
|
| Widget* Widget::CreateWindowWithParent(WidgetDelegate* delegate,
|
| gfx::NativeWindow parent) {
|
| return CreateWindowWithParentAndBounds(delegate, parent, gfx::Rect());
|
|
|