Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: services/ui/public/interfaces/window_manager.mojom

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/local_frame_id.mojom";
7 import "services/ui/public/interfaces/cursor.mojom"; 8 import "services/ui/public/interfaces/cursor.mojom";
8 import "services/ui/public/interfaces/display/display.mojom"; 9 import "services/ui/public/interfaces/display/display.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 "ui/events/mojo/event.mojom"; 13 import "ui/events/mojo/event.mojom";
13 import "ui/gfx/geometry/mojo/geometry.mojom"; 14 import "ui/gfx/geometry/mojo/geometry.mojom";
14 15
15 // WindowManager is used when a WindowTreeClient attempts to modify 16 // WindowManager is used when a WindowTreeClient attempts to modify
16 // a property of the embed root. When this happens WindowTree calls the 17 // a property of the embed root. When this happens WindowTree calls the
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // still valid. It is expected the client calls DeleteWindow() shortly after 152 // still valid. It is expected the client calls DeleteWindow() shortly after
152 // this with the root. 153 // this with the root.
153 WmDisplayRemoved(int64 display_id); 154 WmDisplayRemoved(int64 display_id);
154 155
155 // Called when a display is modified. The root of the specified display will 156 // Called when a display is modified. The root of the specified display will
156 // be resized by the WindowServer after this. 157 // be resized by the WindowServer after this.
157 WmDisplayModified(display.mojom.Display display); 158 WmDisplayModified(display.mojom.Display display);
158 159
159 // When the WindowManager completes a request it must call back to 160 // When the WindowManager completes a request it must call back to
160 // WindowManagerClient::WmResponse(). 161 // WindowManagerClient::WmResponse().
161 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); 162 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds,
163 cc.mojom.LocalFrameId local_frame_id);
162 WmSetProperty(uint32 change_id, 164 WmSetProperty(uint32 change_id,
163 uint32 window_id, 165 uint32 window_id,
164 string name, 166 string name,
165 array<uint8>? value); 167 array<uint8>? value);
166 168
167 // Asks the WindowManager to create a new window. 169 // Asks the WindowManager to create a new window.
168 // |requesting_client_id| is the id of the client issuing the request. This 170 // |requesting_client_id| is the id of the client issuing the request. This
169 // allows the window manager to track top level windows by client. 171 // allows the window manager to track top level windows by client.
170 WmCreateTopLevelWindow(uint32 change_id, 172 WmCreateTopLevelWindow(uint32 change_id,
171 uint16 requesting_client_id, 173 uint16 requesting_client_id,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 253 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
252 254
253 // Response from WmCreateTopLevelWindow() informing the client of the id for 255 // Response from WmCreateTopLevelWindow() informing the client of the id for
254 // the new window. 256 // the new window.
255 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 257 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
256 258
257 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 259 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
258 // that was passed to OnAccelerator(). 260 // that was passed to OnAccelerator().
259 OnAcceleratorAck(uint32 ack_id, EventResult event_result); 261 OnAcceleratorAck(uint32 ack_id, EventResult event_result);
260 }; 262 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698