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

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

Issue 2015363003: Yet more ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work797-x-work796_no_run_main_app
Patch Set: rebased again Created 4 years, 6 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/http_server/http_server_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>
9
10 #include "base/macros.h" 8 #include "base/macros.h"
11 #include "mojo/common/strong_binding_set.h" 9 #include "mojo/common/strong_binding_set.h"
12 #include "mojo/common/tracing_impl.h" 10 #include "mojo/common/tracing_impl.h"
13 #include "mojo/public/cpp/application/application_delegate.h" 11 #include "mojo/public/cpp/application/application_impl_base.h"
14 #include "mojo/services/ui/views/interfaces/view_associates.mojom.h" 12 #include "mojo/services/ui/views/interfaces/view_associates.mojom.h"
15 13
16 namespace input_manager { 14 namespace input_manager {
17 15
18 // Input manager application entry point. 16 // Input manager application entry point.
19 class InputManagerApp : public mojo::ApplicationDelegate { 17 class InputManagerApp : public mojo::ApplicationImplBase {
20 public: 18 public:
21 InputManagerApp(); 19 InputManagerApp();
22 ~InputManagerApp() override; 20 ~InputManagerApp() override;
23 21
24 private: 22 private:
25 // |ApplicationDelegate|: 23 // |ApplicationImplBase|:
26 void Initialize(mojo::ApplicationImpl* app_impl) override; 24 void OnInitialize() override;
27 bool ConfigureIncomingConnection( 25 bool OnAcceptConnection(
28 mojo::ServiceProviderImpl* service_provider_impl) override; 26 mojo::ServiceProviderImpl* service_provider_impl) override;
29 27
30 mojo::ApplicationImpl* app_impl_;
31 mojo::TracingImpl tracing_; 28 mojo::TracingImpl tracing_;
32 29
33 mojo::StrongBindingSet<mojo::ui::ViewAssociate> input_associates_; 30 mojo::StrongBindingSet<mojo::ui::ViewAssociate> input_associates_;
34 31
35 DISALLOW_COPY_AND_ASSIGN(InputManagerApp); 32 DISALLOW_COPY_AND_ASSIGN(InputManagerApp);
36 }; 33 };
37 34
38 } // namespace input_manager 35 } // namespace input_manager
39 36
40 #endif // SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_ 37 #endif // SERVICES_UI_INPUT_MANAGER_INPUT_MANAGER_APP_H_
OLDNEW
« no previous file with comments | « services/http_server/http_server_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