Chromium Code Reviews

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

Issue 1977023003: ApplicationConnection devolution, part 4 (the end). (Closed) Base URL: https://github.com/domokit/mojo.git@work790_app_conn_devo_3.1
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 #include "services/ui/input_manager/input_manager_app.h" 5 #include "services/ui/input_manager/input_manager_app.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "mojo/application/application_runner_chromium.h" 10 #include "mojo/application/application_runner_chromium.h"
11 #include "mojo/common/tracing_impl.h" 11 #include "mojo/common/tracing_impl.h"
12 #include "mojo/public/c/system/main.h" 12 #include "mojo/public/c/system/main.h"
13 #include "mojo/public/cpp/application/application_connection.h"
14 #include "mojo/public/cpp/application/application_impl.h" 13 #include "mojo/public/cpp/application/application_impl.h"
14 #include "mojo/public/cpp/application/service_provider_impl.h"
15 #include "services/ui/input_manager/input_associate.h" 15 #include "services/ui/input_manager/input_associate.h"
16 16
17 namespace input_manager { 17 namespace input_manager {
18 18
19 InputManagerApp::InputManagerApp() : app_impl_(nullptr) {} 19 InputManagerApp::InputManagerApp() : app_impl_(nullptr) {}
20 20
21 InputManagerApp::~InputManagerApp() {} 21 InputManagerApp::~InputManagerApp() {}
22 22
23 void InputManagerApp::Initialize(mojo::ApplicationImpl* app_impl) { 23 void InputManagerApp::Initialize(mojo::ApplicationImpl* app_impl) {
24 app_impl_ = app_impl; 24 app_impl_ = app_impl;
(...skipping 12 matching lines...)
37 service_provider_impl->AddService<mojo::ui::ViewAssociate>([this]( 37 service_provider_impl->AddService<mojo::ui::ViewAssociate>([this](
38 const mojo::ConnectionContext& connection_context, 38 const mojo::ConnectionContext& connection_context,
39 mojo::InterfaceRequest<mojo::ui::ViewAssociate> view_associate_request) { 39 mojo::InterfaceRequest<mojo::ui::ViewAssociate> view_associate_request) {
40 input_associates_.AddBinding(new InputAssociate(), 40 input_associates_.AddBinding(new InputAssociate(),
41 view_associate_request.Pass()); 41 view_associate_request.Pass());
42 }); 42 });
43 return true; 43 return true;
44 } 44 }
45 45
46 } // namespace input_manager 46 } // namespace input_manager
OLDNEW
« no previous file with comments | « services/test_service/test_service_application.cc ('k') | services/ui/launcher/launch_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine