summaryrefslogtreecommitdiffstats
path: root/chrome/views/link.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 23:45:09 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 23:45:09 +0000
commit613b80638081101368e31300f6e729c720b160e0 (patch)
tree0b3dc7c7e0dde27abc814d13bdff3a1758ccde2f /chrome/views/link.cc
parent41a5ca123f45f471457485e87681c02a21a2f052 (diff)
downloadchromium_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/views/link.cc')
-rw-r--r--chrome/views/link.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/views/link.cc b/chrome/views/link.cc
index 8350a7b..2d04864 100644
--- a/chrome/views/link.cc
+++ b/chrome/views/link.cc
@@ -84,7 +84,7 @@ bool Link::OnMousePressed(const MouseEvent& e) {
bool Link::OnMouseDragged(const MouseEvent& e) {
SetHighlighted(enabled_ &&
(e.IsLeftMouseButton() || e.IsMiddleMouseButton()) &&
- HitTest(WTL::CPoint(e.x(), e.y())));
+ HitTest(e.location()));
return true;
}
@@ -94,7 +94,7 @@ void Link::OnMouseReleased(const MouseEvent& e, bool canceled) {
SetHighlighted(false);
if (enabled_ && !canceled &&
(e.IsLeftMouseButton() || e.IsMiddleMouseButton()) &&
- HitTest(WTL::CPoint(e.x(), e.y()))) {
+ HitTest(e.location())) {
// Focus the link on click.
RequestFocus();