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

Side by Side Diff: services/ui/view_manager/view_registry.h

Issue 1779933003: Mozart: Replace Set/Reset nomenclature with Set/Clear. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-8
Patch Set: Created 4 years, 9 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
« no previous file with comments | « services/ui/launcher/launcher_view_tree.cc ('k') | services/ui/view_manager/view_registry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_UI_VIEW_MANAGER_VIEW_REGISTRY_H_ 5 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_REGISTRY_H_
6 #define SERVICES_UI_VIEW_MANAGER_VIEW_REGISTRY_H_ 6 #define SERVICES_UI_VIEW_MANAGER_VIEW_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <unordered_map> 9 #include <unordered_map>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Requests layout. 108 // Requests layout.
109 // Destroys |tree_state| if an error occurs. 109 // Destroys |tree_state| if an error occurs.
110 void RequestLayout(ViewTreeState* tree_state); 110 void RequestLayout(ViewTreeState* tree_state);
111 111
112 // Sets the root of the view tree. 112 // Sets the root of the view tree.
113 // Destroys |tree_state| if an error occurs. 113 // Destroys |tree_state| if an error occurs.
114 void SetRoot(ViewTreeState* tree_state, 114 void SetRoot(ViewTreeState* tree_state,
115 uint32_t root_key, 115 uint32_t root_key,
116 mojo::InterfaceHandle<mojo::ui::ViewOwner> root_view_owner); 116 mojo::InterfaceHandle<mojo::ui::ViewOwner> root_view_owner);
117 117
118 // Resets the root of the view tree. 118 // Removes the root of the view tree.
119 // Destroys |tree_state| if an error occurs. 119 // Destroys |tree_state| if an error occurs.
120 void ResetRoot(ViewTreeState* tree_state, 120 void ClearRoot(ViewTreeState* tree_state,
121 mojo::InterfaceRequest<mojo::ui::ViewOwner> 121 mojo::InterfaceRequest<mojo::ui::ViewOwner>
122 transferred_view_owner_request); 122 transferred_view_owner_request);
123 123
124 // Lays out a view tree's root and optionally provides its size. 124 // Lays out a view tree's root and optionally provides its size.
125 // Destroys |tree_state| if an error occurs. 125 // Destroys |tree_state| if an error occurs.
126 void LayoutRoot(ViewTreeState* tree_state, 126 void LayoutRoot(ViewTreeState* tree_state,
127 mojo::ui::ViewLayoutParamsPtr root_layout_params, 127 mojo::ui::ViewLayoutParamsPtr root_layout_params,
128 const ViewLayoutCallback& callback); 128 const ViewLayoutCallback& callback);
129 129
130 // Connects to a view service. 130 // Connects to a view service.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 std::unordered_map<uint32_t, ViewState*> views_by_token_; 216 std::unordered_map<uint32_t, ViewState*> views_by_token_;
217 std::unordered_map<uint32_t, ViewState*> views_by_scene_token_; 217 std::unordered_map<uint32_t, ViewState*> views_by_scene_token_;
218 std::unordered_map<uint32_t, ViewTreeState*> view_trees_by_token_; 218 std::unordered_map<uint32_t, ViewTreeState*> view_trees_by_token_;
219 219
220 DISALLOW_COPY_AND_ASSIGN(ViewRegistry); 220 DISALLOW_COPY_AND_ASSIGN(ViewRegistry);
221 }; 221 };
222 222
223 } // namespace view_manager 223 } // namespace view_manager
224 224
225 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_REGISTRY_H_ 225 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_REGISTRY_H_
OLDNEW
« no previous file with comments | « services/ui/launcher/launcher_view_tree.cc ('k') | services/ui/view_manager/view_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698