Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1173)

Unified Diff: ui/views/controls/link.cc

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/link.cc
diff --git a/ui/views/controls/link.cc b/ui/views/controls/link.cc
index 84ff1de5eebdbb317658fb15fd62b16ba14b6c00..9ca7d1b7cc8ac8a5bc941c26a4794c0238b1e0aa 100644
--- a/ui/views/controls/link.cc
+++ b/ui/views/controls/link.cc
@@ -51,7 +51,7 @@ gfx::NativeCursor Link::GetCursor(const ui::MouseEvent& event) {
return GetNativeHandCursor();
}
-bool Link::HitTestRect(const gfx::Rect& rect) const {
+bool Link::HitTestRect(const gfx::RectF& rect) const {
// We need to allow clicks on the link. So we override the implementation in
// Label and use the default implementation of View.
return View::HitTestRect(rect);

Powered by Google App Engine
This is Rietveld 408576698