summaryrefslogtreecommitdiffstats
path: root/views/view.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 15:06:04 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 15:06:04 +0000
commita1f4eb5b056e68cbd81829e8b1d459c68649814f (patch)
treee065d24054d09e8861372977f1ad9b8f3b3d2da6 /views/view.h
parent3973da97f5942403c845e2427f365bb0f99ee23d (diff)
downloadchromium_src-a1f4eb5b056e68cbd81829e8b1d459c68649814f.zip
chromium_src-a1f4eb5b056e68cbd81829e8b1d459c68649814f.tar.gz
chromium_src-a1f4eb5b056e68cbd81829e8b1d459c68649814f.tar.bz2
Convert the rect to the widget's coordinates correctly.
BUG=none TEST=none Review URL: http://codereview.chromium.org/7276053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r--views/view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/view.h b/views/view.h
index a76b125..629e400 100644
--- a/views/view.h
+++ b/views/view.h
@@ -429,6 +429,10 @@ class View : public AcceleratorTarget {
// system, to convert it into the parent's coordinate system.
gfx::Rect ConvertRectToParent(const gfx::Rect& rect) const;
+ // Converts a rectangle from this views coordinate system to its widget
+ // cooridnate system.
+ gfx::Rect ConvertRectToWidget(const gfx::Rect& rect) const;
+
// Painting ------------------------------------------------------------------
// Mark all or part of the View's bounds as dirty (needing repaint).