summaryrefslogtreecommitdiffstats
path: root/views/examples/widget_example.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/examples/widget_example.cc')
-rw-r--r--views/examples/widget_example.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/examples/widget_example.cc b/views/examples/widget_example.cc
index 4ec3cbf..daa8c66 100644
--- a/views/examples/widget_example.cc
+++ b/views/examples/widget_example.cc
@@ -29,7 +29,7 @@ class CenterLayout : public views::LayoutManager {
}
virtual gfx::Size GetPreferredSize(views::View* host) {
- return host->GetPreferredSize();
+ return gfx::Size();
}
private:
@@ -108,7 +108,7 @@ void WidgetExample::InitWidget(views::Widget* widget, bool transparent) {
#if defined(OS_LINUX)
void WidgetExample::CreateChild(views::View* parent, bool transparent) {
- views::Widget* widget = views::Widget::CreateWidget();
+ views::Widget* widget = new views::Widget;
// Compute where to place the child widget.
// We'll place it at the center of the root widget.
views::Widget* parent_widget = parent->GetWidget();
@@ -126,7 +126,7 @@ void WidgetExample::CreateChild(views::View* parent, bool transparent) {
#endif
void WidgetExample::CreatePopup(views::View* parent, bool transparent) {
- views::Widget* widget = views::Widget::CreateWidget();
+ views::Widget* widget = new views::Widget;
// Compute where to place the popup widget.
// We'll place it right below the create button.