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

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

Issue 1419793006: Makes windowmanager draw non-client area (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add include Created 5 years, 1 month 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/input_events.mojom"; 8 import "components/mus/public/interfaces/input_events.mojom";
9 import "components/mus/public/interfaces/mus_constants.mojom"; 9 import "components/mus/public/interfaces/mus_constants.mojom";
10 import "components/mus/public/interfaces/surface_id.mojom"; 10 import "components/mus/public/interfaces/surface_id.mojom";
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 NewWindow(uint32 window_id) => (ErrorCode error_code); 83 NewWindow(uint32 window_id) => (ErrorCode error_code);
84 84
85 // Deletes a window. This does not recurse. No hierarchy change notifications 85 // Deletes a window. This does not recurse. No hierarchy change notifications
86 // are sent as a result of this. Only the connection that created the window 86 // are sent as a result of this. Only the connection that created the window
87 // can delete it. 87 // can delete it.
88 DeleteWindow(uint32 window_id) => (bool success); 88 DeleteWindow(uint32 window_id) => (bool success);
89 89
90 // Sets the specified bounds of the specified window. 90 // Sets the specified bounds of the specified window.
91 SetWindowBounds(uint32 window_id, mojo.Rect bounds) => (bool success); 91 SetWindowBounds(uint32 window_id, mojo.Rect bounds) => (bool success);
92 92
93 // Sets the client area of the specified window. Areas outside the client 93 // Sets the insets of the client area of the specified window.
94 // area are treated specially. 94 SetClientArea(uint32 window_id, mojo.Insets insets);
95 SetClientArea(uint32 window_id, mojo.Rect rect);
96 95
97 // Sets the visibility of the specified window to |visible|. Connections are 96 // Sets the visibility of the specified window to |visible|. Connections are
98 // allowed to change the visibility of any window they have created, as well 97 // allowed to change the visibility of any window they have created, as well
99 // as any of their roots. 98 // as any of their roots.
100 SetWindowVisibility(uint32 window_id, bool visible) => (bool success); 99 SetWindowVisibility(uint32 window_id, bool visible) => (bool success);
101 100
102 // Sets an individual named property. Setting an individual property to null 101 // Sets an individual named property. Setting an individual property to null
103 // deletes the property. 102 // deletes the property.
104 SetWindowProperty(uint32 window_id, 103 SetWindowProperty(uint32 window_id,
105 string name, 104 string name,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 189
191 // -------------------------------------------------------------------------- 190 // --------------------------------------------------------------------------
192 // This section is for functions that call through directly to the 191 // This section is for functions that call through directly to the
193 // WindowManager. It is expected this will move into an associated interface. 192 // WindowManager. It is expected this will move into an associated interface.
194 // See window_manager.mojom for details of these functions. 193 // See window_manager.mojom for details of these functions.
195 // OpenWindow(WindowTreeClient client); 194 // OpenWindow(WindowTreeClient client);
196 SetPreferredSize(uint32 window_id, mojo.Size size) => 195 SetPreferredSize(uint32 window_id, mojo.Size size) =>
197 (WindowManagerErrorCode result); 196 (WindowManagerErrorCode result);
198 SetShowState(uint32 window_id, ShowState show_state) => 197 SetShowState(uint32 window_id, ShowState show_state) =>
199 (WindowManagerErrorCode result); 198 (WindowManagerErrorCode result);
200 GetDisplays() => (array<Display> displays);
201 }; 199 };
202 200
203 // Changes to windows are not sent to the connection that originated the 201 // Changes to windows are not sent to the connection that originated the
204 // change. For example, if connection 1 changes the bounds of a window by 202 // change. For example, if connection 1 changes the bounds of a window by
205 // calling SetWindowBounds(), connection 1 does not receive 203 // calling SetWindowBounds(), connection 1 does not receive
206 // OnWindowBoundsChanged(). 204 // OnWindowBoundsChanged().
207 interface WindowTreeClient { 205 interface WindowTreeClient {
208 // Invoked when the client application has been embedded at |root|. 206 // Invoked when the client application has been embedded at |root|.
209 // See Embed() on WindowTree for more details. |tree| will be a handle back to 207 // See Embed() on WindowTree for more details. |tree| will be a handle back to
210 // the window manager service, unless the connection is to the root connection 208 // the window manager service, unless the connection is to the root connection
(...skipping 13 matching lines...) Expand all
224 // Sent when another connection is embedded in the Window this connection was 222 // Sent when another connection is embedded in the Window this connection was
225 // previously embedded in. See Embed() for more information. 223 // previously embedded in. See Embed() for more information.
226 OnUnembed(); 224 OnUnembed();
227 225
228 // Invoked when a window's bounds have changed. 226 // Invoked when a window's bounds have changed.
229 OnWindowBoundsChanged(uint32 window, 227 OnWindowBoundsChanged(uint32 window,
230 mojo.Rect old_bounds, 228 mojo.Rect old_bounds,
231 mojo.Rect new_bounds); 229 mojo.Rect new_bounds);
232 230
233 OnClientAreaChanged(uint32 window_id, 231 OnClientAreaChanged(uint32 window_id,
234 mojo.Rect old_client_area, 232 mojo.Insets old_client_area,
235 mojo.Rect new_client_area); 233 mojo.Insets new_client_area);
236 234
237 // Invoked when the viewport metrics for the window have changed. 235 // Invoked when the viewport metrics for the window have changed.
238 // Clients are expected to propagate this to the window tree. 236 // Clients are expected to propagate this to the window tree.
239 OnWindowViewportMetricsChanged(ViewportMetrics old_metrics, 237 OnWindowViewportMetricsChanged(ViewportMetrics old_metrics,
240 ViewportMetrics new_metrics); 238 ViewportMetrics new_metrics);
241 239
242 // Invoked when a change is done to the hierarchy. A value of 0 is used to 240 // Invoked when a change is done to the hierarchy. A value of 0 is used to
243 // identify a null window. For example, if the old_parent is NULL, 0 is 241 // identify a null window. For example, if the old_parent is NULL, 0 is
244 // supplied. 242 // supplied.
245 // |windows| contains any windows that are that the client has not been told 243 // |windows| contains any windows that are that the client has not been told
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // |new_data| is null. 275 // |new_data| is null.
278 OnWindowSharedPropertyChanged(uint32 window, 276 OnWindowSharedPropertyChanged(uint32 window,
279 string name, 277 string name,
280 array<uint8>? new_data); 278 array<uint8>? new_data);
281 279
282 // Invoked when an event is targeted at the specified window. 280 // Invoked when an event is targeted at the specified window.
283 OnWindowInputEvent(uint32 window, Event event) => (); 281 OnWindowInputEvent(uint32 window, Event event) => ();
284 282
285 OnWindowFocused(uint32 focused_window_id); 283 OnWindowFocused(uint32 focused_window_id);
286 }; 284 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/window_manager.mojom ('k') | components/mus/ws/connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698