| 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" | |
| 14 #include "services/ui/public/interfaces/ime/ime.mojom.h" | 13 #include "services/ui/public/interfaces/ime/ime.mojom.h" |
| 15 | 14 |
| 16 namespace ui { | 15 namespace ui { |
| 17 namespace test { | 16 namespace test { |
| 18 | 17 |
| 19 class TestIMEDriver : public ui::mojom::IMEDriver { | 18 class TestIMEDriver : public ui::mojom::IMEDriver { |
| 20 public: | 19 public: |
| 21 TestIMEDriver(); | 20 TestIMEDriver(); |
| 22 ~TestIMEDriver() override; | 21 ~TestIMEDriver() override; |
| 23 | 22 |
| 24 private: | 23 private: |
| 25 // ui::mojom::IMEDriver: | 24 // ui::mojom::IMEDriver: |
| 26 void StartSession(int32_t session_id, | 25 void StartSession(ui::mojom::StartSessionDetailsPtr details) override; |
| 27 ui::mojom::StartSessionDetailsPtr details) override; | |
| 28 void CancelSession(int32_t session_id) override; | |
| 29 | |
| 30 std::map<int32_t, std::unique_ptr<mojo::Binding<mojom::InputMethod>>> | |
| 31 input_method_bindings_; | |
| 32 | 26 |
| 33 DISALLOW_COPY_AND_ASSIGN(TestIMEDriver); | 27 DISALLOW_COPY_AND_ASSIGN(TestIMEDriver); |
| 34 }; | 28 }; |
| 35 | 29 |
| 36 } // namespace test | 30 } // namespace test |
| 37 } // namespace ui | 31 } // namespace ui |
| 38 | 32 |
| 39 #endif // SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_ | 33 #endif // SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_ |
| OLD | NEW |