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

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

Issue 1415493003: mozart: Initial commit of the view manager. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
6 #define SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
7
8 #include "base/macros.h"
9 #include "mojo/common/strong_binding_set.h"
10 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h"
11 #include "services/ui/view_manager/view_registry.h"
12
13 namespace view_manager {
14
15 // ViewManager interface implementation.
16 class ViewManagerImpl : public mojo::ui::ViewManager {
17 public:
18 explicit ViewManagerImpl(ViewRegistry* registry);
19 ~ViewManagerImpl() override;
20
21 private:
22 // |ViewManager|:
23 void RegisterView(
24 mojo::ui::ViewPtr view,
25 mojo::InterfaceRequest<mojo::ui::ViewHost> view_host_request,
26 const RegisterViewCallback& callback) override;
27 void RegisterViewTree(
28 mojo::ui::ViewTreePtr view_tree,
29 mojo::InterfaceRequest<mojo::ui::ViewTreeHost> view_tree_host_request,
30 const RegisterViewTreeCallback& callback) override;
31
32 ViewRegistry* registry_;
33
34 DISALLOW_COPY_AND_ASSIGN(ViewManagerImpl);
35 };
36
37 } // namespace view_manager
38
39 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « services/ui/view_manager/view_manager_app.cc ('k') | services/ui/view_manager/view_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698