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

Unified Diff: ui/views/view.h

Issue 2656853002: [Web Payments] Refactor the row display code. (Closed)
Patch Set: Rebase Created 3 years, 11 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 | « chrome/browser/ui/views/payments/payment_sheet_view_controller.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 19118be10fb55da4c34777459a69a2aac8f7ce72..fcbee85c1bf2155eef7639c5b96e75c6980c1b4f 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -617,6 +617,12 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// be the target of an event.
virtual bool CanProcessEventsWithinSubtree() const;
+ // Sets whether this view or any of its descendants are permitted to be the
+ // target of an event.
+ void set_can_process_events_within_subtree(bool can_process) {
+ can_process_events_within_subtree_ = can_process;
+ }
+
// Returns true if the mouse cursor is over |view| and mouse events are
// enabled.
bool IsMouseHovered() const;
@@ -1491,6 +1497,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
mutable bool iterating_;
#endif
+ bool can_process_events_within_subtree_;
+
// Size and disposition ------------------------------------------------------
// This View's bounds in the parent coordinate system.
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698