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

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

Issue 514063003: Update view_manager and window_manager to make use of content handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@viewman2
Patch Set: git cl format 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
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_VIEW_MANAGER_SERVICE_IMPL_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // to |views|, marks |view| as known and recurses. 112 // to |views|, marks |view| as known and recurses.
113 void GetUnknownViewsFrom(const ServerView* view, 113 void GetUnknownViewsFrom(const ServerView* view,
114 std::vector<const ServerView*>* views); 114 std::vector<const ServerView*>* views);
115 115
116 // Removes |view| and all its descendants from |known_views_|. This does not 116 // Removes |view| and all its descendants from |known_views_|. This does not
117 // recurse through views that were created by this connection. All views owned 117 // recurse through views that were created by this connection. All views owned
118 // by this connection are added to |local_views|. 118 // by this connection are added to |local_views|.
119 void RemoveFromKnown(const ServerView* view, 119 void RemoveFromKnown(const ServerView* view,
120 std::vector<ServerView*>* local_views); 120 std::vector<ServerView*>* local_views);
121 121
122 // Adds |view_id| to the set of roots this connection knows about. The caller
123 // should have verified |view_id| is not among the roots of this connection.
124 void AddRoot(const ViewId& view_id,
125 InterfaceRequest<ServiceProvider> service_provider);
126
127 // Removes |view_id| from the set of roots this connection knows about. 122 // Removes |view_id| from the set of roots this connection knows about.
128 void RemoveRoot(const ViewId& view_id); 123 void RemoveRoot(const ViewId& view_id);
129 124
130 void RemoveChildrenAsPartOfEmbed(const ViewId& view_id); 125 void RemoveChildrenAsPartOfEmbed(const ViewId& view_id);
131 126
132 // Converts View(s) to ViewData(s) for transport. This assumes all the views 127 // Converts View(s) to ViewData(s) for transport. This assumes all the views
133 // are valid for the client. The parent of views the client is not allowed to 128 // are valid for the client. The parent of views the client is not allowed to
134 // see are set to NULL (in the returned ViewData(s)). 129 // see are set to NULL (in the returned ViewData(s)).
135 Array<ViewDataPtr> ViewsToViewDatas( 130 Array<ViewDataPtr> ViewsToViewDatas(
136 const std::vector<const ServerView*>& views); 131 const std::vector<const ServerView*>& views);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 }; 221 };
227 222
228 #if defined(OS_WIN) 223 #if defined(OS_WIN)
229 #pragma warning(pop) 224 #pragma warning(pop)
230 #endif 225 #endif
231 226
232 } // namespace service 227 } // namespace service
233 } // namespace mojo 228 } // namespace mojo
234 229
235 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ 230 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/connection_manager.cc ('k') | mojo/services/view_manager/view_manager_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698