| 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_info.mojom"; | 7 import "cc/ipc/surface_info.mojom"; |
| 8 import "cc/ipc/mojo_compositor_frame_sink.mojom"; | 8 import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
| 9 import "services/ui/public/interfaces/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor.mojom"; |
| 10 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // Otherwise the existing state is used. | 253 // Otherwise the existing state is used. |
| 254 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); | 254 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); |
| 255 | 255 |
| 256 // Set whether the specified window can accept events. If a window does not | 256 // Set whether the specified window can accept events. If a window does not |
| 257 // accept events, none of its descendant windows accept events either. | 257 // accept events, none of its descendant windows accept events either. |
| 258 SetCanAcceptEvents(uint32 window_id, bool accept_events); | 258 SetCanAcceptEvents(uint32 window_id, bool accept_events); |
| 259 | 259 |
| 260 // See documentation for WindowTreeClient::OnWindowInputEvent(). | 260 // See documentation for WindowTreeClient::OnWindowInputEvent(). |
| 261 OnWindowInputEventAck(uint32 event_id, EventResult result); | 261 OnWindowInputEventAck(uint32 event_id, EventResult result); |
| 262 | 262 |
| 263 // If the current focus is (or is a child of) |window_id|, requests that the |
| 264 // window manager change the focus to the next activatable window. |
| 265 DeactivateWindow(uint32 window_id); |
| 266 |
| 263 // See description of WindowManager for details. | 267 // See description of WindowManager for details. |
| 264 GetWindowManagerClient(associated WindowManagerClient& internal); | 268 GetWindowManagerClient(associated WindowManagerClient& internal); |
| 265 | 269 |
| 266 // Returns a shared memory segment that contains two 16-bit ints packed into a | 270 // Returns a shared memory segment that contains two 16-bit ints packed into a |
| 267 // single Atomic32, which represent the current location of the mouse cursor | 271 // single Atomic32, which represent the current location of the mouse cursor |
| 268 // where the location is (x << 16) | y. | 272 // where the location is (x << 16) | y. |
| 269 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); | 273 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); |
| 270 | 274 |
| 271 // Tells the window manager to start moving the window. OnChangeCompleted is | 275 // Tells the window manager to start moving the window. OnChangeCompleted is |
| 272 // called on whether the move was canceled. Because there's a delay between | 276 // called on whether the move was canceled. Because there's a delay between |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 // See description of WindowManager for details. | 492 // See description of WindowManager for details. |
| 489 GetWindowManager(associated WindowManager& internal); | 493 GetWindowManager(associated WindowManager& internal); |
| 490 }; | 494 }; |
| 491 | 495 |
| 492 // Mus provides this interface as a way for clients to connect and obtain a | 496 // Mus provides this interface as a way for clients to connect and obtain a |
| 493 // WindowTree handle with a supplied WindowTreeClient handle. The | 497 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 494 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 498 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 495 interface WindowTreeFactory { | 499 interface WindowTreeFactory { |
| 496 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 500 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 497 }; | 501 }; |
| OLD | NEW |