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

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: Only set accept_events when it's false 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // See documentation for WindowTreeClient::OnWindowInputEvent(). 226 // See documentation for WindowTreeClient::OnWindowInputEvent().
227 OnWindowInputEventAck(uint32 event_id, EventResult result); 227 OnWindowInputEventAck(uint32 event_id, EventResult result);
228 228
229 // See description of WindowManager for details. 229 // See description of WindowManager for details.
230 GetWindowManagerClient(associated WindowManagerClient& internal); 230 GetWindowManagerClient(associated WindowManagerClient& internal);
231 231
232 // Returns a shared memory segment that contains two 16-bit ints packed into a 232 // 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 233 // single Atomic32, which represent the current location of the mouse cursor
234 // where the location is (x << 16) | y. 234 // where the location is (x << 16) | y.
235 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); 235 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer);
236
237 SetAcceptEvents(uint32 window_id, bool accept_events);
sky 2016/07/06 16:21:25 Please add description. I also recommend moving th
riajiang 2016/07/08 17:59:59 Done.
236 }; 238 };
237 239
238 // Changes to windows are not sent to the connection that originated the 240 // Changes to windows are not sent to the connection that originated the
239 // change. For example, if connection 1 changes the bounds of a window by 241 // change. For example, if connection 1 changes the bounds of a window by
240 // calling SetWindowBounds(), connection 1 does not receive 242 // calling SetWindowBounds(), connection 1 does not receive
241 // OnWindowBoundsChanged(). 243 // OnWindowBoundsChanged().
242 interface WindowTreeClient { 244 interface WindowTreeClient {
243 // Invoked when the client application has been embedded at |root|. 245 // Invoked when the client application has been embedded at |root|.
244 // See Embed() on WindowTree for more details. |tree| will be a handle back to 246 // See Embed() on WindowTree for more details. |tree| will be a handle back to
245 // the window manager service, unless the connection is to the root connection 247 // the window manager service, unless the connection is to the root connection
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // See description of WindowManager for details. 371 // See description of WindowManager for details.
370 GetWindowManager(associated WindowManager& internal); 372 GetWindowManager(associated WindowManager& internal);
371 }; 373 };
372 374
373 // Mus provides this interface as a way for clients to connect and obtain a 375 // Mus provides this interface as a way for clients to connect and obtain a
374 // WindowTree handle with a supplied WindowTreeClient handle. The 376 // WindowTree handle with a supplied WindowTreeClient handle. The
375 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 377 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
376 interface WindowTreeFactory { 378 interface WindowTreeFactory {
377 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 379 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
378 }; 380 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698