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

Unified Diff: services/ui/view_manager/view_registry.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/view_manager/view_registry.h ('k') | services/ui/view_manager/view_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_registry.cc
diff --git a/services/ui/view_manager/view_registry.cc b/services/ui/view_manager/view_registry.cc
index c86177a399344692bd1b908b1e967a3ec2aed774..deba254ed7205c8311d28529d181db523536ecc0 100644
--- a/services/ui/view_manager/view_registry.cc
+++ b/services/ui/view_manager/view_registry.cc
@@ -177,9 +177,10 @@ void ViewRegistry::RequestLayout(ViewState* view_state) {
InvalidateLayout(view_state);
}
-void ViewRegistry::AddChild(ViewState* parent_state,
- uint32_t child_key,
- mojo::ui::ViewOwnerPtr child_view_owner) {
+void ViewRegistry::AddChild(
+ ViewState* parent_state,
+ uint32_t child_key,
+ mojo::InterfaceHandle<mojo::ui::ViewOwner> child_view_owner) {
DCHECK(IsViewStateRegisteredDebug(parent_state));
DCHECK(child_view_owner);
DVLOG(1) << "AddChild: parent=" << parent_state
@@ -284,9 +285,10 @@ void ViewRegistry::RequestLayout(ViewTreeState* tree_state) {
InvalidateLayoutForRoot(tree_state);
}
-void ViewRegistry::SetRoot(ViewTreeState* tree_state,
- uint32_t root_key,
- mojo::ui::ViewOwnerPtr root_view_owner) {
+void ViewRegistry::SetRoot(
+ ViewTreeState* tree_state,
+ uint32_t root_key,
+ mojo::InterfaceHandle<mojo::ui::ViewOwner> root_view_owner) {
DCHECK(IsViewTreeStateRegisteredDebug(tree_state));
DCHECK(root_view_owner);
DVLOG(1) << "SetRoot: tree=" << tree_state << ", root_key=" << root_key;
« no previous file with comments | « services/ui/view_manager/view_registry.h ('k') | services/ui/view_manager/view_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698