| 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 "services/ui/public/interfaces/cursor.mojom"; | 8 import "services/ui/public/interfaces/cursor.mojom"; |
| 9 import "services/ui/public/interfaces/event_matcher.mojom"; | 9 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 // See WindowTree for details on event dispatch. | 263 // See WindowTree for details on event dispatch. |
| 264 // This ignores any accelerators already defined with the same id or matcher. | 264 // This ignores any accelerators already defined with the same id or matcher. |
| 265 // Returns true if all accelerators were added successfully. | 265 // Returns true if all accelerators were added successfully. |
| 266 AddAccelerators(array<WmAccelerator> accelerators) => (bool success); | 266 AddAccelerators(array<WmAccelerator> accelerators) => (bool success); |
| 267 RemoveAccelerator(uint32 id); | 267 RemoveAccelerator(uint32 id); |
| 268 | 268 |
| 269 // The window manager has completed a request with the specific change id. | 269 // The window manager has completed a request with the specific change id. |
| 270 WmResponse(uint32 change_id, bool response); | 270 WmResponse(uint32 change_id, bool response); |
| 271 | 271 |
| 272 // The window manager has completed a SetBounds request with the specified |
| 273 // change id |
| 274 WmSetBoundsResponse(uint32 change_id); |
| 275 |
| 272 // Calls WindowTreeClient::RequestClose() on the embedded app at the | 276 // Calls WindowTreeClient::RequestClose() on the embedded app at the |
| 273 // specified window. | 277 // specified window. |
| 274 WmRequestClose(uint32 window_id); | 278 WmRequestClose(uint32 window_id); |
| 275 | 279 |
| 276 // Sets the frame decoration constants of the display the window manager is | 280 // Sets the frame decoration constants of the display the window manager is |
| 277 // associated with. | 281 // associated with. |
| 278 WmSetFrameDecorationValues(FrameDecorationValues values); | 282 WmSetFrameDecorationValues(FrameDecorationValues values); |
| 279 | 283 |
| 280 // Sets the cursor that the non-client areas of the window should use. | 284 // Sets the cursor that the non-client areas of the window should use. |
| 281 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 285 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 282 | 286 |
| 283 // Response from WmCreateTopLevelWindow() informing the client of the id for | 287 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 284 // the new window. | 288 // the new window. |
| 285 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 289 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 286 | 290 |
| 287 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 291 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 288 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 292 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
| 289 // handler and |event_result| is UNHANDLED, then |properties| is added to | 293 // handler and |event_result| is UNHANDLED, then |properties| is added to |
| 290 // the KeyEvent that is dispatched to the client with the focused window. | 294 // the KeyEvent that is dispatched to the client with the focused window. |
| 291 OnAcceleratorAck(uint32 ack_id, | 295 OnAcceleratorAck(uint32 ack_id, |
| 292 EventResult event_result, | 296 EventResult event_result, |
| 293 map<string, array<uint8>> properties); | 297 map<string, array<uint8>> properties); |
| 294 }; | 298 }; |
| OLD | NEW |