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

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

Issue 1552043002: Make Mozart view manager use the new compositor. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-12
Patch Set: Created 4 years, 11 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_MANAGER_IMPL_H_ 5 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
6 #define SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_ 6 #define SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/common/strong_binding_set.h"
10 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h" 9 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h"
11 #include "services/ui/view_manager/view_registry.h" 10 #include "services/ui/view_manager/view_registry.h"
12 11
13 namespace view_manager { 12 namespace view_manager {
14 13
15 // ViewManager interface implementation. 14 // ViewManager interface implementation.
16 class ViewManagerImpl : public mojo::ui::ViewManager { 15 class ViewManagerImpl : public mojo::ui::ViewManager {
17 public: 16 public:
18 explicit ViewManagerImpl(ViewRegistry* registry); 17 explicit ViewManagerImpl(ViewRegistry* registry);
19 ~ViewManagerImpl() override; 18 ~ViewManagerImpl() override;
20 19
21 private: 20 private:
22 // |ViewManager|: 21 // |ViewManager|:
23 void RegisterView( 22 void RegisterView(
24 mojo::ui::ViewPtr view, 23 mojo::ui::ViewPtr view,
25 mojo::InterfaceRequest<mojo::ui::ViewHost> view_host_request, 24 mojo::InterfaceRequest<mojo::ui::ViewHost> view_host_request,
25 const mojo::String& label,
26 const RegisterViewCallback& callback) override; 26 const RegisterViewCallback& callback) override;
27 void RegisterViewTree( 27 void RegisterViewTree(
28 mojo::ui::ViewTreePtr view_tree, 28 mojo::ui::ViewTreePtr view_tree,
29 mojo::InterfaceRequest<mojo::ui::ViewTreeHost> view_tree_host_request, 29 mojo::InterfaceRequest<mojo::ui::ViewTreeHost> view_tree_host_request,
30 const mojo::String& label,
30 const RegisterViewTreeCallback& callback) override; 31 const RegisterViewTreeCallback& callback) override;
31 32
32 ViewRegistry* registry_; 33 ViewRegistry* registry_;
33 34
34 DISALLOW_COPY_AND_ASSIGN(ViewManagerImpl); 35 DISALLOW_COPY_AND_ASSIGN(ViewManagerImpl);
35 }; 36 };
36 37
37 } // namespace view_manager 38 } // namespace view_manager
38 39
39 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_ 40 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698