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

Side by Side Diff: services/ui/public/interfaces/window_tree.mojom

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 unified diff | Download patch
« no previous file with comments | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/ws/access_policy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module ui.mojom; 5 module ui.mojom;
6 6
7 import "cc/ipc/surface_id.mojom"; 7 import "cc/ipc/surface_id.mojom";
8 import "services/ui/public/interfaces/cursor.mojom"; 8 import "services/ui/public/interfaces/cursor.mojom";
9 import "services/ui/public/interfaces/event_matcher.mojom"; 9 import "services/ui/public/interfaces/event_matcher.mojom";
10 import "services/ui/public/interfaces/mus_constants.mojom"; 10 import "services/ui/public/interfaces/mus_constants.mojom";
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // and cursor locking. 231 // and cursor locking.
232 232
233 // Set text input state for the given window. 233 // Set text input state for the given window.
234 SetWindowTextInputState(uint32 window_id, mojo.TextInputState state); 234 SetWindowTextInputState(uint32 window_id, mojo.TextInputState state);
235 235
236 // Set the input method editor UI (software keyboard, etc) visibility. 236 // Set the input method editor UI (software keyboard, etc) visibility.
237 // If state is non-null, the specified window's text input state is updated. 237 // If state is non-null, the specified window's text input state is updated.
238 // Otherwise the existing state is used. 238 // Otherwise the existing state is used.
239 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); 239 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state);
240 240
241 // Set whether the specified window can accept events. If a window does not
242 // accept events, none of its descendant windows accept events either.
243 SetCanAcceptEvents(uint32 window_id, bool accept_events);
244
241 // See documentation for WindowTreeClient::OnWindowInputEvent(). 245 // See documentation for WindowTreeClient::OnWindowInputEvent().
242 OnWindowInputEventAck(uint32 event_id, EventResult result); 246 OnWindowInputEventAck(uint32 event_id, EventResult result);
243 247
244 // See description of WindowManager for details. 248 // See description of WindowManager for details.
245 GetWindowManagerClient(associated WindowManagerClient& internal); 249 GetWindowManagerClient(associated WindowManagerClient& internal);
246 250
247 // Returns a shared memory segment that contains two 16-bit ints packed into a 251 // Returns a shared memory segment that contains two 16-bit ints packed into a
248 // single Atomic32, which represent the current location of the mouse cursor 252 // single Atomic32, which represent the current location of the mouse cursor
249 // where the location is (x << 16) | y. 253 // where the location is (x << 16) | y.
250 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); 254 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // See description of WindowManager for details. 399 // See description of WindowManager for details.
396 GetWindowManager(associated WindowManager& internal); 400 GetWindowManager(associated WindowManager& internal);
397 }; 401 };
398 402
399 // Mus provides this interface as a way for clients to connect and obtain a 403 // Mus provides this interface as a way for clients to connect and obtain a
400 // WindowTree handle with a supplied WindowTreeClient handle. The 404 // WindowTree handle with a supplied WindowTreeClient handle. The
401 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 405 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
402 interface WindowTreeFactory { 406 interface WindowTreeFactory {
403 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 407 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
404 }; 408 };
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/ws/access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698