Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: views/examples/widget_example.cc

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: views/examples/widget_example.cc
===================================================================
--- views/examples/widget_example.cc (revision 85284)
+++ views/examples/widget_example.cc (working copy)
@@ -29,7 +29,7 @@
}
virtual gfx::Size GetPreferredSize(views::View* host) {
- return host->GetPreferredSize();
+ return gfx::Size();
}
private:
@@ -108,7 +108,7 @@
#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 @@
#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.
« no previous file with comments | « views/controls/textfield/native_textfield_views_unittest.cc ('k') | views/focus/accelerator_handler_gtk_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698