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

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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Node* root() { return &root_; } 64 Node* root() { return &root_; }
65 65
66 // These functions trivially delegate to all ViewManagerConnections, which in 66 // These functions trivially delegate to all ViewManagerConnections, which in
67 // term notify their clients. 67 // term notify their clients.
68 void NotifyNodeHierarchyChanged(const NodeId& node, 68 void NotifyNodeHierarchyChanged(const NodeId& node,
69 const NodeId& new_parent, 69 const NodeId& new_parent,
70 const NodeId& old_parent); 70 const NodeId& old_parent);
71 void NotifyNodeViewReplaced(const NodeId& node, 71 void NotifyNodeViewReplaced(const NodeId& node,
72 const ViewId& new_view_id, 72 const ViewId& new_view_id,
73 const ViewId& old_view_id); 73 const ViewId& old_view_id);
74 void NotifyNodeDeleted(const NodeId& node);
74 75
75 private: 76 private:
76 // Used to setup any static state needed by RootNodeManager. 77 // Used to setup any static state needed by RootNodeManager.
77 struct Context { 78 struct Context {
78 Context(); 79 Context();
79 ~Context(); 80 ~Context();
80 }; 81 };
81 82
82 // Tracks a change. 83 // Tracks a change.
83 struct Change { 84 struct Change {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 Node root_; 130 Node root_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 132 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
132 }; 133 };
133 134
134 } // namespace view_manager 135 } // namespace view_manager
135 } // namespace services 136 } // namespace services
136 } // namespace mojo 137 } // namespace mojo
137 138
138 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 139 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/services/public/interfaces/view_manager/view_manager.mojom ('k') | mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698