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

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

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: tiny bit more cleanup Created 4 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, 47 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
48 mojo::ui::ViewListenerPtr view_listener, 48 mojo::ui::ViewListenerPtr view_listener,
49 const mojo::String& label); 49 const mojo::String& label);
50 50
51 // Creates a view tree. 51 // Creates a view tree.
52 void CreateViewTree( 52 void CreateViewTree(
53 mojo::InterfaceRequest<mojo::ui::ViewTree> view_tree_request, 53 mojo::InterfaceRequest<mojo::ui::ViewTree> view_tree_request,
54 mojo::ui::ViewTreeListenerPtr view_tree_listener, 54 mojo::ui::ViewTreeListenerPtr view_tree_listener,
55 const mojo::String& label); 55 const mojo::String& label);
56 56
57 void RegisterViewAssociate(mojo::ui::ViewInspector* view_inspector,
58 mojo::ui::ViewAssociatePtr view_associate);
59
57 // VIEW STUB REQUESTS 60 // VIEW STUB REQUESTS
58 61
59 void OnViewResolved(ViewStub* view_stub, mojo::ui::ViewTokenPtr view_token); 62 void OnViewResolved(ViewStub* view_stub, mojo::ui::ViewTokenPtr view_token);
60 63
61 // VIEW REQUESTS 64 // VIEW REQUESTS
62 65
63 // Creates a scene for the view, replacing its current scene. 66 // Creates a scene for the view, replacing its current scene.
64 // Destroys |view_state| if an error occurs. 67 // Destroys |view_state| if an error occurs.
65 void CreateScene(ViewState* view_state, 68 void CreateScene(ViewState* view_state,
66 mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene); 69 mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 std::unordered_map<uint32_t, ViewState*> views_by_token_; 209 std::unordered_map<uint32_t, ViewState*> views_by_token_;
207 std::unordered_map<uint32_t, ViewState*> views_by_scene_token_; 210 std::unordered_map<uint32_t, ViewState*> views_by_scene_token_;
208 std::unordered_map<uint32_t, ViewTreeState*> view_trees_by_token_; 211 std::unordered_map<uint32_t, ViewTreeState*> view_trees_by_token_;
209 212
210 DISALLOW_COPY_AND_ASSIGN(ViewRegistry); 213 DISALLOW_COPY_AND_ASSIGN(ViewRegistry);
211 }; 214 };
212 215
213 } // namespace view_manager 216 } // namespace view_manager
214 217
215 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_REGISTRY_H_ 218 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698