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

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

Issue 489493004: Update view manager to support content handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blah to the blizzah Created 6 years, 3 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 bool is_processing_delete_node() const { 102 bool is_processing_delete_node() const {
103 return current_change_ && current_change_->is_delete_node(); } 103 return current_change_ && current_change_->is_delete_node(); }
104 104
105 // Invoked when a connection messages a client about the change. This is used 105 // Invoked when a connection messages a client about the change. This is used
106 // to avoid sending ServerChangeIdAdvanced() unnecessarily. 106 // to avoid sending ServerChangeIdAdvanced() unnecessarily.
107 void OnConnectionMessagedClient(ConnectionSpecificId id); 107 void OnConnectionMessagedClient(ConnectionSpecificId id);
108 108
109 // Returns true if OnConnectionMessagedClient() was invoked for id. 109 // Returns true if OnConnectionMessagedClient() was invoked for id.
110 bool DidConnectionMessageClient(ConnectionSpecificId id) const; 110 bool DidConnectionMessageClient(ConnectionSpecificId id) const;
111 111
112 ViewManagerServiceImpl* GetConnectionByCreator(
113 ConnectionSpecificId creator_id,
114 const std::string& url) const;
115
116 // Returns the ViewManagerServiceImpl that has |id| as a root. 112 // Returns the ViewManagerServiceImpl that has |id| as a root.
117 ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id) { 113 ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id) {
118 return const_cast<ViewManagerServiceImpl*>( 114 return const_cast<ViewManagerServiceImpl*>(
119 const_cast<const RootNodeManager*>(this)->GetConnectionWithRoot(id)); 115 const_cast<const RootNodeManager*>(this)->GetConnectionWithRoot(id));
120 } 116 }
121 const ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id) const; 117 const ViewManagerServiceImpl* GetConnectionWithRoot(const NodeId& id) const;
122 118
123 void DispatchNodeInputEventToWindowManager(EventPtr event); 119 void DispatchNodeInputEventToWindowManager(EventPtr event);
124 120
125 // These functions trivially delegate to all ViewManagerServiceImpls, which in 121 // These functions trivially delegate to all ViewManagerServiceImpls, which in
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // (it's created on the stack by ViewManagerServiceImpl). 196 // (it's created on the stack by ViewManagerServiceImpl).
201 ScopedChange* current_change_; 197 ScopedChange* current_change_;
202 198
203 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 199 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
204 }; 200 };
205 201
206 } // namespace service 202 } // namespace service
207 } // namespace mojo 203 } // namespace mojo
208 204
209 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 205 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/services/public/interfaces/content_handler/content_handler.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