| Index: services/ui/view_manager/view_manager_impl.cc
|
| diff --git a/services/ui/view_manager/view_manager_impl.cc b/services/ui/view_manager/view_manager_impl.cc
|
| index 7e443b211c1bb1050e4b85d8cc391b135b057bb3..1e2d8c07598dcb12c6c6825984c6234b1062972f 100644
|
| --- a/services/ui/view_manager/view_manager_impl.cc
|
| +++ b/services/ui/view_manager/view_manager_impl.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <utility>
|
|
|
| +#include "base/bind.h"
|
| #include "services/ui/view_manager/view_impl.h"
|
| #include "services/ui/view_manager/view_tree_impl.h"
|
|
|
| @@ -36,4 +37,21 @@ void ViewManagerImpl::CreateViewTree(
|
| label);
|
| }
|
|
|
| +// TODO(mikejurka): This should only be called by trusted code (ie launcher),
|
| +// once we have a security story.
|
| +void ViewManagerImpl::RegisterViewAssociate(
|
| + mojo::InterfaceHandle<mojo::ui::ViewAssociate> view_associate,
|
| + const mojo::String& label) {
|
| + registry_->RegisterViewAssociate(
|
| + registry_, mojo::ui::ViewAssociatePtr::Create(std::move(view_associate)),
|
| + label);
|
| +}
|
| +
|
| +void ViewManagerImpl::RegisterViewAssociateWatcher(
|
| + mojo::InterfaceHandle<mojo::ui::ViewAssociateWatcher>
|
| + view_associate_watcher) {
|
| + registry_->RegisterViewAssociateWatcher(
|
| + mojo::ui::ViewAssociateWatcherPtr::Create(
|
| + std::move(view_associate_watcher)));
|
| +}
|
| } // namespace view_manager
|
|
|