| 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/frame_sink_id.mojom"; | 7 import "cc/ipc/frame_sink_id.mojom"; |
| 8 import "cc/ipc/local_surface_id.mojom"; | 8 import "cc/ipc/local_surface_id.mojom"; |
| 9 import "cc/ipc/surface_info.mojom"; | 9 import "cc/ipc/surface_info.mojom"; |
| 10 import "cc/ipc/mojo_compositor_frame_sink.mojom"; | 10 import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // been marked as focusable (see SetCanFocus()) and the window is in a | 238 // been marked as focusable (see SetCanFocus()) and the window is in a |
| 239 // container the WindowManager has identified as allowing activation | 239 // container the WindowManager has identified as allowing activation |
| 240 // (see WindowManagerClient::AddActivationParent()). | 240 // (see WindowManagerClient::AddActivationParent()). |
| 241 SetFocus(uint32 change_id, uint32 window_id); | 241 SetFocus(uint32 change_id, uint32 window_id); |
| 242 | 242 |
| 243 // Marks the specified window as being able to receive focus. | 243 // Marks the specified window as being able to receive focus. |
| 244 SetCanFocus(uint32 window_id, bool can_focus); | 244 SetCanFocus(uint32 window_id, bool can_focus); |
| 245 | 245 |
| 246 // Sets the cursor when the pointer is inside |window_id| to a system standard | 246 // Sets the cursor when the pointer is inside |window_id| to a system standard |
| 247 // cursor provided by the window manager. | 247 // cursor provided by the window manager. |
| 248 SetPredefinedCursor(uint32 change_id, uint32 window_id, Cursor cursor_id); | 248 SetPredefinedCursor(uint32 change_id, uint32 window_id, CursorType cursor_id); |
| 249 | 249 |
| 250 // TODO(erg): Additional cursor methods. Image based cursors, visibility, | 250 // TODO(erg): Additional cursor methods. Image based cursors, visibility, |
| 251 // and cursor locking. | 251 // and cursor locking. |
| 252 | 252 |
| 253 // Set text input state for the given window. | 253 // Set text input state for the given window. |
| 254 SetWindowTextInputState(uint32 window_id, mojo.TextInputState state); | 254 SetWindowTextInputState(uint32 window_id, mojo.TextInputState state); |
| 255 | 255 |
| 256 // Set the input method editor UI (software keyboard, etc) visibility. | 256 // Set the input method editor UI (software keyboard, etc) visibility. |
| 257 // If state is non-null, the specified window's text input state is updated. | 257 // If state is non-null, the specified window's text input state is updated. |
| 258 // Otherwise the existing state is used. | 258 // Otherwise the existing state is used. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 uint32 window_id, | 453 uint32 window_id, |
| 454 int64 display_id); | 454 int64 display_id); |
| 455 | 455 |
| 456 // Called in two distinct cases: when a window known to the connection gains | 456 // Called in two distinct cases: when a window known to the connection gains |
| 457 // focus, or when focus moves from a window known to the connection to a | 457 // focus, or when focus moves from a window known to the connection to a |
| 458 // window not known to the connection. In the later case |focused_window_id| | 458 // window not known to the connection. In the later case |focused_window_id| |
| 459 // is 0. As with other functions this is only called if the client did not | 459 // is 0. As with other functions this is only called if the client did not |
| 460 // initiate the change. | 460 // initiate the change. |
| 461 OnWindowFocused(uint32 focused_window_id); | 461 OnWindowFocused(uint32 focused_window_id); |
| 462 | 462 |
| 463 OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id); | 463 OnWindowPredefinedCursorChanged(uint32 window_id, CursorType cursor_id); |
| 464 | 464 |
| 465 // Invoked when a client window submits a new surface ID. The surface ID and | 465 // Invoked when a client window submits a new surface ID. The surface ID and |
| 466 // associated information is propagated to the parent connection. The parent | 466 // associated information is propagated to the parent connection. The parent |
| 467 // compositor can take ownership of this surface ID and embed it along with | 467 // compositor can take ownership of this surface ID and embed it along with |
| 468 // frame_size and device_scale_factor in a layer. | 468 // frame_size and device_scale_factor in a layer. |
| 469 // TODO(fsamuel): Surface IDs should be passed to parents directly instead of | 469 // TODO(fsamuel): Surface IDs should be passed to parents directly instead of |
| 470 // going through the window server. http://crbug.com/655231 | 470 // going through the window server. http://crbug.com/655231 |
| 471 OnWindowSurfaceChanged(uint32 window_id, | 471 OnWindowSurfaceChanged(uint32 window_id, |
| 472 cc.mojom.SurfaceInfo surface_info); | 472 cc.mojom.SurfaceInfo surface_info); |
| 473 | 473 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 // See description of WindowManager for details. | 525 // See description of WindowManager for details. |
| 526 GetWindowManager(associated WindowManager& internal); | 526 GetWindowManager(associated WindowManager& internal); |
| 527 }; | 527 }; |
| 528 | 528 |
| 529 // Mus provides this interface as a way for clients to connect and obtain a | 529 // Mus provides this interface as a way for clients to connect and obtain a |
| 530 // WindowTree handle with a supplied WindowTreeClient handle. The | 530 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 531 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 531 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 532 interface WindowTreeFactory { | 532 interface WindowTreeFactory { |
| 533 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 533 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 534 }; | 534 }; |
| OLD | NEW |