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/input_manager/input_manager_app.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, 12 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
Index: services/ui/input_manager/input_manager_app.h
diff --git a/services/ui/input_manager/input_manager_app.h b/services/ui/input_manager/input_manager_app.h
new file mode 100644
index 0000000000000000000000000000000000000000..70ac70d82de3e6d98735b445c62f4553d9e89484
--- /dev/null
+++ b/services/ui/input_manager/input_manager_app.h
@@ -0,0 +1,45 @@
+// 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_INPUT_MANAGER_INPUT_MANAGER_APP_H_
+#define SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "mojo/common/strong_binding_set.h"
+#include "mojo/common/tracing_impl.h"
+#include "mojo/public/cpp/application/application_delegate.h"
+#include "mojo/services/ui/views/interfaces/view_associates.mojom.h"
+
+namespace input_manager {
+
+// Input manager application entry point.
+class InputManagerApp : public mojo::ApplicationDelegate,
+ public mojo::InterfaceFactory<mojo::ui::ViewAssociate> {
+ public:
+ InputManagerApp();
+ ~InputManagerApp() override;
+
+ private:
+ // |ApplicationDelegate|:
+ void Initialize(mojo::ApplicationImpl* app_impl) override;
+ bool ConfigureIncomingConnection(
+ mojo::ApplicationConnection* connection) override;
+
+ // |InterfaceFactory<ViewAssociate>|:
+ void Create(mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<mojo::ui::ViewAssociate> request) override;
+
+ mojo::ApplicationImpl* app_impl_;
+ mojo::TracingImpl tracing_;
+
+ mojo::StrongBindingSet<mojo::ui::ViewAssociate> input_associates;
+
+ DISALLOW_COPY_AND_ASSIGN(InputManagerApp);
+};
+
+} // namespace input_manager
+
+#endif // SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_

Powered by Google App Engine
This is Rietveld 408576698