| Index: services/ui/ws/server_window.h
|
| diff --git a/services/ui/ws/server_window.h b/services/ui/ws/server_window.h
|
| index 6ae3f2173991a4f61d5ed3d133ef79bcc14f0f96..cdd5034695d74b932b8d45695e41f33541dd88a3 100644
|
| --- a/services/ui/ws/server_window.h
|
| +++ b/services/ui/ws/server_window.h
|
| @@ -164,8 +164,12 @@ class ServerWindow {
|
| void set_can_focus(bool can_focus) { can_focus_ = can_focus; }
|
| bool can_focus() const { return can_focus_; }
|
|
|
| - void set_can_accept_events(bool value) { can_accept_events_ = value; }
|
| - bool can_accept_events() const { return can_accept_events_; }
|
| + void set_event_targeting_policy(mojom::EventTargetingPolicy policy) {
|
| + event_targeting_policy_ = policy;
|
| + }
|
| + mojom::EventTargetingPolicy event_targeting_policy() const {
|
| + return event_targeting_policy_;
|
| + }
|
|
|
| // Returns true if this window is attached to a root and all ancestors are
|
| // visible.
|
| @@ -245,7 +249,8 @@ class ServerWindow {
|
| mojom::Cursor non_client_cursor_id_;
|
| float opacity_;
|
| bool can_focus_;
|
| - bool can_accept_events_;
|
| + mojom::EventTargetingPolicy event_targeting_policy_ =
|
| + mojom::EventTargetingPolicy::TARGET_AND_DESCENDANTS;
|
| gfx::Transform transform_;
|
| ui::TextInputState text_input_state_;
|
|
|
|
|