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

Side by Side Diff: services/keyboard/linux/keyboard_service_impl.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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/icu_data/icu_data_impl.cc ('k') | services/keyboard/linux/main.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 #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
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
OLDNEW
« no previous file with comments | « services/icu_data/icu_data_impl.cc ('k') | services/keyboard/linux/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698