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

Unified 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: doc Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/window_tree.mojom
diff --git a/components/mus/public/interfaces/window_tree.mojom b/components/mus/public/interfaces/window_tree.mojom
index c08f52efce5cebc7d6926aab8221bb1da28e14ba..958f3a2a019ffaf71a71d09020d5b57402794d90 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -29,7 +29,6 @@ struct WindowData {
// True if this window is visible. The window may not be drawn on screen (see
// OnWindowParentDrawnStateChanged() for details).
bool visible;
- int64 display_id;
};
enum ErrorCode {
@@ -283,10 +282,12 @@ interface WindowTreeClient {
// See Embed() on WindowTree for more details. |tree| will be a handle back to
// the window manager service, unless the connection is to the root connection
// in which case it will be null. |parent_drawn| is true if roots parent is
- // drawn, see OnParentDrawnStateChanged() for details.
+ // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies
+ // the display this root window is on.
OnEmbed(uint16 connection_id,
WindowData root,
WindowTree? tree,
+ int64 display_id,
uint32 focused_window,
bool parent_drawn);
@@ -305,8 +306,12 @@ interface WindowTreeClient {
// Called in response to NewTopLevelWindow() successfully completing.
// |parent_drawn| is true if the parent of the window is drawn, see
- // OnDrawnStateChanged() for details.
- OnTopLevelCreated(uint32 change_id, WindowData data, bool parent_drawn);
+ // OnDrawnStateChanged() for details. |display_id| identifies the display this
+ // window is on.
+ OnTopLevelCreated(uint32 change_id,
+ WindowData data,
+ int64 display_id,
+ bool parent_drawn);
// Invoked when a window's bounds have changed.
OnWindowBoundsChanged(uint32 window,
« 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