OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 // API. | 23 // API. |
24 class InputMethodEngineInterface : public IMEEngineHandlerInterface { | 24 class InputMethodEngineInterface : public IMEEngineHandlerInterface { |
25 public: | 25 public: |
26 struct KeyboardEvent { | 26 struct KeyboardEvent { |
27 KeyboardEvent(); | 27 KeyboardEvent(); |
28 virtual ~KeyboardEvent(); | 28 virtual ~KeyboardEvent(); |
29 | 29 |
30 std::string type; | 30 std::string type; |
31 std::string key; | 31 std::string key; |
32 std::string code; | 32 std::string code; |
| 33 int key_code; // only used by on-screen keyboards. |
33 std::string extension_id; | 34 std::string extension_id; |
34 bool alt_key; | 35 bool alt_key; |
35 bool ctrl_key; | 36 bool ctrl_key; |
36 bool shift_key; | 37 bool shift_key; |
37 bool caps_lock; | 38 bool caps_lock; |
38 }; | 39 }; |
39 | 40 |
40 enum { | 41 enum { |
41 MENU_ITEM_MODIFIED_LABEL = 0x0001, | 42 MENU_ITEM_MODIFIED_LABEL = 0x0001, |
42 MENU_ITEM_MODIFIED_STYLE = 0x0002, | 43 MENU_ITEM_MODIFIED_STYLE = 0x0002, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 size_t number_of_chars, | 247 size_t number_of_chars, |
247 std::string* error) = 0; | 248 std::string* error) = 0; |
248 | 249 |
249 // Hides the input view window (from API call). | 250 // Hides the input view window (from API call). |
250 virtual void HideInputView() = 0; | 251 virtual void HideInputView() = 0; |
251 }; | 252 }; |
252 | 253 |
253 } // namespace chromeos | 254 } // namespace chromeos |
254 | 255 |
255 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ | 256 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ |
OLD | NEW |