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

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

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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 mus.mojom; 5 module mus.mojom;
6 6
7 import "components/mus/public/interfaces/cursor.mojom"; 7 import "components/mus/public/interfaces/cursor.mojom";
8 import "components/mus/public/interfaces/event_matcher.mojom"; 8 import "components/mus/public/interfaces/event_matcher.mojom";
9 import "components/mus/public/interfaces/window_manager_constants.mojom"; 9 import "components/mus/public/interfaces/window_manager_constants.mojom";
10 import "components/mus/public/interfaces/window_tree_constants.mojom";
10 import "ui/events/mojo/event.mojom"; 11 import "ui/events/mojo/event.mojom";
11 import "ui/gfx/geometry/mojo/geometry.mojom"; 12 import "ui/gfx/geometry/mojo/geometry.mojom";
12 13
13 // WindowManager is used when a WindowTreeClient attempts to modify 14 // WindowManager is used when a WindowTreeClient attempts to modify
14 // a property of the embed root. When this happens WindowTree calls the 15 // a property of the embed root. When this happens WindowTree calls the
15 // appropriate function on WindowManager. For example, if a 16 // appropriate function on WindowManager. For example, if a
16 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree 17 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree
17 // calls WmSetBounds(). WindowManager can then decide if it wants to 18 // calls WmSetBounds(). WindowManager can then decide if it wants to
18 // change the bounds or not. 19 // change the bounds or not.
19 // 20 //
(...skipping 27 matching lines...) Expand all
47 // The window's title. Type: mojom::String 48 // The window's title. Type: mojom::String
48 const string kWindowTitle_Property = "prop:window-title"; 49 const string kWindowTitle_Property = "prop:window-title";
49 // A flag controlling the window's presence on the mash shelf. Type: bool 50 // A flag controlling the window's presence on the mash shelf. Type: bool
50 const string kWindowIgnoredByShelf_Property = "prop:window-ignored-by-shelf"; 51 const string kWindowIgnoredByShelf_Property = "prop:window-ignored-by-shelf";
51 // The application ID (eg. 'mojo:foo'). Type: mojom::String 52 // The application ID (eg. 'mojo:foo'). Type: mojom::String
52 const string kAppID_Property = "prop:app-id"; 53 const string kAppID_Property = "prop:app-id";
53 // Specifies that the system default caption and icon should not be rendered, 54 // Specifies that the system default caption and icon should not be rendered,
54 // and the client area should be equivalent to the window area. Type: bool 55 // and the client area should be equivalent to the window area. Type: bool
55 const string kRemoveStandardFrame_Property = "prop:remove-standard-frame"; 56 const string kRemoveStandardFrame_Property = "prop:remove-standard-frame";
56 57
58 // Called immediately when the WindowManager is obtained.
59 OnConnect(uint16 client_id);
60
61 // Called when a new display is added. |root| gives the root window specific
62 // to this WindowManager for |display|.
63 WmNewDisplayAdded(Display display, WindowData root, bool parent_drawn);
64
57 // When the WindowManager completes a request it must call back to 65 // When the WindowManager completes a request it must call back to
58 // WindowManagerClient::WmResponse(). 66 // WindowManagerClient::WmResponse().
59 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds); 67 WmSetBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds);
60 WmSetProperty(uint32 change_id, 68 WmSetProperty(uint32 change_id,
61 uint32 window_id, 69 uint32 window_id,
62 string name, 70 string name,
63 array<uint8>? value); 71 array<uint8>? value);
64 72
65 // Asks the WindowManager to create a new window. 73 // Asks the WindowManager to create a new window.
66 // |requesting_client_id| is the id of the client issuing the request. This 74 // |requesting_client_id| is the id of the client issuing the request. This
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // associated with. 125 // associated with.
118 WmSetFrameDecorationValues(FrameDecorationValues values); 126 WmSetFrameDecorationValues(FrameDecorationValues values);
119 127
120 // Sets the cursor that the non-client areas of the window should use. 128 // Sets the cursor that the non-client areas of the window should use.
121 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 129 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
122 130
123 // Response from WmCreateTopLevelWindow() informing the client of the id for 131 // Response from WmCreateTopLevelWindow() informing the client of the id for
124 // the new window. 132 // the new window.
125 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 133 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
126 }; 134 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/BUILD.gn ('k') | components/mus/public/interfaces/window_manager_factory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698