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

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

Issue 2829733002: mus: Changes SetDisplayRoot() to create actual display (Closed)
Patch Set: unnecessary get Created 3 years, 8 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/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";
11 import "services/ui/public/interfaces/window_manager_constants.mojom"; 11 import "services/ui/public/interfaces/window_manager_constants.mojom";
12 import "services/ui/public/interfaces/window_tree_constants.mojom"; 12 import "services/ui/public/interfaces/window_tree_constants.mojom";
13 import "skia/public/interfaces/bitmap.mojom"; 13 import "skia/public/interfaces/bitmap.mojom";
14 import "ui/base/mojo/ui_base_types.mojom"; 14 import "ui/base/mojo/ui_base_types.mojom";
15 import "ui/display/mojo/display.mojom"; 15 import "ui/display/mojo/display.mojom";
16 import "ui/events/mojo/event.mojom"; 16 import "ui/events/mojo/event.mojom";
17 import "ui/events/mojo/event_constants.mojom"; 17 import "ui/events/mojo/event_constants.mojom";
18 import "ui/gfx/geometry/mojo/geometry.mojom"; 18 import "ui/gfx/geometry/mojo/geometry.mojom";
19 import "ui/display/mojo/display.mojom";
19 20
20 // WindowManager is used when a WindowTreeClient attempts to modify 21 // WindowManager is used when a WindowTreeClient attempts to modify
21 // a property of the embed root. When this happens WindowTree calls the 22 // a property of the embed root. When this happens WindowTree calls the
22 // appropriate function on WindowManager. For example, if a 23 // appropriate function on WindowManager. For example, if a
23 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree 24 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree
24 // calls WmSetBounds(). WindowManager can then decide if it wants to 25 // calls WmSetBounds(). WindowManager can then decide if it wants to
25 // change the bounds or not. 26 // change the bounds or not.
26 // 27 //
27 // This interface is only used as an associated interface and is associated 28 // This interface is only used as an associated interface and is associated
28 // with WindowTreeClient, further WindowTree requests this interface from 29 // with WindowTreeClient, further WindowTree requests this interface from
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 267
267 // See WindowTree for details on event dispatch. 268 // See WindowTree for details on event dispatch.
268 // This ignores any accelerators already defined with the same id or matcher. 269 // This ignores any accelerators already defined with the same id or matcher.
269 // Returns true if all accelerators were added successfully. 270 // Returns true if all accelerators were added successfully.
270 AddAccelerators(array<WmAccelerator> accelerators) => (bool success); 271 AddAccelerators(array<WmAccelerator> accelerators) => (bool success);
271 RemoveAccelerator(uint32 id); 272 RemoveAccelerator(uint32 id);
272 273
273 // Sets the root of a particular display. This is only applicable when the 274 // Sets the root of a particular display. This is only applicable when the
274 // WindowTree was created with a value of false for 275 // WindowTree was created with a value of false for
275 // |automatically_create_display_roots| (see 276 // |automatically_create_display_roots| (see
276 // WindowManagerWindowTreeFactory::CreateWindowTree() for details). 277 // WindowManagerWindowTreeFactory::CreateWindowTree() for details). On success
277 SetDisplayRoot(int64 display_id, uint32 window_id) => (bool success); 278 // this responds with the FrameSinkId of the root. On failure the FrameSinkId
279 // is not valid.
280 SetDisplayRoot(display.mojom.Display display,
281 WmViewportMetrics viewport_metrics,
282 bool is_primary_display,
283 uint32 window_id) => (cc.mojom.FrameSinkId? frame_sink_id);
278 284
279 // The window manager has completed a request with the specific change id. 285 // The window manager has completed a request with the specific change id.
280 WmResponse(uint32 change_id, bool response); 286 WmResponse(uint32 change_id, bool response);
281 287
282 // The window manager has completed a SetBounds request with the specified 288 // The window manager has completed a SetBounds request with the specified
283 // change id 289 // change id
284 WmSetBoundsResponse(uint32 change_id); 290 WmSetBoundsResponse(uint32 change_id);
285 291
286 // Calls WindowTreeClient::RequestClose() on the embedded app at the 292 // Calls WindowTreeClient::RequestClose() on the embedded app at the
287 // specified window. 293 // specified window.
(...skipping 11 matching lines...) Expand all
299 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 305 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
300 306
301 // See description in WindowManager::OnAccelerator(). |ack_id| is the value 307 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
302 // that was passed to OnAccelerator(). If the accelerator is a pre-target 308 // that was passed to OnAccelerator(). If the accelerator is a pre-target
303 // handler and |event_result| is UNHANDLED, then |properties| is added to 309 // handler and |event_result| is UNHANDLED, then |properties| is added to
304 // the KeyEvent that is dispatched to the client with the focused window. 310 // the KeyEvent that is dispatched to the client with the focused window.
305 OnAcceleratorAck(uint32 ack_id, 311 OnAcceleratorAck(uint32 ack_id,
306 EventResult event_result, 312 EventResult event_result,
307 map<string, array<uint8>> properties); 313 map<string, array<uint8>> properties);
308 }; 314 };
OLDNEW
« no previous file with comments | « services/ui/display/screen_manager_stub_internal.cc ('k') | services/ui/public/interfaces/window_manager_constants.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698