Index: mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h |
diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h b/mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h |
index 7540d1bf22e805507aebb3b7dffa1676eb32f5b2..5d0762bad6c2158af4cb78d8cea2e876c5571a70 100644 |
--- a/mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h |
+++ b/mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h |
@@ -30,11 +30,14 @@ class ViewManagerSynchronizer : public IViewManagerClient { |
bool connected() const { return connected_; } |
- // API exposed to the node implementation that pushes local changes to the |
- // service. |
+ // API exposed to the node/view implementations that pushes local changes to |
+ // the service. |
TransportNodeId CreateViewTreeNode(); |
void DestroyViewTreeNode(TransportNodeId node_id); |
+ TransportViewId CreateView(); |
+ void DestroyView(TransportViewId view_id); |
+ |
// These methods take TransportIds. For views owned by the current connection, |
// the connection id high word can be zero. In all cases, the TransportId 0x1 |
// refers to the root node. |
@@ -42,6 +45,9 @@ class ViewManagerSynchronizer : public IViewManagerClient { |
void RemoveChild(TransportNodeId child_id, TransportNodeId parent_id); |
bool OwnsNode(TransportNodeId id) const; |
+ bool OwnsView(TransportViewId id) const; |
+ |
+ void SetActiveView(TransportNodeId node_id, TransportViewId view_id); |
private: |
friend class ViewManagerTransaction; |
@@ -58,6 +64,7 @@ class ViewManagerSynchronizer : public IViewManagerClient { |
uint32_t old_view_id, |
uint32_t change_id) OVERRIDE; |
virtual void OnNodeDeleted(uint32_t node_id, uint32_t change_id) OVERRIDE; |
+ virtual void OnViewDeleted(uint32_t view_id, uint32_t change_id) OVERRIDE; |
// Called to schedule a sync of the client model with the service after a |
// return to the message loop. |