| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // target window. The id is defined by the client and can be used to more | 263 // target window. The id is defined by the client and can be used to more |
| 264 // easily identify the accelerator's action. | 264 // easily identify the accelerator's action. |
| 265 // Accelerator ids 1 << 31 and above are reserved for internal use. | 265 // Accelerator ids 1 << 31 and above are reserved for internal use. |
| 266 | 266 |
| 267 // See WindowTree for details on event dispatch. | 267 // See WindowTree for details on event dispatch. |
| 268 // This ignores any accelerators already defined with the same id or matcher. | 268 // This ignores any accelerators already defined with the same id or matcher. |
| 269 // Returns true if all accelerators were added successfully. | 269 // Returns true if all accelerators were added successfully. |
| 270 AddAccelerators(array<WmAccelerator> accelerators) => (bool success); | 270 AddAccelerators(array<WmAccelerator> accelerators) => (bool success); |
| 271 RemoveAccelerator(uint32 id); | 271 RemoveAccelerator(uint32 id); |
| 272 | 272 |
| 273 // Sets the root of a particular display. This is only applicable when the |
| 274 // WindowTree was created with a value of false for |
| 275 // |automatically_create_display_roots| (see |
| 276 // WindowManagerWindowTreeFactory::CreateWindowTree() for details). |
| 277 SetDisplayRoot(int64 display_id, uint32 window_id) => (bool success); |
| 278 |
| 273 // The window manager has completed a request with the specific change id. | 279 // The window manager has completed a request with the specific change id. |
| 274 WmResponse(uint32 change_id, bool response); | 280 WmResponse(uint32 change_id, bool response); |
| 275 | 281 |
| 276 // The window manager has completed a SetBounds request with the specified | 282 // The window manager has completed a SetBounds request with the specified |
| 277 // change id | 283 // change id |
| 278 WmSetBoundsResponse(uint32 change_id); | 284 WmSetBoundsResponse(uint32 change_id); |
| 279 | 285 |
| 280 // Calls WindowTreeClient::RequestClose() on the embedded app at the | 286 // Calls WindowTreeClient::RequestClose() on the embedded app at the |
| 281 // specified window. | 287 // specified window. |
| 282 WmRequestClose(uint32 window_id); | 288 WmRequestClose(uint32 window_id); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 293 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 299 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 294 | 300 |
| 295 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 301 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 296 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 302 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
| 297 // handler and |event_result| is UNHANDLED, then |properties| is added to | 303 // handler and |event_result| is UNHANDLED, then |properties| is added to |
| 298 // the KeyEvent that is dispatched to the client with the focused window. | 304 // the KeyEvent that is dispatched to the client with the focused window. |
| 299 OnAcceleratorAck(uint32 ack_id, | 305 OnAcceleratorAck(uint32 ack_id, |
| 300 EventResult event_result, | 306 EventResult event_result, |
| 301 map<string, array<uint8>> properties); | 307 map<string, array<uint8>> properties); |
| 302 }; | 308 }; |
| OLD | NEW |