| 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 "services/ui/public/interfaces/cursor.mojom"; | 8 import "services/ui/public/interfaces/cursor.mojom"; |
| 8 import "services/ui/public/interfaces/event_matcher.mojom"; | 9 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 9 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 10 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| 10 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 11 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
| 11 import "ui/base/mojo/ui_base_types.mojom"; | 12 import "ui/base/mojo/ui_base_types.mojom"; |
| 12 import "ui/display/mojo/display.mojom"; | 13 import "ui/display/mojo/display.mojom"; |
| 13 import "ui/events/mojo/event.mojom"; | 14 import "ui/events/mojo/event.mojom"; |
| 14 import "ui/gfx/geometry/mojo/geometry.mojom"; | 15 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 15 | 16 |
| 16 // WindowManager is used when a WindowTreeClient attempts to modify | 17 // WindowManager is used when a WindowTreeClient attempts to modify |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 146 |
| 146 // End long lived properties. ------------------------------------------------ | 147 // End long lived properties. ------------------------------------------------ |
| 147 | 148 |
| 148 // Called immediately when the WindowManager is obtained. | 149 // Called immediately when the WindowManager is obtained. |
| 149 OnConnect(uint16 client_id); | 150 OnConnect(uint16 client_id); |
| 150 | 151 |
| 151 // Called when a new display is added. |root| gives the root window specific | 152 // Called when a new display is added. |root| gives the root window specific |
| 152 // to this WindowManager for |display|. | 153 // to this WindowManager for |display|. |
| 153 WmNewDisplayAdded(display.mojom.Display display, | 154 WmNewDisplayAdded(display.mojom.Display display, |
| 154 WindowData root, | 155 WindowData root, |
| 155 bool parent_drawn); | 156 bool parent_drawn, |
| 157 cc.mojom.FrameSinkId frame_sink_id); |
| 156 | 158 |
| 157 // Called when a display is removed. The root of the specified display is | 159 // Called when a display is removed. The root of the specified display is |
| 158 // still valid. It is expected the client calls DeleteWindow() shortly after | 160 // still valid. It is expected the client calls DeleteWindow() shortly after |
| 159 // this with the root. | 161 // this with the root. |
| 160 WmDisplayRemoved(int64 display_id); | 162 WmDisplayRemoved(int64 display_id); |
| 161 | 163 |
| 162 // Called when a display is modified. The root of the specified display will | 164 // Called when a display is modified. The root of the specified display will |
| 163 // be resized by the WindowServer after this. | 165 // be resized by the WindowServer after this. |
| 164 WmDisplayModified(display.mojom.Display display); | 166 WmDisplayModified(display.mojom.Display display); |
| 165 | 167 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); | 262 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); |
| 261 | 263 |
| 262 // Response from WmCreateTopLevelWindow() informing the client of the id for | 264 // Response from WmCreateTopLevelWindow() informing the client of the id for |
| 263 // the new window. | 265 // the new window. |
| 264 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 266 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
| 265 | 267 |
| 266 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 268 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
| 267 // that was passed to OnAccelerator(). | 269 // that was passed to OnAccelerator(). |
| 268 OnAcceleratorAck(uint32 ack_id, EventResult event_result); | 270 OnAcceleratorAck(uint32 ack_id, EventResult event_result); |
| 269 }; | 271 }; |
| OLD | NEW |