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

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

Issue 415793003: Changes access policy for embedded nodes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 4 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 #include <set> 9 #include <set>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void OnConnectionMessagedClient(ConnectionSpecificId id); 113 void OnConnectionMessagedClient(ConnectionSpecificId id);
114 114
115 // Returns true if OnConnectionMessagedClient() was invoked for id. 115 // Returns true if OnConnectionMessagedClient() was invoked for id.
116 bool DidConnectionMessageClient(ConnectionSpecificId id) const; 116 bool DidConnectionMessageClient(ConnectionSpecificId id) const;
117 117
118 ViewManagerServiceImpl* GetConnectionByCreator( 118 ViewManagerServiceImpl* GetConnectionByCreator(
119 ConnectionSpecificId creator_id, 119 ConnectionSpecificId creator_id,
120 const std::string& url) const; 120 const std::string& url) const;
121 121
122 // Returns the ViewManagerServiceImpl that has |id| as a root. 122 // Returns the ViewManagerServiceImpl that has |id| as a root.
123 ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id); 123 ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id) {
124 return const_cast<ViewManagerServiceImpl*>(
125 const_cast<const RootNodeManager*>(this)->GetConnectionWithRoot(id));
126 }
127 const ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id) const;
124 128
125 void DispatchViewInputEventToWindowManager(const View* view, 129 void DispatchViewInputEventToWindowManager(const View* view,
126 const ui::Event* event); 130 const ui::Event* event);
127 131
128 // These functions trivially delegate to all ViewManagerServiceImpls, which in 132 // These functions trivially delegate to all ViewManagerServiceImpls, which in
129 // term notify their clients. 133 // term notify their clients.
130 void ProcessNodeDestroyed(Node* node); 134 void ProcessNodeDestroyed(Node* node);
131 void ProcessNodeBoundsChanged(const Node* node, 135 void ProcessNodeBoundsChanged(const Node* node,
132 const gfx::Rect& old_bounds, 136 const gfx::Rect& old_bounds,
133 const gfx::Rect& new_bounds); 137 const gfx::Rect& new_bounds);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 ScopedChange* current_change_; 219 ScopedChange* current_change_;
216 220
217 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 221 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
218 }; 222 };
219 223
220 } // namespace service 224 } // namespace service
221 } // namespace view_manager 225 } // namespace view_manager
222 } // namespace mojo 226 } // namespace mojo
223 227
224 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 228 #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