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

Unified Diff: mojo/services/view_manager/root_node_manager.h

Issue 308803002: Change type of interface created by mojo:view_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 7 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 | « mojo/services/view_manager/main.cc ('k') | mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/root_node_manager.h
diff --git a/mojo/services/view_manager/root_node_manager.h b/mojo/services/view_manager/root_node_manager.h
index 001e3b2ac538160c6cfd6a47772468548ddf1ed7..204f1586b9226d0e272cf52f8d5f42b75f021c33 100644
--- a/mojo/services/view_manager/root_node_manager.h
+++ b/mojo/services/view_manager/root_node_manager.h
@@ -23,6 +23,7 @@ class ServiceProvider;
namespace view_manager {
namespace service {
+class RootViewManagerDelegate;
class View;
class ViewManagerConnection;
@@ -54,7 +55,8 @@ class MOJO_VIEW_MANAGER_EXPORT RootNodeManager : public NodeDelegate {
DISALLOW_COPY_AND_ASSIGN(ScopedChange);
};
- explicit RootNodeManager(ServiceProvider* service_provider);
+ RootNodeManager(ServiceProvider* service_provider,
+ RootViewManagerDelegate* view_manager_delegate);
virtual ~RootNodeManager();
// Returns the id for the next ViewManagerConnection.
@@ -67,6 +69,12 @@ class MOJO_VIEW_MANAGER_EXPORT RootNodeManager : public NodeDelegate {
void AddConnection(ViewManagerConnection* connection);
void RemoveConnection(ViewManagerConnection* connection);
+ // Establishes the initial client. Similar to Connect(), but the resulting
+ // client is allowed to do anything.
+ void InitialConnect(const std::string& url);
+
+ // See description of IViewManager::Connect() for details. This assumes
+ // |node_ids| has been validated.
void Connect(const String& url, const Array<TransportNodeId>& node_ids);
// Returns the connection by id.
@@ -123,6 +131,10 @@ class MOJO_VIEW_MANAGER_EXPORT RootNodeManager : public NodeDelegate {
return connection_id == change_source_;
}
+ // Implementation of the two connect variants.
+ ViewManagerConnection* ConnectImpl(const String& url,
+ const Array<TransportNodeId>& node_ids);
+
// Overridden from NodeDelegate:
virtual void OnNodeHierarchyChanged(const Node* node,
const Node* new_parent,
« no previous file with comments | « mojo/services/view_manager/main.cc ('k') | mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698