| OLD | NEW |
| 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 "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/threading/sequenced_worker_pool.h" | 6 #include "base/threading/sequenced_worker_pool.h" |
| 7 #include "mojo/application/application_runner_chromium.h" | 7 #include "mojo/application/application_runner_chromium.h" |
| 8 #include "mojo/public/c/system/main.h" | 8 #include "mojo/public/c/system/main.h" |
| 9 #include "mojo/public/cpp/application/application_connection.h" | 9 #include "mojo/public/cpp/application/application_connection.h" |
| 10 #include "mojo/public/cpp/application/application_delegate.h" | 10 #include "mojo/public/cpp/application/application_delegate.h" |
| 11 #include "mojo/public/cpp/application/application_impl.h" | 11 #include "mojo/public/cpp/application/application_impl.h" |
| 12 #include "mojo/public/cpp/application/connect.h" | 12 #include "mojo/public/cpp/application/connect.h" |
| 13 #include "mojo/public/cpp/application/interface_factory.h" | 13 #include "mojo/public/cpp/application/interface_factory.h" |
| 14 #include "mojo/services/native_viewport/interfaces/native_viewport.mojom.h" | 14 #include "mojo/services/native_viewport/interfaces/native_viewport_event_dispatc
her.mojom.h" |
| 15 #include "services/keyboard/linux/keyboard_service_impl.h" | 15 #include "services/keyboard/linux/keyboard_service_impl.h" |
| 16 | 16 |
| 17 namespace keyboard { | 17 namespace keyboard { |
| 18 | 18 |
| 19 class KeyboardServiceFactoryImpl : public keyboard::KeyboardServiceFactory { | 19 class KeyboardServiceFactoryImpl : public keyboard::KeyboardServiceFactory { |
| 20 public: | 20 public: |
| 21 explicit KeyboardServiceFactoryImpl( | 21 explicit KeyboardServiceFactoryImpl( |
| 22 mojo::InterfaceRequest<KeyboardServiceFactory> request) | 22 mojo::InterfaceRequest<KeyboardServiceFactory> request) |
| 23 : binding_(this, request.Pass()) {} | 23 : binding_(this, request.Pass()) {} |
| 24 | 24 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 DISALLOW_COPY_AND_ASSIGN(KeyboardServiceApp); | 63 DISALLOW_COPY_AND_ASSIGN(KeyboardServiceApp); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace keyboard | 66 } // namespace keyboard |
| 67 | 67 |
| 68 MojoResult MojoMain(MojoHandle application_request) { | 68 MojoResult MojoMain(MojoHandle application_request) { |
| 69 mojo::ApplicationRunnerChromium runner( | 69 mojo::ApplicationRunnerChromium runner( |
| 70 new keyboard::KeyboardServiceApp()); | 70 new keyboard::KeyboardServiceApp()); |
| 71 return runner.Run(application_request); | 71 return runner.Run(application_request); |
| 72 } | 72 } |
| OLD | NEW |