| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // |automatically_create_display_roots| (see | 273 // |automatically_create_display_roots| (see |
| 274 // WindowManagerWindowTreeFactory::CreateWindowTree() for details). | 274 // WindowManagerWindowTreeFactory::CreateWindowTree() for details). |
| 275 // |local_surface_id| identifies the ID to use to submit CompositorFrames. | 275 // |local_surface_id| identifies the ID to use to submit CompositorFrames. |
| 276 // base::nullopt indicates failure. | 276 // base::nullopt indicates failure. |
| 277 SetDisplayRoot(display.mojom.Display display, | 277 SetDisplayRoot(display.mojom.Display display, |
| 278 WmViewportMetrics viewport_metrics, | 278 WmViewportMetrics viewport_metrics, |
| 279 bool is_primary_display, | 279 bool is_primary_display, |
| 280 uint32 window_id) => | 280 uint32 window_id) => |
| 281 (cc.mojom.LocalSurfaceId? local_surface_id); | 281 (cc.mojom.LocalSurfaceId? local_surface_id); |
| 282 | 282 |
| 283 // Configures the metrics for the displays and notifies observers. This is |
| 284 // only applicable when WindowTree was created with a value of false for |
| 285 // |automatically_create_display_roots|. This *must* be called after any |
| 286 // display related changes to inform observers, for example, after calling |
| 287 // SetDisplayRoot() this must be called to inform observers of the display |
| 288 // changes. |
| 289 SetDisplayConfiguration(array<display.mojom.Display> displays, |
| 290 array<WmViewportMetrics> viewport_metrics, |
| 291 int64 primary_display_id) => (bool success); |
| 292 |
| 283 // The window manager has completed a request with the specific change id. | 293 // The window manager has completed a request with the specific change id. |
| 284 WmResponse(uint32 change_id, bool response); | 294 WmResponse(uint32 change_id, bool response); |
| 285 | 295 |
| 286 // The window manager has completed a SetBounds request with the specified | 296 // The window manager has completed a SetBounds request with the specified |
| 287 // change id | 297 // change id |
| 288 WmSetBoundsResponse(uint32 change_id); | 298 WmSetBoundsResponse(uint32 change_id); |
| 289 | 299 |
| 290 // Calls WindowTreeClient::RequestClose() on the embedded app at the | 300 // Calls WindowTreeClient::RequestClose() on the embedded app at the |
| 291 // specified window. | 301 // specified window. |
| 292 WmRequestClose(uint32 window_id); | 302 WmRequestClose(uint32 window_id); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 315 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 325 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 316 | 326 |
| 317 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 327 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 318 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 328 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
| 319 // handler and |event_result| is UNHANDLED, then |properties| is added to | 329 // handler and |event_result| is UNHANDLED, then |properties| is added to |
| 320 // the KeyEvent that is dispatched to the client with the focused window. | 330 // the KeyEvent that is dispatched to the client with the focused window. |
| 321 OnAcceleratorAck(uint32 ack_id, | 331 OnAcceleratorAck(uint32 ack_id, |
| 322 EventResult event_result, | 332 EventResult event_result, |
| 323 map<string, array<uint8>> properties); | 333 map<string, array<uint8>> properties); |
| 324 }; | 334 }; |
| OLD | NEW |