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

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

Issue 1639563003: Renames WindowManagerConfig to FrameDecorationValues and moves to Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // appropriate function on WindowManagerInternal. For example, if a 360 // appropriate function on WindowManagerInternal. For example, if a
361 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree 361 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree
362 // calls WmSetBounds(). WindowManagerInternal can then decide if it wants to 362 // calls WmSetBounds(). WindowManagerInternal can then decide if it wants to
363 // change the bounds or not. 363 // change the bounds or not.
364 // 364 //
365 // WindowManagerInternal may only be installed from the connection that created 365 // WindowManagerInternal may only be installed from the connection that created
366 // a new window tree (see WindowTreeHostFactory). 366 // a new window tree (see WindowTreeHostFactory).
367 // 367 //
368 // This interface is only used as an associated interface and is associated 368 // This interface is only used as an associated interface and is associated
369 // with WindowTreeClient. 369 // with WindowTreeClient.
370 // TODO(sky): rename this to WindowManager.
370 interface WindowManagerInternal { 371 interface WindowManagerInternal {
371 // When the WindowManagerInternal completes a request it must call back to 372 // When the WindowManagerInternal completes a request it must call back to
372 // WindowManagerInternalClient::WmResponse(). 373 // WindowManagerInternalClient::WmResponse().
373 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); 374 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds);
374 WmSetProperty(uint32 change_id, 375 WmSetProperty(uint32 change_id,
375 uint32 window_id, 376 uint32 window_id,
376 string name, 377 string name,
377 array<uint8>? value); 378 array<uint8>? value);
378 // Asks the WindowManager to create a new window. 379 // Asks the WindowManager to create a new window.
379 WmCreateTopLevelWindow(uint32 change_id, 380 WmCreateTopLevelWindow(uint32 change_id,
380 map<string, array<uint8>> properties); 381 map<string, array<uint8>> properties);
381 }; 382 };
382 383
383 // This interface is only used as an associated interface and is associated 384 // This interface is only used as an associated interface and is associated
384 // with WindowTree. 385 // with WindowTree.
386 // TODO(sky): rename this to WindowManagerClient.
385 interface WindowManagerInternalClient { 387 interface WindowManagerInternalClient {
386 // The window manager has completed a request with the specific change id. 388 // The window manager has completed a request with the specific change id.
387 WmResponse(uint32 change_id, bool response); 389 WmResponse(uint32 change_id, bool response);
388 390
389 // Calls WindowTreeClient::RequestClose() on the embedded app at the 391 // Calls WindowTreeClient::RequestClose() on the embedded app at the
390 // specified window. 392 // specified window.
391 WmRequestClose(uint32 window_id); 393 WmRequestClose(uint32 window_id);
392 394
395 // Sets the frame decoration constants of the display the window manager is
396 // associated with.
397 WmSetFrameDecorationValues(FrameDecorationValues values);
398
393 // Response from WmCreateTopLevelWindow() informing the client of the id for 399 // Response from WmCreateTopLevelWindow() informing the client of the id for
394 // the new window. 400 // the new window.
395 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 401 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
396 }; 402 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698