| Index: mojo/services/view_manager/root_node_manager.cc
|
| diff --git a/mojo/services/view_manager/root_node_manager.cc b/mojo/services/view_manager/root_node_manager.cc
|
| index 77ebfcfc149670426fa0d091f1ec463deb2c1039..7bb794824b27c684951fad7b9a3c78dd3f6078eb 100644
|
| --- a/mojo/services/view_manager/root_node_manager.cc
|
| +++ b/mojo/services/view_manager/root_node_manager.cc
|
| @@ -80,7 +80,7 @@ Node* RootNodeManager::GetNode(const NodeId& id) {
|
| return i == connection_map_.end() ? NULL : i->second->GetNode(id);
|
| }
|
|
|
| -View* RootNodeManager::GetView(const ViewId& id) {
|
| +service::View* RootNodeManager::GetView(const ViewId& id) {
|
| ConnectionMap::iterator i = connection_map_.find(id.connection_id);
|
| return i == connection_map_.end() ? NULL : i->second->GetView(id);
|
| }
|
| @@ -116,6 +116,15 @@ void RootNodeManager::NotifyNodeDeleted(const NodeId& node) {
|
| }
|
| }
|
|
|
| +void RootNodeManager::NotifyViewDeleted(const ViewId& view) {
|
| + // TODO(sky): make a macro for this.
|
| + for (ConnectionMap::iterator i = connection_map_.begin();
|
| + i != connection_map_.end(); ++i) {
|
| + i->second->NotifyViewDeleted(view, next_server_change_id_,
|
| + GetClientChangeId(i->first));
|
| + }
|
| +}
|
| +
|
| void RootNodeManager::PrepareForChange(ViewManagerConnection* connection,
|
| TransportChangeId change_id) {
|
| DCHECK(!change_.get()); // Should only ever have one change in flight.
|
|
|