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

Unified Diff: ash/shelf/shelf_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: ash/shelf/shelf_button.cc
diff --git a/ash/shelf/shelf_button.cc b/ash/shelf/shelf_button.cc
index fb255d7fd893814150850f8090c2dafe248a56e1..3b66eea314fd788ccc825722fe63dfe3b9ffbac4 100644
--- a/ash/shelf/shelf_button.cc
+++ b/ash/shelf/shelf_button.cc
@@ -124,7 +124,7 @@ class ShelfButton::BarView : public views::ImageView,
}
// View
- virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE {
+ virtual bool HitTestRect(const gfx::RectF& rect) const OVERRIDE {
// Allow Mouse...() messages to go to the parent view.
return false;
}
@@ -201,7 +201,7 @@ ShelfButton::IconView::IconView() : icon_size_(kIconSize) {
ShelfButton::IconView::~IconView() {
}
-bool ShelfButton::IconView::HitTestRect(const gfx::Rect& rect) const {
+bool ShelfButton::IconView::HitTestRect(const gfx::RectF& rect) const {
// Return false so that ShelfButton gets all the mouse events.
return false;
}

Powered by Google App Engine
This is Rietveld 408576698