| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "services/ui/public/interfaces/cursor/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor/cursor.mojom"; |
| 10 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // specified window. | 292 // specified window. |
| 293 WmRequestClose(uint32 window_id); | 293 WmRequestClose(uint32 window_id); |
| 294 | 294 |
| 295 // Sets the frame decoration constants of the display the window manager is | 295 // Sets the frame decoration constants of the display the window manager is |
| 296 // associated with. | 296 // associated with. |
| 297 WmSetFrameDecorationValues(FrameDecorationValues values); | 297 WmSetFrameDecorationValues(FrameDecorationValues values); |
| 298 | 298 |
| 299 // Sets the cursor that the non-client areas of the window should use. | 299 // Sets the cursor that the non-client areas of the window should use. |
| 300 WmSetNonClientCursor(uint32 window_id, CursorData cursor); | 300 WmSetNonClientCursor(uint32 window_id, CursorData cursor); |
| 301 | 301 |
| 302 // Locks and unlocks the cursor globally. Used during window management tasks |
| 303 // where the cursor shouldn't change. |
| 304 WmLockCursor(); |
| 305 WmUnlockCursor(); |
| 306 |
| 307 // Shows and hides the cursor globally. Used during window management tasks. |
| 308 WmSetCursorVisible(bool visible); |
| 309 |
| 310 // Sets a global cursor which overrides per-window cursors. Pass null to |
| 311 // clear. |
| 312 WmSetGlobalOverrideCursor(CursorData? cursor); |
| 313 |
| 302 // Response from WmCreateTopLevelWindow() informing the client of the id for | 314 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 303 // the new window. | 315 // the new window. |
| 304 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 316 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 305 | 317 |
| 306 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 318 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 307 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 319 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
| 308 // handler and |event_result| is UNHANDLED, then |properties| is added to | 320 // handler and |event_result| is UNHANDLED, then |properties| is added to |
| 309 // the KeyEvent that is dispatched to the client with the focused window. | 321 // the KeyEvent that is dispatched to the client with the focused window. |
| 310 OnAcceleratorAck(uint32 ack_id, | 322 OnAcceleratorAck(uint32 ack_id, |
| 311 EventResult event_result, | 323 EventResult event_result, |
| 312 map<string, array<uint8>> properties); | 324 map<string, array<uint8>> properties); |
| 313 }; | 325 }; |
| OLD | NEW |