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

Side by Side Diff: components/mus/public/interfaces/window_tree.mojom

Issue 1567623003: Adds remainder of support for multiple roots to WS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 mus.mojom; 5 module mus.mojom;
6 6
7 import "components/mus/public/interfaces/compositor_frame.mojom"; 7 import "components/mus/public/interfaces/compositor_frame.mojom";
8 import "components/mus/public/interfaces/cursor.mojom"; 8 import "components/mus/public/interfaces/cursor.mojom";
9 import "components/mus/public/interfaces/input_events.mojom"; 9 import "components/mus/public/interfaces/input_events.mojom";
10 import "components/mus/public/interfaces/mus_constants.mojom"; 10 import "components/mus/public/interfaces/mus_constants.mojom";
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // unique). Additionally the connection id (embedded in |window_id|) must 86 // unique). Additionally the connection id (embedded in |window_id|) must
87 // match that of the connection. 87 // match that of the connection.
88 // Errors: 88 // Errors:
89 // ERROR_CODE_VALUE_IN_USE: a window already exists with the specified id. 89 // ERROR_CODE_VALUE_IN_USE: a window already exists with the specified id.
90 // ERROR_CODE_ILLEGAL_ARGUMENT: The connection part of |window_id| does not 90 // ERROR_CODE_ILLEGAL_ARGUMENT: The connection part of |window_id| does not
91 // match the connection id of the client. 91 // match the connection id of the client.
92 NewWindow(uint32 change_id, 92 NewWindow(uint32 change_id,
93 uint32 window_id, 93 uint32 window_id,
94 map<string, array<uint8>>? properties); 94 map<string, array<uint8>>? properties);
95 95
96 // Requests the WindowManager to create a new top level window.
97 // TODO(sky): this likely needs context, maybe in |properties|.
98 NewTopLevelWindow(uint32 change_id,
99 uint32 window_id,
100 map<string, array<uint8>> properties);
101
96 // Deletes a window. This does not recurse. No hierarchy change notifications 102 // Deletes a window. This does not recurse. No hierarchy change notifications
97 // are sent as a result of this. Only the connection that created the window 103 // are sent as a result of this. Only the connection that created the window
98 // can delete it. 104 // can delete it.
99 DeleteWindow(uint32 change_id, uint32 window_id); 105 DeleteWindow(uint32 change_id, uint32 window_id);
100 106
101 // Sets the specified bounds of the specified window. 107 // Sets the specified bounds of the specified window.
102 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); 108 SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds);
103 109
104 // Sets the client area of the specified window. The client area is specified 110 // Sets the client area of the specified window. The client area is specified
105 // by way of insets. Everything outside of the insets, and not in 111 // by way of insets. Everything outside of the insets, and not in
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // This interface is only used as an associated interface and is associated 365 // This interface is only used as an associated interface and is associated
360 // with WindowTreeClient. 366 // with WindowTreeClient.
361 interface WindowManagerInternal { 367 interface WindowManagerInternal {
362 // When the WindowManagerInternal completes a request it must call back to 368 // When the WindowManagerInternal completes a request it must call back to
363 // WindowManagerInternalClient::WmResponse(). 369 // WindowManagerInternalClient::WmResponse().
364 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); 370 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds);
365 WmSetProperty(uint32 change_id, 371 WmSetProperty(uint32 change_id,
366 uint32 window_id, 372 uint32 window_id,
367 string name, 373 string name,
368 array<uint8>? value); 374 array<uint8>? value);
375 // Asks the WindowManager to create a new window.
376 WmCreateTopLevelWindow(uint32 change_id,
377 map<string, array<uint8>> properties);
369 }; 378 };
370 379
371 // This interface is only used as an associated interface and is associated 380 // This interface is only used as an associated interface and is associated
372 // with WindowTree. 381 // with WindowTree.
373 interface WindowManagerInternalClient { 382 interface WindowManagerInternalClient {
374 // The window manager has completed a request with the specific change id. 383 // The window manager has completed a request with the specific change id.
375 WmResponse(uint32 change_id, bool response); 384 WmResponse(uint32 change_id, bool response);
376 385
377 // Calls WindowTreeClient::RequestClose() on the embedded app at the 386 // Calls WindowTreeClient::RequestClose() on the embedded app at the
378 // specified window. 387 // specified window.
379 WmRequestClose(uint32 window_id); 388 WmRequestClose(uint32 window_id);
389
390 // Response from WmCreateTopLevelWindow() informing the client of the id for
391 // the new window.
392 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
380 }; 393 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window_tree_connection.h ('k') | components/mus/ws/client_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698