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

Side by Side Diff: mojo/services/view_manager/root_node_manager.h

Issue 274733004: Deletion/ownership (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 View* GetView(const ViewId& id); 61 View* GetView(const ViewId& id);
62 62
63 // These functions trivially delegate to all ViewManagerConnections, which in 63 // These functions trivially delegate to all ViewManagerConnections, which in
64 // term notify their clients. 64 // term notify their clients.
65 void NotifyNodeHierarchyChanged(const NodeId& node, 65 void NotifyNodeHierarchyChanged(const NodeId& node,
66 const NodeId& new_parent, 66 const NodeId& new_parent,
67 const NodeId& old_parent); 67 const NodeId& old_parent);
68 void NotifyNodeViewReplaced(const NodeId& node, 68 void NotifyNodeViewReplaced(const NodeId& node,
69 const ViewId& new_view_id, 69 const ViewId& new_view_id,
70 const ViewId& old_view_id); 70 const ViewId& old_view_id);
71 void NotifyNodeDeleted(const NodeId& node);
71 72
72 private: 73 private:
73 // Tracks a change. 74 // Tracks a change.
74 struct Change { 75 struct Change {
75 Change(TransportConnectionId connection_id, TransportChangeId change_id) 76 Change(TransportConnectionId connection_id, TransportChangeId change_id)
76 : connection_id(connection_id), 77 : connection_id(connection_id),
77 change_id(change_id) { 78 change_id(change_id) {
78 } 79 }
79 80
80 TransportConnectionId connection_id; 81 TransportConnectionId connection_id;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 scoped_ptr<Change> change_; 124 scoped_ptr<Change> change_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 126 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
126 }; 127 };
127 128
128 } // namespace view_manager 129 } // namespace view_manager
129 } // namespace services 130 } // namespace services
130 } // namespace mojo 131 } // namespace mojo
131 132
132 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 133 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698