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

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

Issue 286653003: Revert 270122 "Synchronizes View instances across clients." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // These functions trivially delegate to all ViewManagerConnections, which in 79 // These functions trivially delegate to all ViewManagerConnections, which in
80 // term notify their clients. 80 // term notify their clients.
81 void NotifyNodeHierarchyChanged(const NodeId& node, 81 void NotifyNodeHierarchyChanged(const NodeId& node,
82 const NodeId& new_parent, 82 const NodeId& new_parent,
83 const NodeId& old_parent); 83 const NodeId& old_parent);
84 void NotifyNodeViewReplaced(const NodeId& node, 84 void NotifyNodeViewReplaced(const NodeId& node,
85 const ViewId& new_view_id, 85 const ViewId& new_view_id,
86 const ViewId& old_view_id); 86 const ViewId& old_view_id);
87 void NotifyNodeDeleted(const NodeId& node); 87 void NotifyNodeDeleted(const NodeId& node);
88 void NotifyViewDeleted(const ViewId& view);
89 88
90 private: 89 private:
91 // Used to setup any static state needed by RootNodeManager. 90 // Used to setup any static state needed by RootNodeManager.
92 struct Context { 91 struct Context {
93 Context(); 92 Context();
94 ~Context(); 93 ~Context();
95 }; 94 };
96 95
97 // Tracks a change. 96 // Tracks a change.
98 struct Change { 97 struct Change {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 Node root_; 149 Node root_;
151 150
152 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 151 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
153 }; 152 };
154 153
155 } // namespace view_manager 154 } // namespace view_manager
156 } // namespace services 155 } // namespace services
157 } // namespace mojo 156 } // namespace mojo
158 157
159 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 158 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698