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

Unified Diff: services/ui/ws/server_window.h

Issue 2580703005: Fixes bug in ServerWindowCompositorFrameSinkManager (Closed)
Patch Set: merge Created 4 years 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
Index: services/ui/ws/server_window.h
diff --git a/services/ui/ws/server_window.h b/services/ui/ws/server_window.h
index 9dca09a4020087b2ddd58fdedd57b3e16385b679..32a4957cc09dd382e2b03415333f03a76bada415 100644
--- a/services/ui/ws/server_window.h
+++ b/services/ui/ws/server_window.h
@@ -106,6 +106,8 @@ class ServerWindow {
const ServerWindow* parent() const { return parent_; }
ServerWindow* parent() { return parent_; }
+ // NOTE: this returns null if the window does not have an ancestor associated
+ // with a display.
const ServerWindow* GetRoot() const;
ServerWindow* GetRoot() {
return const_cast<ServerWindow*>(
@@ -206,6 +208,10 @@ class ServerWindow {
// Implementation of removing a window. Doesn't send any notification.
void RemoveImpl(ServerWindow* window);
+ // Called when the root window changes from |old_root| to |new_root|. This is
+ // called after the window is moved from |old_root| to |new_root|.
+ void ProcessRootChanged(ServerWindow* old_root, ServerWindow* new_root);
+
// Called when this window's stacking order among its siblings is changed.
void OnStackingChanged();
« no previous file with comments | « no previous file | services/ui/ws/server_window.cc » ('j') | services/ui/ws/server_window_compositor_frame_sink_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698