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

Unified Diff: ash/launcher/launcher_button.cc

Issue 10827198: Change View::HitTest to View::HitTestRect (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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/launcher/launcher_button.cc
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc
index 00bd697c2811980438e43aff0628f5e03faa5302..e8d71ba6a3652525289a826bcf946e314642ce4f 100644
--- a/ash/launcher/launcher_button.cc
+++ b/ash/launcher/launcher_button.cc
@@ -65,7 +65,7 @@ class LauncherButton::BarView : public views::ImageView,
}
// View overrides.
- bool HitTest(const gfx::Point& l) const OVERRIDE {
+ bool HitTest(const gfx::Rect& r) const OVERRIDE {
// Allow Mouse...() messages to go to the parent view.
return false;
}
@@ -207,7 +207,7 @@ LauncherButton::IconView::IconView() : icon_size_(kIconSize) {
LauncherButton::IconView::~IconView() {
}
-bool LauncherButton::IconView::HitTest(const gfx::Point& l) const {
+bool LauncherButton::IconView::HitTest(const gfx::Rect& r) const {
// Return false so that LauncherButton gets all the mouse events.
return false;
}

Powered by Google App Engine
This is Rietveld 408576698