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

Unified Diff: chrome/browser/ui/views/profiles/avatar_menu_button.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: chrome/browser/ui/views/profiles/avatar_menu_button.cc
diff --git a/chrome/browser/ui/views/profiles/avatar_menu_button.cc b/chrome/browser/ui/views/profiles/avatar_menu_button.cc
index 73bf30d2ca119a0abffd38dab2e31879627d548f..c9bd1a0271f15f6587189ef4efab4e5fbdc91775 100644
--- a/chrome/browser/ui/views/profiles/avatar_menu_button.cc
+++ b/chrome/browser/ui/views/profiles/avatar_menu_button.cc
@@ -76,7 +76,7 @@ void AvatarMenuButton::OnPaint(gfx::Canvas* canvas) {
button_icon_.height(), dst_x, dst_y, dst_width, dst_height, false);
}
-bool AvatarMenuButton::HitTestRect(const gfx::Rect& rect) const {
+bool AvatarMenuButton::HitTestRect(const gfx::RectF& rect) const {
if (disabled_)
return false;
return views::MenuButton::HitTestRect(rect);

Powered by Google App Engine
This is Rietveld 408576698