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

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

Issue 2712203002: c++ / mojo changes for 'external window mode'
Patch Set: rebased Created 3 years, 9 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 | « services/ui/ws/window_tree_host_factory_registrar.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 63073714c818f062032f27e0558111c8cbff5323..a4a4e8b261b053d8746f7f003d64d17902ea4a17 100644
--- a/ui/aura/mus/window_tree_client.h
+++ b/ui/aura/mus/window_tree_client.h
@@ -21,6 +21,7 @@
#include "mojo/public/cpp/bindings/associated_binding.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
+#include "services/ui/public/interfaces/window_tree_host.mojom.h"
#include "ui/aura/aura_export.h"
#include "ui/aura/client/transient_window_client_observer.h"
#include "ui/aura/mus/capture_synchronizer_delegate.h"
@@ -97,6 +98,9 @@ class AURA_EXPORT WindowTreeClient
// Establishes the connection by way of the WindowTreeFactory.
void ConnectViaWindowTreeFactory();
+ // Establishes the connection by way of the WindowTreeFactoryHost.
+ void ConnectViaWindowTreeHostFactory();
+
// Establishes the connection by way of WindowManagerWindowTreeFactory.
void ConnectAsWindowManager();
@@ -219,6 +223,9 @@ class AURA_EXPORT WindowTreeClient
const ui::mojom::WindowData& window_data,
int64_t display_id);
+ void ConfigureWindowDataFromServer(WindowTreeHostMus* window_tree_host,
+ const ui::mojom::WindowData& window_data);
+
WindowMus* NewWindowFromWindowData(WindowMus* parent,
const ui::mojom::WindowData& window_data);
@@ -528,6 +535,8 @@ class AURA_EXPORT WindowTreeClient
bool has_pointer_watcher_ = false;
+ bool in_external_window_mode_ = false;
+
// The current change id for the client.
uint32_t current_move_loop_change_ = 0u;
@@ -549,6 +558,9 @@ class AURA_EXPORT WindowTreeClient
// If |compositor_context_factory_| is installed on Env, then this is the
// ContextFactory that was set on Env originally.
ui::ContextFactory* initial_context_factory_ = nullptr;
+
+ ui::mojom::WindowTreeHostFactoryPtr window_tree_host_factory_ptr_;
+
base::WeakPtrFactory<WindowTreeClient> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
« no previous file with comments | « services/ui/ws/window_tree_host_factory_registrar.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698