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

Unified Diff: components/mus/public/cpp/view_tree_connection.h

Issue 1390353007: Adds MUSViewsInit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows Created 5 years, 2 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 | « components/mus/public/cpp/tests/view_manager_test_base.cc ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/view_tree_connection.h
diff --git a/components/mus/public/cpp/view_tree_connection.h b/components/mus/public/cpp/view_tree_connection.h
index 984e664bd2b6f40bb654d023864996b4fb0d9d56..ee1095a0014d9b9ee3564e6e27ff31126a394523 100644
--- a/components/mus/public/cpp/view_tree_connection.h
+++ b/components/mus/public/cpp/view_tree_connection.h
@@ -20,13 +20,22 @@ class ViewTreeDelegate;
// every time an app is embedded.
class ViewTreeConnection {
public:
+ enum class CreateType {
+ // Indicates Create() should wait for OnEmbed(). If true, the
+ // ViewTreeConnection returned from Create() will have its root, otherwise
+ // the ViewTreeConnection will get the root at a later time.
+ WAIT_FOR_EMBED,
+ DONT_WAIT_FOR_EMBED
+ };
+
virtual ~ViewTreeConnection() {}
// The returned ViewTreeConnection instance owns itself, and is deleted when
// the last root is destroyed or the connection to the service is broken.
static ViewTreeConnection* Create(
ViewTreeDelegate* delegate,
- mojo::InterfaceRequest<mojo::ViewTreeClient> request);
+ mojo::InterfaceRequest<mojo::ViewTreeClient> request,
+ CreateType create_type);
// Returns the root of this connection.
virtual View* GetRoot() = 0;
« no previous file with comments | « components/mus/public/cpp/tests/view_manager_test_base.cc ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698