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

Side by Side Diff: services/ui/public/interfaces/window_tree.mojom

Issue 2472983004: Fixs bug in notifying clients about hierarchy changes (Closed)
Patch Set: cleanup Created 4 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
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ui.mojom; 5 module ui.mojom;
6 6
7 import "cc/ipc/surface_id.mojom"; 7 import "cc/ipc/surface_id.mojom";
8 import "cc/ipc/surface_sequence.mojom"; 8 import "cc/ipc/surface_sequence.mojom";
9 import "cc/ipc/mojo_compositor_frame_sink.mojom"; 9 import "cc/ipc/mojo_compositor_frame_sink.mojom";
10 import "services/ui/public/interfaces/cursor.mojom"; 10 import "services/ui/public/interfaces/cursor.mojom";
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 OnTransientWindowAdded(uint32 window_id, 351 OnTransientWindowAdded(uint32 window_id,
352 uint32 transient_window_id); 352 uint32 transient_window_id);
353 353
354 OnTransientWindowRemoved(uint32 window_id, 354 OnTransientWindowRemoved(uint32 window_id,
355 uint32 transient_window_id); 355 uint32 transient_window_id);
356 356
357 // Invoked when a change is done to the hierarchy. A value of 0 is used to 357 // Invoked when a change is done to the hierarchy. A value of 0 is used to
358 // identify a null window. For example, if the old_parent is NULL, 0 is 358 // identify a null window. For example, if the old_parent is NULL, 0 is
359 // supplied. 359 // supplied.
360 // |windows| contains any windows that the client has not been told about. 360 // If |window| was not visible to this client, but is visible now because
361 // |new_parent| is visible to this client, then |windows| contains details
362 // about |window|, and all its descendants. |windows| includes any windows
363 // that client may already know about, but did not know the parent because
364 // the parent was previously not visible to this client.
361 // This is not sent for hierarchy changes of windows not known to this client 365 // This is not sent for hierarchy changes of windows not known to this client
362 // or not attached to the tree. 366 // or not attached to the tree.
363 OnWindowHierarchyChanged(uint32 window, 367 OnWindowHierarchyChanged(uint32 window,
364 uint32 old_parent, 368 uint32 old_parent,
365 uint32 new_parent, 369 uint32 new_parent,
366 array<WindowData> windows); 370 array<WindowData> windows);
367 371
368 // Invoked when the order of windows within a parent changes. 372 // Invoked when the order of windows within a parent changes.
369 OnWindowReordered(uint32 window_id, 373 OnWindowReordered(uint32 window_id,
370 uint32 relative_window_id, 374 uint32 relative_window_id,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // See description of WindowManager for details. 496 // See description of WindowManager for details.
493 GetWindowManager(associated WindowManager& internal); 497 GetWindowManager(associated WindowManager& internal);
494 }; 498 };
495 499
496 // Mus provides this interface as a way for clients to connect and obtain a 500 // Mus provides this interface as a way for clients to connect and obtain a
497 // WindowTree handle with a supplied WindowTreeClient handle. The 501 // WindowTree handle with a supplied WindowTreeClient handle. The
498 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 502 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
499 interface WindowTreeFactory { 503 interface WindowTreeFactory {
500 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 504 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
501 }; 505 };
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698