| 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.
|
|
|