OLD | NEW |
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 #ifndef SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_ | 5 #ifndef SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_ |
6 #define SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_ | 6 #define SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
14 #include "services/ui/public/interfaces/ime/ime.mojom.h" | 14 #include "services/ui/public/interfaces/ime/ime.mojom.h" |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 namespace test { | 17 namespace test { |
18 | 18 |
19 class TestIMEDriver : public ui::mojom::IMEDriver { | 19 class TestIMEDriver : public ui::mojom::IMEDriver { |
20 public: | 20 public: |
21 TestIMEDriver(); | 21 TestIMEDriver(); |
22 ~TestIMEDriver() override; | 22 ~TestIMEDriver() override; |
23 | 23 |
24 private: | 24 private: |
25 // ui::mojom::IMEDriver: | 25 // ui::mojom::IMEDriver: |
26 void StartSession( | 26 void StartSession( |
27 int32_t session_id, | 27 int32_t session_id, |
| 28 ui::mojom::TextInputClientInformationPtr client_info, |
28 ui::mojom::TextInputClientPtr client, | 29 ui::mojom::TextInputClientPtr client, |
29 ui::mojom::InputMethodRequest input_method_request) override; | 30 ui::mojom::InputMethodRequest input_method_request) override; |
30 void CancelSession(int32_t session_id) override; | 31 void CancelSession(int32_t session_id) override; |
31 | 32 |
32 std::map<int32_t, std::unique_ptr<mojo::Binding<mojom::InputMethod>>> | 33 std::map<int32_t, std::unique_ptr<mojo::Binding<mojom::InputMethod>>> |
33 input_method_bindings_; | 34 input_method_bindings_; |
34 | 35 |
35 DISALLOW_COPY_AND_ASSIGN(TestIMEDriver); | 36 DISALLOW_COPY_AND_ASSIGN(TestIMEDriver); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace test | 39 } // namespace test |
39 } // namespace ui | 40 } // namespace ui |
40 | 41 |
41 #endif // SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_ | 42 #endif // SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_ |
OLD | NEW |