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

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: . 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 26 matching lines...) Expand all
37 37
38 DISALLOW_COPY_AND_ASSIGN(TestInputMethod); 38 DISALLOW_COPY_AND_ASSIGN(TestInputMethod);
39 }; 39 };
40 40
41 TestIMEDriver::TestIMEDriver() {} 41 TestIMEDriver::TestIMEDriver() {}
42 42
43 TestIMEDriver::~TestIMEDriver() {} 43 TestIMEDriver::~TestIMEDriver() {}
44 44
45 void TestIMEDriver::StartSession( 45 void TestIMEDriver::StartSession(
46 int32_t session_id, 46 int32_t session_id,
47 mojom::TextInputClientInformationPtr client_info,
47 mojom::TextInputClientPtr client, 48 mojom::TextInputClientPtr client,
48 mojom::InputMethodRequest input_method_request) { 49 mojom::InputMethodRequest input_method_request) {
49 input_method_bindings_[session_id].reset( 50 input_method_bindings_[session_id].reset(
50 new mojo::Binding<mojom::InputMethod>( 51 new mojo::Binding<mojom::InputMethod>(
51 new TestInputMethod(std::move(client)), 52 new TestInputMethod(std::move(client)),
52 std::move(input_method_request))); 53 std::move(input_method_request)));
53 } 54 }
54 55
55 void TestIMEDriver::CancelSession(int32_t session_id) { 56 void TestIMEDriver::CancelSession(int32_t session_id) {
56 input_method_bindings_.erase(session_id); 57 input_method_bindings_.erase(session_id);
57 } 58 }
58 59
59 } // namespace test 60 } // namespace test
60 } // namespace ui 61 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698