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

Unified Diff: services/ui/ws/server_window.h

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)
Patch Set: merge 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 | « services/ui/ws/event_dispatcher_unittest.cc ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « services/ui/ws/event_dispatcher_unittest.cc ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698