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 "services/keyboard/linux/keyboard_service_impl.h" | 5 #include "services/keyboard/linux/keyboard_service_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "mojo/public/cpp/application/application_connection.h" | |
11 #include "mojo/public/cpp/application/connect.h" | 10 #include "mojo/public/cpp/application/connect.h" |
12 #include "mojo/services/input_events/interfaces/input_key_codes.mojom.h" | 11 #include "mojo/services/input_events/interfaces/input_key_codes.mojom.h" |
13 | 12 |
14 namespace keyboard { | 13 namespace keyboard { |
15 | 14 |
16 LinuxKeyboardServiceImpl::LinuxKeyboardServiceImpl( | 15 LinuxKeyboardServiceImpl::LinuxKeyboardServiceImpl( |
17 mojo::InterfaceRequest<keyboard::KeyboardService> request, | 16 mojo::InterfaceRequest<keyboard::KeyboardService> request, |
18 mojo::InterfaceRequest<NativeViewportEventDispatcher> dispatcher) | 17 mojo::InterfaceRequest<NativeViewportEventDispatcher> dispatcher) |
19 : event_dispatcher_binding_(this, dispatcher.Pass()), | 18 : event_dispatcher_binding_(this, dispatcher.Pass()), |
20 binding_(this, request.Pass()) { | 19 binding_(this, request.Pass()) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 text_ += s; | 76 text_ += s; |
78 client_->CommitText(mojo::String(s), 1); | 77 client_->CommitText(mojo::String(s), 1); |
79 break; | 78 break; |
80 } | 79 } |
81 } | 80 } |
82 } | 81 } |
83 callback.Run(); | 82 callback.Run(); |
84 } | 83 } |
85 | 84 |
86 } // namespace keyboard | 85 } // namespace keyboard |
OLD | NEW |