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

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

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: First cut propagating LocalSurfaceId when WindowTreeHost requests resize Created 3 years, 9 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 "ui/base/mojo/ui_base_types.mojom"; 13 import "ui/base/mojo/ui_base_types.mojom";
13 import "ui/display/mojo/display.mojom"; 14 import "ui/display/mojo/display.mojom";
14 import "ui/events/mojo/event.mojom"; 15 import "ui/events/mojo/event.mojom";
15 import "ui/gfx/geometry/mojo/geometry.mojom"; 16 import "ui/gfx/geometry/mojo/geometry.mojom";
16 17
17 // WindowManager is used when a WindowTreeClient attempts to modify 18 // WindowManager is used when a WindowTreeClient attempts to modify
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // target window. The id is defined by the client and can be used to more 241 // target window. The id is defined by the client and can be used to more
241 // easily identify the accelerator's action. 242 // easily identify the accelerator's action.
242 // Accelerator ids 1 << 31 and above are reserved for internal use. 243 // Accelerator ids 1 << 31 and above are reserved for internal use.
243 244
244 // See WindowTree for details on event dispatch. 245 // See WindowTree for details on event dispatch.
245 // This ignores any accelerators already defined with the same id or matcher. 246 // This ignores any accelerators already defined with the same id or matcher.
246 // Returns true if all accelerators were added successfully. 247 // Returns true if all accelerators were added successfully.
247 AddAccelerators(array<WmAccelerator> accelerators) => (bool success); 248 AddAccelerators(array<WmAccelerator> accelerators) => (bool success);
248 RemoveAccelerator(uint32 id); 249 RemoveAccelerator(uint32 id);
249 250
251 WmSetBoundsResponse(uint32 window_manager_change_id, gfx.mojom.Rect bounds,
252 cc.mojom.LocalSurfaceId local_surface_id);
253
250 // The window manager has completed a request with the specific change id. 254 // The window manager has completed a request with the specific change id.
251 WmResponse(uint32 change_id, bool response); 255 WmResponse(uint32 change_id, bool response);
252 256
253 // Calls WindowTreeClient::RequestClose() on the embedded app at the 257 // Calls WindowTreeClient::RequestClose() on the embedded app at the
254 // specified window. 258 // specified window.
255 WmRequestClose(uint32 window_id); 259 WmRequestClose(uint32 window_id);
256 260
257 // Sets the frame decoration constants of the display the window manager is 261 // Sets the frame decoration constants of the display the window manager is
258 // associated with. 262 // associated with.
259 WmSetFrameDecorationValues(FrameDecorationValues values); 263 WmSetFrameDecorationValues(FrameDecorationValues values);
260 264
261 // Sets the cursor that the non-client areas of the window should use. 265 // Sets the cursor that the non-client areas of the window should use.
262 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 266 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
263 267
264 // Response from WmCreateTopLevelWindow() informing the client of the id for 268 // Response from WmCreateTopLevelWindow() informing the client of the id for
265 // the new window. 269 // the new window.
266 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 270 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
267 271
268 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 272 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
269 // that was passed to OnAccelerator(). If the accelerator is a pre-target 273 // that was passed to OnAccelerator(). If the accelerator is a pre-target
270 // handler and |event_result| is UNHANDLED, then |properties| is added to 274 // handler and |event_result| is UNHANDLED, then |properties| is added to
271 // the KeyEvent that is dispatched to the client with the focused window. 275 // the KeyEvent that is dispatched to the client with the focused window.
272 OnAcceleratorAck(uint32 ack_id, 276 OnAcceleratorAck(uint32 ack_id,
273 EventResult event_result, 277 EventResult event_result,
274 map<string, array<uint8>> properties); 278 map<string, array<uint8>> properties);
275 }; 279 };
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698