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

Unified 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, 2 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_manager_app.cc ('k') | services/ui/view_manager/view_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_manager_impl.h
diff --git a/services/ui/view_manager/view_manager_impl.h b/services/ui/view_manager/view_manager_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..db84e4f24f2e5115e1b578f18399ed5d18633ffd
--- /dev/null
+++ b/services/ui/view_manager/view_manager_impl.h
@@ -0,0 +1,39 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
+#define SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
+
+#include "base/macros.h"
+#include "mojo/common/strong_binding_set.h"
+#include "mojo/services/ui/views/interfaces/view_manager.mojom.h"
+#include "services/ui/view_manager/view_registry.h"
+
+namespace view_manager {
+
+// ViewManager interface implementation.
+class ViewManagerImpl : public mojo::ui::ViewManager {
+ public:
+ explicit ViewManagerImpl(ViewRegistry* registry);
+ ~ViewManagerImpl() override;
+
+ private:
+ // |ViewManager|:
+ void RegisterView(
+ mojo::ui::ViewPtr view,
+ mojo::InterfaceRequest<mojo::ui::ViewHost> view_host_request,
+ const RegisterViewCallback& callback) override;
+ void RegisterViewTree(
+ mojo::ui::ViewTreePtr view_tree,
+ mojo::InterfaceRequest<mojo::ui::ViewTreeHost> view_tree_host_request,
+ const RegisterViewTreeCallback& callback) override;
+
+ ViewRegistry* registry_;
+
+ DISALLOW_COPY_AND_ASSIGN(ViewManagerImpl);
+};
+
+} // namespace view_manager
+
+#endif // SERVICES_UI_VIEW_MANAGER_VIEW_MANAGER_IMPL_H_
« 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