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 CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_BASE_H_ | 5 #ifndef CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_BASE_H_ |
6 #define CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_BASE_H_ | 6 #define CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_BASE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 10 matching lines...) Expand all Loading... |
21 class IMEEngineHandlerInterface; | 21 class IMEEngineHandlerInterface; |
22 class KeyEvent; | 22 class KeyEvent; |
23 } // namespace ui | 23 } // namespace ui |
24 | 24 |
25 namespace input_method { | 25 namespace input_method { |
26 | 26 |
27 class InputMethodEngineBase : virtual public ui::IMEEngineHandlerInterface { | 27 class InputMethodEngineBase : virtual public ui::IMEEngineHandlerInterface { |
28 public: | 28 public: |
29 struct KeyboardEvent { | 29 struct KeyboardEvent { |
30 KeyboardEvent(); | 30 KeyboardEvent(); |
| 31 KeyboardEvent(const KeyboardEvent& other); |
31 virtual ~KeyboardEvent(); | 32 virtual ~KeyboardEvent(); |
32 | 33 |
33 std::string type; | 34 std::string type; |
34 std::string key; | 35 std::string key; |
35 std::string code; | 36 std::string code; |
36 int key_code; // only used by on-screen keyboards. | 37 int key_code; // only used by on-screen keyboards. |
37 std::string extension_id; | 38 std::string extension_id; |
38 bool alt_key; | 39 bool alt_key; |
39 bool ctrl_key; | 40 bool ctrl_key; |
40 bool shift_key; | 41 bool shift_key; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 std::string text_; | 232 std::string text_; |
232 | 233 |
233 // Indicates whether the IME extension is currently handling a physical key | 234 // Indicates whether the IME extension is currently handling a physical key |
234 // event. This is used in CommitText/UpdateCompositionText/etc. | 235 // event. This is used in CommitText/UpdateCompositionText/etc. |
235 bool handling_key_event_; | 236 bool handling_key_event_; |
236 }; | 237 }; |
237 | 238 |
238 } // namespace input_method | 239 } // namespace input_method |
239 | 240 |
240 #endif // CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_BASE_H_ | 241 #endif // CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_BASE_H_ |
OLD | NEW |