summaryrefslogtreecommitdiffstats
path: root/views/examples
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 04:23:18 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 04:23:18 +0000
commit9defbadcf3f4b51b959f3e9a5972ca651e8578fe (patch)
tree3932f38d3d2e8ea9c5c09cbb1ea371092fbf9b24 /views/examples
parentec8f51164d477d8d83726fe61c68977d17b03149 (diff)
downloadchromium_src-9defbadcf3f4b51b959f3e9a5972ca651e8578fe.zip
chromium_src-9defbadcf3f4b51b959f3e9a5972ca651e8578fe.tar.gz
chromium_src-9defbadcf3f4b51b959f3e9a5972ca651e8578fe.tar.bz2
Clean up RTL methods.
No one used the non-RTL version of GetBounds(), so I renamed it GetMirroredBounds() and got rid of the enum. Same for GetX(), consolidated with MirroredX() into GetMirroredX(). GetPosition() already took into account mirroring, so renamed GetMirroredPosition() for symmetry. Renamed the other functions to be getters. De-inlined a few that were doing complex looking stuff. http://crbug.com/72040 TEST=none Review URL: http://codereview.chromium.org/6334152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74087 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/examples')
-rw-r--r--views/examples/widget_example.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/examples/widget_example.cc b/views/examples/widget_example.cc
index 7a6084e..bf39a35 100644
--- a/views/examples/widget_example.cc
+++ b/views/examples/widget_example.cc
@@ -144,7 +144,7 @@ void WidgetExample::CreatePopup(
// Compute where to place the popup widget.
// We'll place it right below the create button.
- gfx::Point point = parent->GetPosition();
+ gfx::Point point = parent->GetMirroredPosition();
// The position in point is relative to the parent. Make it absolute.
views::View::ConvertPointToScreen(parent, &point);
// Add the height of create_button_.