OLD | NEW |
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 Loading... |
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 // Tells the window manager to start moving the window. OnChangeCompleted is |
| 238 // called on whether the move was canceled. Because there's a delay between |
| 239 // when a client sends this message and when the window manager starts acting |
| 240 // on it, pass the cursor location at the start of the move. |
| 241 PerformWindowMove(uint32 change_id, uint32 window_id, MoveLoopSource source, |
| 242 gfx.mojom.Point cursor); |
| 243 |
| 244 // Tells the window manager to cancel any in progress window move started with |
| 245 // StartWindowMove() and to revert the window bounds to how they were. |
| 246 CancelWindowMove(uint32 window_id); |
236 }; | 247 }; |
237 | 248 |
238 // Changes to windows are not sent to the connection that originated the | 249 // 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 | 250 // change. For example, if connection 1 changes the bounds of a window by |
240 // calling SetWindowBounds(), connection 1 does not receive | 251 // calling SetWindowBounds(), connection 1 does not receive |
241 // OnWindowBoundsChanged(). | 252 // OnWindowBoundsChanged(). |
242 interface WindowTreeClient { | 253 interface WindowTreeClient { |
243 // Invoked when the client application has been embedded at |root|. | 254 // 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 | 255 // 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 | 256 // the window manager service, unless the connection is to the root connection |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 // See description of WindowManager for details. | 380 // See description of WindowManager for details. |
370 GetWindowManager(associated WindowManager& internal); | 381 GetWindowManager(associated WindowManager& internal); |
371 }; | 382 }; |
372 | 383 |
373 // Mus provides this interface as a way for clients to connect and obtain a | 384 // Mus provides this interface as a way for clients to connect and obtain a |
374 // WindowTree handle with a supplied WindowTreeClient handle. The | 385 // WindowTree handle with a supplied WindowTreeClient handle. The |
375 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 386 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
376 interface WindowTreeFactory { | 387 interface WindowTreeFactory { |
377 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 388 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
378 }; | 389 }; |
OLD | NEW |