Chromium Code Reviews| 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..5d74e4f7c64f61cdd0239a373cfb46f35ae90548 100644 |
| --- a/services/ui/public/cpp/window.h |
| +++ b/services/ui/public/cpp/window.h |
| @@ -209,6 +209,11 @@ class Window { |
| bool HasFocus() const; |
| void SetCanFocus(bool can_focus); |
| + // Sets whether this window accepts events. |
| + // Only calls ui::WindowTreeClient's SetCanAcceptEvents if the new |
|
msw
2016/07/13 01:04:19
nit: Ah, this was a description of the function's
riajiang
2016/07/13 18:03:49
Removed
|
| + // setting is different from the current one. |
| + 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 +344,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_; |