| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // and cursor locking. | 246 // and cursor locking. |
| 247 | 247 |
| 248 // Set text input state for the given window. | 248 // Set text input state for the given window. |
| 249 SetWindowTextInputState(uint32 window_id, mojo.TextInputState state); | 249 SetWindowTextInputState(uint32 window_id, mojo.TextInputState state); |
| 250 | 250 |
| 251 // Set the input method editor UI (software keyboard, etc) visibility. | 251 // Set the input method editor UI (software keyboard, etc) visibility. |
| 252 // If state is non-null, the specified window's text input state is updated. | 252 // If state is non-null, the specified window's text input state is updated. |
| 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 // Sets the EventTargetingPolicy. See EventTargetingPolicy for details. |
| 257 // accept events, none of its descendant windows accept events either. | 257 SetEventTargetingPolicy(uint32 window_id, EventTargetingPolicy policy); |
| 258 SetCanAcceptEvents(uint32 window_id, bool accept_events); | |
| 259 | 258 |
| 260 // See documentation for WindowTreeClient::OnWindowInputEvent(). | 259 // See documentation for WindowTreeClient::OnWindowInputEvent(). |
| 261 OnWindowInputEventAck(uint32 event_id, EventResult result); | 260 OnWindowInputEventAck(uint32 event_id, EventResult result); |
| 262 | 261 |
| 263 // If the current focus is (or is a child of) |window_id|, requests that the | 262 // 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. | 263 // window manager change the focus to the next activatable window. |
| 265 DeactivateWindow(uint32 window_id); | 264 DeactivateWindow(uint32 window_id); |
| 266 | 265 |
| 267 // Stacks the window |above_id| above |below_id|. These two windows must | 266 // Stacks the window |above_id| above |below_id|. These two windows must |
| 268 // share the same parent. | 267 // share the same parent. |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 // See description of WindowManager for details. | 498 // See description of WindowManager for details. |
| 500 GetWindowManager(associated WindowManager& internal); | 499 GetWindowManager(associated WindowManager& internal); |
| 501 }; | 500 }; |
| 502 | 501 |
| 503 // Mus provides this interface as a way for clients to connect and obtain a | 502 // Mus provides this interface as a way for clients to connect and obtain a |
| 504 // WindowTree handle with a supplied WindowTreeClient handle. The | 503 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 505 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 504 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 506 interface WindowTreeFactory { | 505 interface WindowTreeFactory { |
| 507 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 506 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 508 }; | 507 }; |
| OLD | NEW |