From a1f4eb5b056e68cbd81829e8b1d459c68649814f Mon Sep 17 00:00:00 2001
From: "sadrul@chromium.org"
 <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Wed, 29 Jun 2011 15:06:04 +0000
Subject: 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
---
 views/view.h | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'views/view.h')

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).
-- 
cgit v1.1