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

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

Issue 2019013002: mus: Send display-id to client only for the root windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mojom-format 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 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 "cc/ipc/surface_id.mojom"; 7 import "cc/ipc/surface_id.mojom";
8 import "components/mus/public/interfaces/compositor_frame.mojom"; 8 import "components/mus/public/interfaces/compositor_frame.mojom";
9 import "components/mus/public/interfaces/cursor.mojom"; 9 import "components/mus/public/interfaces/cursor.mojom";
10 import "components/mus/public/interfaces/event_matcher.mojom"; 10 import "components/mus/public/interfaces/event_matcher.mojom";
(...skipping 11 matching lines...) Expand all
22 }; 22 };
23 23
24 struct WindowData { 24 struct WindowData {
25 uint32 parent_id; 25 uint32 parent_id;
26 uint32 window_id; 26 uint32 window_id;
27 mojo.Rect bounds; 27 mojo.Rect bounds;
28 map<string, array<uint8>> properties; 28 map<string, array<uint8>> properties;
29 // True if this window is visible. The window may not be drawn on screen (see 29 // True if this window is visible. The window may not be drawn on screen (see
30 // OnWindowParentDrawnStateChanged() for details). 30 // OnWindowParentDrawnStateChanged() for details).
31 bool visible; 31 bool visible;
32 int64 display_id;
33 }; 32 };
34 33
35 enum ErrorCode { 34 enum ErrorCode {
36 NONE, 35 NONE,
37 VALUE_IN_USE, 36 VALUE_IN_USE,
38 ILLEGAL_ARGUMENT, 37 ILLEGAL_ARGUMENT,
39 }; 38 };
40 39
41 // Each Window has support for two surfaces. Generally the |DEFAULT| surface 40 // Each Window has support for two surfaces. Generally the |DEFAULT| surface
42 // is used. The |UNDERLAY| surface is useful if the owner of a window wants to 41 // is used. The |UNDERLAY| surface is useful if the owner of a window wants to
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // OnWindowBoundsChanged(). 279 // OnWindowBoundsChanged().
281 interface WindowTreeClient { 280 interface WindowTreeClient {
282 // Invoked when the client application has been embedded at |root|. 281 // Invoked when the client application has been embedded at |root|.
283 // See Embed() on WindowTree for more details. |tree| will be a handle back to 282 // See Embed() on WindowTree for more details. |tree| will be a handle back to
284 // the window manager service, unless the connection is to the root connection 283 // the window manager service, unless the connection is to the root connection
285 // in which case it will be null. |parent_drawn| is true if roots parent is 284 // in which case it will be null. |parent_drawn| is true if roots parent is
286 // drawn, see OnParentDrawnStateChanged() for details. 285 // drawn, see OnParentDrawnStateChanged() for details.
287 OnEmbed(uint16 connection_id, 286 OnEmbed(uint16 connection_id,
288 WindowData root, 287 WindowData root,
289 WindowTree? tree, 288 WindowTree? tree,
289 int64 display_id,
sky 2016/05/27 16:25:56 Document what display_id means here and below.
sadrul 2016/05/27 16:37:28 Done.
290 uint32 focused_window, 290 uint32 focused_window,
291 bool parent_drawn); 291 bool parent_drawn);
292 292
293 // Invoked when the application embedded at |window| is disconnected. In other 293 // Invoked when the application embedded at |window| is disconnected. In other
294 // words the embedded app closes the connection to the server. This is called 294 // words the embedded app closes the connection to the server. This is called
295 // on the connection that created |window| as well as any ancestors that have 295 // on the connection that created |window| as well as any ancestors that have
296 // the embed root policy. 296 // the embed root policy.
297 OnEmbeddedAppDisconnected(uint32 window); 297 OnEmbeddedAppDisconnected(uint32 window);
298 298
299 // Sent when another connection is embedded in the Window this connection was 299 // Sent when another connection is embedded in the Window this connection was
300 // previously embedded in. See Embed() for more information. 300 // previously embedded in. See Embed() for more information.
301 OnUnembed(uint32 window); 301 OnUnembed(uint32 window);
302 302
303 // Sent when a window loses capture. 303 // Sent when a window loses capture.
304 OnLostCapture(uint32 window); 304 OnLostCapture(uint32 window);
305 305
306 // Called in response to NewTopLevelWindow() successfully completing. 306 // Called in response to NewTopLevelWindow() successfully completing.
307 // |parent_drawn| is true if the parent of the window is drawn, see 307 // |parent_drawn| is true if the parent of the window is drawn, see
308 // OnDrawnStateChanged() for details. 308 // OnDrawnStateChanged() for details.
309 OnTopLevelCreated(uint32 change_id, WindowData data, bool parent_drawn); 309 OnTopLevelCreated(uint32 change_id,
310 WindowData data,
311 int64 display_id,
312 bool parent_drawn);
310 313
311 // Invoked when a window's bounds have changed. 314 // Invoked when a window's bounds have changed.
312 OnWindowBoundsChanged(uint32 window, 315 OnWindowBoundsChanged(uint32 window,
313 mojo.Rect old_bounds, 316 mojo.Rect old_bounds,
314 mojo.Rect new_bounds); 317 mojo.Rect new_bounds);
315 318
316 OnClientAreaChanged(uint32 window_id, 319 OnClientAreaChanged(uint32 window_id,
317 mojo.Insets new_client_area, 320 mojo.Insets new_client_area,
318 array<mojo.Rect> new_additional_client_areas); 321 array<mojo.Rect> new_additional_client_areas);
319 322
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // See description of WindowManager for details. 405 // See description of WindowManager for details.
403 GetWindowManager(associated WindowManager& internal); 406 GetWindowManager(associated WindowManager& internal);
404 }; 407 };
405 408
406 // Mus provides this interface as a way for clients to connect and obtain a 409 // Mus provides this interface as a way for clients to connect and obtain a
407 // WindowTree handle with a supplied WindowTreeClient handle. The 410 // WindowTree handle with a supplied WindowTreeClient handle. The
408 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 411 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
409 interface WindowTreeFactory { 412 interface WindowTreeFactory {
410 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 413 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
411 }; 414 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc ('k') | components/mus/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698