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

Unified Diff: ui/views/view.h

Issue 297963006: Introduce View::CanProcessEventsWithinSubtree() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed 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.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index f2ecb3df752e42affa11ace5ad82077aa9602137..8ddf734a412d9e1ad82b8523b3afe25b27155d66 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -601,6 +601,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Tests whether |rect| intersects this view's bounds.
virtual bool HitTestRect(const gfx::Rect& rect) const;
+ // Returns true if this view or any of its descendants are permitted to
+ // be the target of an event.
+ virtual bool CanProcessEventsWithinSubtree() const;
+
// Returns true if the mouse cursor is over |view| and mouse events are
// enabled.
bool IsMouseHovered();
« no previous file with comments | « ui/views/controls/image_view.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698