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

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: Ordering; etc 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
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 the specified
242 // window is not accepting events, none of its descendent windows would
dcheng 2016/07/13 14:32:59 Super minor nit: a slightly more standard phrasing
riajiang 2016/07/13 18:03:49 Done.
243 // be able to accept events either.
244 SetCanAcceptEvents(uint32 window_id, bool accept_events);
245
241 // See documentation for WindowTreeClient::OnWindowInputEvent(). 246 // See documentation for WindowTreeClient::OnWindowInputEvent().
242 OnWindowInputEventAck(uint32 event_id, EventResult result); 247 OnWindowInputEventAck(uint32 event_id, EventResult result);
243 248
244 // See description of WindowManager for details. 249 // See description of WindowManager for details.
245 GetWindowManagerClient(associated WindowManagerClient& internal); 250 GetWindowManagerClient(associated WindowManagerClient& internal);
246 251
247 // Returns a shared memory segment that contains two 16-bit ints packed into a 252 // 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 253 // single Atomic32, which represent the current location of the mouse cursor
249 // where the location is (x << 16) | y. 254 // where the location is (x << 16) | y.
250 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); 255 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. 400 // See description of WindowManager for details.
396 GetWindowManager(associated WindowManager& internal); 401 GetWindowManager(associated WindowManager& internal);
397 }; 402 };
398 403
399 // Mus provides this interface as a way for clients to connect and obtain a 404 // Mus provides this interface as a way for clients to connect and obtain a
400 // WindowTree handle with a supplied WindowTreeClient handle. The 405 // WindowTree handle with a supplied WindowTreeClient handle. The
401 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 406 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
402 interface WindowTreeFactory { 407 interface WindowTreeFactory {
403 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 408 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
404 }; 409 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698