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

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

Issue 2945283002: Unify IMEDriver and IMEServer. (Closed)
Patch Set: Addressed feedback. Created 3 years, 6 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/ui/ime/ime_unittest.cc ('k') | services/ui/ime/test_ime_driver/test_ime_driver.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 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_
OLDNEW
« no previous file with comments | « services/ui/ime/ime_unittest.cc ('k') | services/ui/ime/test_ime_driver/test_ime_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698