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 "services/ui/public/interfaces/cursor.mojom"; | 9 import "services/ui/public/interfaces/cursor.mojom"; |
9 import "services/ui/public/interfaces/event_matcher.mojom"; | 10 import "services/ui/public/interfaces/event_matcher.mojom"; |
10 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 11 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
11 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 12 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
12 import "skia/public/interfaces/bitmap.mojom"; | 13 import "skia/public/interfaces/bitmap.mojom"; |
13 import "ui/base/mojo/ui_base_types.mojom"; | 14 import "ui/base/mojo/ui_base_types.mojom"; |
14 import "ui/display/mojo/display.mojom"; | 15 import "ui/display/mojo/display.mojom"; |
15 import "ui/events/mojo/event.mojom"; | 16 import "ui/events/mojo/event.mojom"; |
16 import "ui/events/mojo/event_constants.mojom"; | 17 import "ui/events/mojo/event_constants.mojom"; |
17 import "ui/gfx/geometry/mojo/geometry.mojom"; | 18 import "ui/gfx/geometry/mojo/geometry.mojom"; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 // End long lived properties. ------------------------------------------------ | 150 // End long lived properties. ------------------------------------------------ |
150 | 151 |
151 // Called immediately when the WindowManager is obtained. | 152 // Called immediately when the WindowManager is obtained. |
152 OnConnect(uint16 client_id); | 153 OnConnect(uint16 client_id); |
153 | 154 |
154 // Called when a new display is added. |root| gives the root window specific | 155 // Called when a new display is added. |root| gives the root window specific |
155 // to this WindowManager for |display|. | 156 // to this WindowManager for |display|. |
156 WmNewDisplayAdded(display.mojom.Display display, | 157 WmNewDisplayAdded(display.mojom.Display display, |
157 WindowData root, | 158 WindowData root, |
158 bool parent_drawn, | 159 bool parent_drawn, |
159 cc.mojom.FrameSinkId frame_sink_id); | 160 cc.mojom.FrameSinkId frame_sink_id, |
161 cc.mojom.LocalSurfaceId? local_surface_id); | |
sky
2017/03/28 22:35:31
Please document under what conditionsl local_surfa
Fady Samuel
2017/03/28 23:30:30
Done.
| |
160 | 162 |
161 // Called when a display is removed. The root of the specified display is | 163 // Called when a display is removed. The root of the specified display is |
162 // still valid. It is expected the client calls DeleteWindow() shortly after | 164 // still valid. It is expected the client calls DeleteWindow() shortly after |
163 // this with the root. | 165 // this with the root. |
164 WmDisplayRemoved(int64 display_id); | 166 WmDisplayRemoved(int64 display_id); |
165 | 167 |
166 // Called when a display is modified. The root of the specified display will | 168 // Called when a display is modified. The root of the specified display will |
167 // be resized by the WindowServer after this. | 169 // be resized by the WindowServer after this. |
168 WmDisplayModified(display.mojom.Display display); | 170 WmDisplayModified(display.mojom.Display display); |
169 | 171 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
289 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); | 291 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); |
290 | 292 |
291 // See description in WindowManager::OnAccelerator(). |ack_id| is the value | 293 // See description in WindowManager::OnAccelerator(). |ack_id| is the value |
292 // that was passed to OnAccelerator(). If the accelerator is a pre-target | 294 // that was passed to OnAccelerator(). If the accelerator is a pre-target |
293 // handler and |event_result| is UNHANDLED, then |properties| is added to | 295 // handler and |event_result| is UNHANDLED, then |properties| is added to |
294 // the KeyEvent that is dispatched to the client with the focused window. | 296 // the KeyEvent that is dispatched to the client with the focused window. |
295 OnAcceleratorAck(uint32 ack_id, | 297 OnAcceleratorAck(uint32 ack_id, |
296 EventResult event_result, | 298 EventResult event_result, |
297 map<string, array<uint8>> properties); | 299 map<string, array<uint8>> properties); |
298 }; | 300 }; |
OLD | NEW |