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

Unified Diff: services/ui/public/cpp/window.h

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 4 years, 5 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/public/cpp/tests/test_window_tree.cc ('k') | services/ui/public/cpp/window_tree_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/window.h
diff --git a/services/ui/public/cpp/window.h b/services/ui/public/cpp/window.h
index c902e58eee4acff2e19626e1374ba64e0109ade0..fc5efd9eb419511e94ebba6c6767a080399af3c9 100644
--- a/services/ui/public/cpp/window.h
+++ b/services/ui/public/cpp/window.h
@@ -209,6 +209,9 @@ class Window {
bool HasFocus() const;
void SetCanFocus(bool can_focus);
+ // Sets whether this window accepts events.
+ void SetCanAcceptEvents(bool can_accept_events);
+
// Embedding. See window_tree.mojom for details.
void Embed(ui::mojom::WindowTreeClientPtr client, uint32_t flags = 0);
@@ -339,6 +342,10 @@ class Window {
float opacity_;
int64_t display_id_;
+ // Whether this window can accept events. Initialized to true to
+ // match ServerWindow.
+ bool can_accept_events_ = true;
+
mojom::Cursor cursor_id_;
SharedProperties properties_;
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.cc ('k') | services/ui/public/cpp/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698