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

Unified Diff: ui/aura/mus/window_tree_client.h

Issue 2557353003: Changes OnWindowHierarchyChanged() to include transient parent (Closed)
Patch Set: fix 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
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.h
diff --git a/ui/aura/mus/window_tree_client.h b/ui/aura/mus/window_tree_client.h
index cd686e8350113b213e0a23945d81b0b266928f9b..60b35b155d5feec65494bcdc953eabb73b2a8fe7 100644
--- a/ui/aura/mus/window_tree_client.h
+++ b/ui/aura/mus/window_tree_client.h
@@ -181,6 +181,8 @@ class AURA_EXPORT WindowTreeClient
WindowMus* GetWindowByServerId(Id id);
+ bool IsWindowKnown(aura::Window* window);
+
// Returns the oldest InFlightChange that matches |change|.
InFlightChange* GetOldestInFlightChangeMatching(const InFlightChange& change);
@@ -195,25 +197,29 @@ class AURA_EXPORT WindowTreeClient
void BuildWindowTree(const std::vector<ui::mojom::WindowDataPtr>& windows);
+ // If the window identified by |window_data| doesn't exist a new window is
+ // created, otherwise the existing window is updated based on |window_data|.
+ void CreateOrUpdateWindowFromWindowData(
+ const ui::mojom::WindowData& window_data);
+
// Creates a WindowPortMus from the server side data.
std::unique_ptr<WindowPortMus> CreateWindowPortMus(
- const ui::mojom::WindowDataPtr& window_data,
+ const ui::mojom::WindowData& window_data,
WindowMusType window_mus_type);
// Sets local properties on the associated Window from the server properties.
void SetLocalPropertiesFromServerProperties(
WindowMus* window,
- const ui::mojom::WindowDataPtr& window_data);
+ const ui::mojom::WindowData& window_data);
// Creates a new WindowTreeHostMus.
std::unique_ptr<WindowTreeHostMus> CreateWindowTreeHost(
WindowMusType window_mus_type,
- const ui::mojom::WindowDataPtr& window_data,
+ const ui::mojom::WindowData& window_data,
int64_t display_id);
- WindowMus* NewWindowFromWindowData(
- WindowMus* parent,
- const ui::mojom::WindowDataPtr& window_data);
+ WindowMus* NewWindowFromWindowData(WindowMus* parent,
+ const ui::mojom::WindowData& window_data);
// Sets the ui::mojom::WindowTree implementation.
void SetWindowTree(ui::mojom::WindowTreePtr window_tree_ptr);
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698