diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-14 23:45:09 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-14 23:45:09 +0000 |
commit | 613b80638081101368e31300f6e729c720b160e0 (patch) | |
tree | 0b3dc7c7e0dde27abc814d13bdff3a1758ccde2f /chrome/browser/views/star_toggle.cc | |
parent | 41a5ca123f45f471457485e87681c02a21a2f052 (diff) | |
download | chromium_src-613b80638081101368e31300f6e729c720b160e0.zip chromium_src-613b80638081101368e31300f6e729c720b160e0.tar.gz chromium_src-613b80638081101368e31300f6e729c720b160e0.tar.bz2 |
Convert HitTest/GetViewForPoint to use gfx::Point
http://crbug.com/2186
Review URL: http://codereview.chromium.org/7331
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/star_toggle.cc')
-rw-r--r-- | chrome/browser/views/star_toggle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/star_toggle.cc b/chrome/browser/views/star_toggle.cc index 8e34d61..43ebed3e 100644 --- a/chrome/browser/views/star_toggle.cc +++ b/chrome/browser/views/star_toggle.cc @@ -50,7 +50,7 @@ bool StarToggle::OnMouseDragged(const ChromeViews::MouseEvent& e) { } bool StarToggle::OnMousePressed(const ChromeViews::MouseEvent& e) { - if (e.IsLeftMouseButton() && HitTest(WTL::CPoint(e.x(), e.y()))) { + if (e.IsLeftMouseButton() && HitTest(e.location())) { RequestFocus(); return true; } @@ -59,7 +59,7 @@ bool StarToggle::OnMousePressed(const ChromeViews::MouseEvent& e) { void StarToggle::OnMouseReleased(const ChromeViews::MouseEvent& e, bool canceled) { - if (e.IsLeftMouseButton() && HitTest(WTL::CPoint(e.x(), e.y()))) + if (e.IsLeftMouseButton() && HitTest(e.location())) SwitchState(); } |