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

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

Issue 282403002: Remove override of View::HitTestRect() from ImageView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « ui/views/controls/image_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/image_view.cc
diff --git a/ui/views/controls/image_view.cc b/ui/views/controls/image_view.cc
index 8ee1ad90a97ba9d6212a43d3110b6cc5988c3577..5e03cf2bb93666525430b11e8216595b4a2aaa04 100644
--- a/ui/views/controls/image_view.cc
+++ b/ui/views/controls/image_view.cc
@@ -205,11 +205,10 @@ bool ImageView::GetTooltipText(const gfx::Point& p,
return true;
}
-bool ImageView::HitTestRect(const gfx::Rect& rect) const {
- return interactive_ ? View::HitTestRect(rect) : false;
+bool ImageView::CanAcceptEvent(const ui::Event& event) {
+ return interactive_;
sadrul 2014/05/21 15:44:03 Should this be 'interactive_ && View::CanAcceptEve
tdanderson 2014/05/21 21:07:49 Done.
}
-
void ImageView::OnPaintImage(gfx::Canvas* canvas) {
last_paint_scale_ = canvas->image_scale();
last_painted_bitmap_pixels_ = NULL;
« no previous file with comments | « ui/views/controls/image_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698