Chromium Code Reviews| 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/input_events.mojom"; | 9 import "components/mus/public/interfaces/input_events.mojom"; |
| 10 import "components/mus/public/interfaces/mus_constants.mojom"; | 10 import "components/mus/public/interfaces/mus_constants.mojom"; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 244 // Set the input method editor UI (software keyboard, etc) visibility. | 244 // Set the input method editor UI (software keyboard, etc) visibility. |
| 245 // If state is non-null, the specified window's text input state is updated. | 245 // If state is non-null, the specified window's text input state is updated. |
| 246 // Otherwise the existing state is used. | 246 // Otherwise the existing state is used. |
| 247 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); | 247 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); |
| 248 | 248 |
| 249 // See documentation for WindowTreeClient::OnWindowInputEvent(). | 249 // See documentation for WindowTreeClient::OnWindowInputEvent(). |
| 250 OnWindowInputEventAck(uint32 event_id, EventResult result); | 250 OnWindowInputEventAck(uint32 event_id, EventResult result); |
| 251 | 251 |
| 252 // See description of WindowManager for details. | 252 // See description of WindowManager for details. |
| 253 GetWindowManagerClient(associated WindowManagerClient& internal); | 253 GetWindowManagerClient(associated WindowManagerClient& internal); |
| 254 | |
| 255 // Returns a shared memory segment that contains two 32-bit ints packed into a | |
|
sky
2016/04/20 23:46:36
nit: document order of coordinates.
| |
| 256 // single Atomic64, which represent the current location of the mouse cursor. | |
| 257 GetCursorLocationMemory() => (handle<shared_buffer> cursor_buffer); | |
| 254 }; | 258 }; |
| 255 | 259 |
| 256 // Changes to windows are not sent to the connection that originated the | 260 // Changes to windows are not sent to the connection that originated the |
| 257 // change. For example, if connection 1 changes the bounds of a window by | 261 // change. For example, if connection 1 changes the bounds of a window by |
| 258 // calling SetWindowBounds(), connection 1 does not receive | 262 // calling SetWindowBounds(), connection 1 does not receive |
| 259 // OnWindowBoundsChanged(). | 263 // OnWindowBoundsChanged(). |
| 260 interface WindowTreeClient { | 264 interface WindowTreeClient { |
| 261 // Invoked when the client application has been embedded at |root|. | 265 // Invoked when the client application has been embedded at |root|. |
| 262 // See Embed() on WindowTree for more details. |tree| will be a handle back to | 266 // See Embed() on WindowTree for more details. |tree| will be a handle back to |
| 263 // the window manager service, unless the connection is to the root connection | 267 // the window manager service, unless the connection is to the root connection |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 382 // See description of WindowManager for details. | 386 // See description of WindowManager for details. |
| 383 GetWindowManager(associated WindowManager& internal); | 387 GetWindowManager(associated WindowManager& internal); |
| 384 }; | 388 }; |
| 385 | 389 |
| 386 // Mus provides this interface as a way for clients to connect and obtain a | 390 // Mus provides this interface as a way for clients to connect and obtain a |
| 387 // WindowTree handle with a supplied WindowTreeClient handle. The | 391 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 388 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 392 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 389 interface WindowTreeFactory { | 393 interface WindowTreeFactory { |
| 390 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 394 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 391 }; | 395 }; |
| OLD | NEW |