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

Unified Diff: services/ui/public/cpp/window_tree_host_factory.h

Issue 2301353003: Changes ownership of WindowTreeClient (Closed)
Patch Set: fix navigation Created 4 years, 3 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
Index: services/ui/public/cpp/window_tree_host_factory.h
diff --git a/services/ui/public/cpp/window_tree_host_factory.h b/services/ui/public/cpp/window_tree_host_factory.h
index 2f638865b8359fb7fd4cf3e241309767ed0f0f51..e21f39c080fcc33042bb12caeefbd70926875e9d 100644
--- a/services/ui/public/cpp/window_tree_host_factory.h
+++ b/services/ui/public/cpp/window_tree_host_factory.h
@@ -18,19 +18,22 @@ class Connector;
namespace ui {
class WindowManagerDelegate;
+class WindowTreeClient;
class WindowTreeClientDelegate;
// The following create a new window tree host. Supply a |factory| if you have
// already connected to mus, otherwise supply |shell|, which contacts mus and
// obtains a WindowTreeHostFactory.
-void CreateWindowTreeHost(mojom::WindowTreeHostFactory* factory,
- WindowTreeClientDelegate* delegate,
- mojom::WindowTreeHostPtr* host,
- WindowManagerDelegate* window_manager_delegate);
-void CreateWindowTreeHost(shell::Connector* connector,
- WindowTreeClientDelegate* delegate,
- mojom::WindowTreeHostPtr* host,
- WindowManagerDelegate* window_manager_delegate);
+std::unique_ptr<WindowTreeClient> CreateWindowTreeHost(
+ mojom::WindowTreeHostFactory* factory,
+ WindowTreeClientDelegate* delegate,
+ mojom::WindowTreeHostPtr* host,
+ WindowManagerDelegate* window_manager_delegate);
+std::unique_ptr<WindowTreeClient> CreateWindowTreeHost(
+ shell::Connector* connector,
+ WindowTreeClientDelegate* delegate,
+ mojom::WindowTreeHostPtr* host,
+ WindowManagerDelegate* window_manager_delegate);
} // namespace ui
« no previous file with comments | « services/ui/public/cpp/window_tree_client_delegate.h ('k') | services/ui/public/cpp/window_tree_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698