diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-03 19:49:51 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-03 19:49:51 +0000 |
commit | 73e09d25d02a8685a0fc026d0eff69b9e0325350 (patch) | |
tree | 906cbe9af8c9ed2b3a9d11a9f07bf62143ae8140 /views/examples | |
parent | 3c2952a38f505358c9421781cb7374381e1abc1e (diff) | |
download | chromium_src-73e09d25d02a8685a0fc026d0eff69b9e0325350.zip chromium_src-73e09d25d02a8685a0fc026d0eff69b9e0325350.tar.gz chromium_src-73e09d25d02a8685a0fc026d0eff69b9e0325350.tar.bz2 |
Fix compile for views_examples after GetBounds removal.
BUG=none
TEST=views_examples compiles
TBR=ben@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76776 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/examples')
-rw-r--r-- | views/examples/widget_example.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/views/examples/widget_example.cc b/views/examples/widget_example.cc index bf39a35..65de2a3 100644 --- a/views/examples/widget_example.cc +++ b/views/examples/widget_example.cc @@ -122,8 +122,7 @@ void WidgetExample::CreateChild( // Compute where to place the child widget. // We'll place it at the center of the root widget. views::Widget* parent_widget = parent->GetWidget(); - gfx::Rect bounds; - parent_widget->GetBounds(&bounds, false); + gfx::Rect bounds = parent_widget->GetClientAreaScreenBounds(); // Child widget is 200x200 square. bounds.SetRect((bounds.width() - 200) / 2, (bounds.height() - 200) / 2, 200, 200); |