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

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

Issue 272833002: View synchronization (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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void NotifyNodeDeleted(const NodeId& node);
75 void NotifyViewDeleted(const ViewId& view);
75 76
76 private: 77 private:
77 // Used to setup any static state needed by RootNodeManager. 78 // Used to setup any static state needed by RootNodeManager.
78 struct Context { 79 struct Context {
79 Context(); 80 Context();
80 ~Context(); 81 ~Context();
81 }; 82 };
82 83
83 // Tracks a change. 84 // Tracks a change.
84 struct Change { 85 struct Change {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 Node root_; 131 Node root_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 133 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
133 }; 134 };
134 135
135 } // namespace view_manager 136 } // namespace view_manager
136 } // namespace services 137 } // namespace services
137 } // namespace mojo 138 } // namespace mojo
138 139
139 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 140 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698