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

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: Check if can_accept_events setting has changed; change names 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // and cursor locking. 216 // and cursor locking.
217 217
218 // Set text input state for the given window. 218 // Set text input state for the given window.
219 SetWindowTextInputState(uint32 window_id, mojo.TextInputState state); 219 SetWindowTextInputState(uint32 window_id, mojo.TextInputState state);
220 220
221 // Set the input method editor UI (software keyboard, etc) visibility. 221 // Set the input method editor UI (software keyboard, etc) visibility.
222 // If state is non-null, the specified window's text input state is updated. 222 // If state is non-null, the specified window's text input state is updated.
223 // Otherwise the existing state is used. 223 // Otherwise the existing state is used.
224 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); 224 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state);
225 225
226 // Set whether the specified window can accept events.
227 SetCanAcceptEvents(uint32 window_id, bool accept_events);
sadrul 2016/07/12 17:32:33 Update the doc to also explain that if a Window is
riajiang 2016/07/12 18:46:40 Done.
228
226 // See documentation for WindowTreeClient::OnWindowInputEvent(). 229 // See documentation for WindowTreeClient::OnWindowInputEvent().
227 OnWindowInputEventAck(uint32 event_id, EventResult result); 230 OnWindowInputEventAck(uint32 event_id, EventResult result);
228 231
229 // See description of WindowManager for details. 232 // See description of WindowManager for details.
230 GetWindowManagerClient(associated WindowManagerClient& internal); 233 GetWindowManagerClient(associated WindowManagerClient& internal);
231 234
232 // Returns a shared memory segment that contains two 16-bit ints packed into a 235 // Returns a shared memory segment that contains two 16-bit ints packed into a
233 // single Atomic32, which represent the current location of the mouse cursor 236 // single Atomic32, which represent the current location of the mouse cursor
234 // where the location is (x << 16) | y. 237 // where the location is (x << 16) | y.
235 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); 238 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 // See description of WindowManager for details. 383 // See description of WindowManager for details.
381 GetWindowManager(associated WindowManager& internal); 384 GetWindowManager(associated WindowManager& internal);
382 }; 385 };
383 386
384 // Mus provides this interface as a way for clients to connect and obtain a 387 // Mus provides this interface as a way for clients to connect and obtain a
385 // WindowTree handle with a supplied WindowTreeClient handle. The 388 // WindowTree handle with a supplied WindowTreeClient handle. The
386 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 389 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
387 interface WindowTreeFactory { 390 interface WindowTreeFactory {
388 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 391 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
389 }; 392 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698