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

Side by Side Diff: services/ui/input_manager/input_manager_app.h

Issue 1980763002: ApplicationConnection devolution, part 2.3. (Closed) Base URL: https://github.com/domokit/mojo.git@work794_app_conn_devo_2.2
Patch Set: Created 4 years, 7 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
« no previous file with comments | « services/tracing/tracing_app.cc ('k') | services/ui/input_manager/input_manager_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INPUT_MANAGER_INPUT_MANAGER_APP_H_ 5 #ifndef SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_
6 #define SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_ 6 #define SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "mojo/common/strong_binding_set.h" 11 #include "mojo/common/strong_binding_set.h"
12 #include "mojo/common/tracing_impl.h" 12 #include "mojo/common/tracing_impl.h"
13 #include "mojo/public/cpp/application/application_delegate.h" 13 #include "mojo/public/cpp/application/application_delegate.h"
14 #include "mojo/public/cpp/application/interface_factory.h"
15 #include "mojo/services/ui/views/interfaces/view_associates.mojom.h" 14 #include "mojo/services/ui/views/interfaces/view_associates.mojom.h"
16 15
17 namespace input_manager { 16 namespace input_manager {
18 17
19 // Input manager application entry point. 18 // Input manager application entry point.
20 class InputManagerApp : public mojo::ApplicationDelegate, 19 class InputManagerApp : public mojo::ApplicationDelegate {
21 public mojo::InterfaceFactory<mojo::ui::ViewAssociate> {
22 public: 20 public:
23 InputManagerApp(); 21 InputManagerApp();
24 ~InputManagerApp() override; 22 ~InputManagerApp() override;
25 23
26 private: 24 private:
27 // |ApplicationDelegate|: 25 // |ApplicationDelegate|:
28 void Initialize(mojo::ApplicationImpl* app_impl) override; 26 void Initialize(mojo::ApplicationImpl* app_impl) override;
29 bool ConfigureIncomingConnection( 27 bool ConfigureIncomingConnection(
30 mojo::ApplicationConnection* connection) override; 28 mojo::ApplicationConnection* connection) override;
31 29
32 // |InterfaceFactory<ViewAssociate>|:
33 void Create(const mojo::ConnectionContext& connection_context,
34 mojo::InterfaceRequest<mojo::ui::ViewAssociate> request) override;
35
36 mojo::ApplicationImpl* app_impl_; 30 mojo::ApplicationImpl* app_impl_;
37 mojo::TracingImpl tracing_; 31 mojo::TracingImpl tracing_;
38 32
39 mojo::StrongBindingSet<mojo::ui::ViewAssociate> input_associates; 33 mojo::StrongBindingSet<mojo::ui::ViewAssociate> input_associates_;
40 34
41 DISALLOW_COPY_AND_ASSIGN(InputManagerApp); 35 DISALLOW_COPY_AND_ASSIGN(InputManagerApp);
42 }; 36 };
43 37
44 } // namespace input_manager 38 } // namespace input_manager
45 39
46 #endif // SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_ 40 #endif // SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_
OLDNEW
« no previous file with comments | « services/tracing/tracing_app.cc ('k') | services/ui/input_manager/input_manager_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698