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

Side by Side Diff: services/ui/ime/test_ime_driver/test_ime_driver.cc

Issue 2626983003: IME for Mus: Send TextInputClient information to IMEDriver. (Closed)
Patch Set: fix mojo dependencies. Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ime/test_ime_driver/test_ime_driver.h" 5 #include "services/ui/ime/test_ime_driver/test_ime_driver.h"
6 6
7 #include "services/ui/public/interfaces/ime/ime.mojom.h" 7 #include "services/ui/public/interfaces/ime/ime.mojom.h"
8 8
9 namespace ui { 9 namespace ui {
10 namespace test { 10 namespace test {
(...skipping 23 matching lines...) Expand all
34 34
35 mojom::TextInputClientPtr client_; 35 mojom::TextInputClientPtr client_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(TestInputMethod); 37 DISALLOW_COPY_AND_ASSIGN(TestInputMethod);
38 }; 38 };
39 39
40 TestIMEDriver::TestIMEDriver() {} 40 TestIMEDriver::TestIMEDriver() {}
41 41
42 TestIMEDriver::~TestIMEDriver() {} 42 TestIMEDriver::~TestIMEDriver() {}
43 43
44 void TestIMEDriver::StartSession( 44 void TestIMEDriver::StartSession(int32_t session_id,
45 int32_t session_id, 45 mojom::StartSessionDetailsPtr details) {
46 mojom::TextInputClientPtr client,
47 mojom::InputMethodRequest input_method_request) {
48 input_method_bindings_[session_id].reset( 46 input_method_bindings_[session_id].reset(
49 new mojo::Binding<mojom::InputMethod>( 47 new mojo::Binding<mojom::InputMethod>(
50 new TestInputMethod(std::move(client)), 48 new TestInputMethod(std::move(details->client)),
51 std::move(input_method_request))); 49 std::move(details->input_method_request)));
52 } 50 }
53 51
54 void TestIMEDriver::CancelSession(int32_t session_id) { 52 void TestIMEDriver::CancelSession(int32_t session_id) {
55 input_method_bindings_.erase(session_id); 53 input_method_bindings_.erase(session_id);
56 } 54 }
57 55
58 } // namespace test 56 } // namespace test
59 } // namespace ui 57 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ime/test_ime_driver/test_ime_driver.h ('k') | services/ui/public/interfaces/ime/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698