| 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 mus.mojom; | 5 module mus.mojom; |
| 6 | 6 |
| 7 import "components/mus/public/interfaces/compositor_frame.mojom"; | 7 import "components/mus/public/interfaces/compositor_frame.mojom"; |
| 8 import "components/mus/public/interfaces/cursor.mojom"; | 8 import "components/mus/public/interfaces/cursor.mojom"; |
| 9 import "components/mus/public/interfaces/event_matcher.mojom"; | 9 import "components/mus/public/interfaces/event_matcher.mojom"; |
| 10 import "components/mus/public/interfaces/input_events.mojom"; | 10 import "components/mus/public/interfaces/input_events.mojom"; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // Set the input method editor UI (software keyboard, etc) visibility. | 253 // Set the input method editor UI (software keyboard, etc) visibility. |
| 254 // If state is non-null, the specified window's text input state is updated. | 254 // If state is non-null, the specified window's text input state is updated. |
| 255 // Otherwise the existing state is used. | 255 // Otherwise the existing state is used. |
| 256 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); | 256 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); |
| 257 | 257 |
| 258 // See documentation for WindowTreeClient::OnWindowInputEvent(). | 258 // See documentation for WindowTreeClient::OnWindowInputEvent(). |
| 259 OnWindowInputEventAck(uint32 event_id, EventResult result); | 259 OnWindowInputEventAck(uint32 event_id, EventResult result); |
| 260 | 260 |
| 261 // See description of WindowManager for details. | 261 // See description of WindowManager for details. |
| 262 GetWindowManagerClient(associated WindowManagerClient& internal); | 262 GetWindowManagerClient(associated WindowManagerClient& internal); |
| 263 |
| 264 // Returns a shared memory segment that contains two 16-bit ints packed into a |
| 265 // single Atomic32, which represent the current location of the mouse cursor |
| 266 // where the location is (x << 16) | y. |
| 267 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); |
| 263 }; | 268 }; |
| 264 | 269 |
| 265 // Changes to windows are not sent to the connection that originated the | 270 // Changes to windows are not sent to the connection that originated the |
| 266 // change. For example, if connection 1 changes the bounds of a window by | 271 // change. For example, if connection 1 changes the bounds of a window by |
| 267 // calling SetWindowBounds(), connection 1 does not receive | 272 // calling SetWindowBounds(), connection 1 does not receive |
| 268 // OnWindowBoundsChanged(). | 273 // OnWindowBoundsChanged(). |
| 269 interface WindowTreeClient { | 274 interface WindowTreeClient { |
| 270 // Invoked when the client application has been embedded at |root|. | 275 // Invoked when the client application has been embedded at |root|. |
| 271 // See Embed() on WindowTree for more details. |tree| will be a handle back to | 276 // See Embed() on WindowTree for more details. |tree| will be a handle back to |
| 272 // the window manager service, unless the connection is to the root connection | 277 // the window manager service, unless the connection is to the root connection |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 // See description of WindowManager for details. | 405 // See description of WindowManager for details. |
| 401 GetWindowManager(associated WindowManager& internal); | 406 GetWindowManager(associated WindowManager& internal); |
| 402 }; | 407 }; |
| 403 | 408 |
| 404 // Mus provides this interface as a way for clients to connect and obtain a | 409 // Mus provides this interface as a way for clients to connect and obtain a |
| 405 // WindowTree handle with a supplied WindowTreeClient handle. The | 410 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 406 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 411 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 407 interface WindowTreeFactory { | 412 interface WindowTreeFactory { |
| 408 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 413 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 409 }; | 414 }; |
| OLD | NEW |