| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 public: | 96 public: |
| 97 DECLARE_EXTENSION_FUNCTION("input.ime.deleteSurroundingText", | 97 DECLARE_EXTENSION_FUNCTION("input.ime.deleteSurroundingText", |
| 98 INPUT_IME_DELETESURROUNDINGTEXT) | 98 INPUT_IME_DELETESURROUNDINGTEXT) |
| 99 protected: | 99 protected: |
| 100 ~InputImeDeleteSurroundingTextFunction() override {} | 100 ~InputImeDeleteSurroundingTextFunction() override {} |
| 101 | 101 |
| 102 // ExtensionFunction: | 102 // ExtensionFunction: |
| 103 bool RunSync() override; | 103 bool RunSync() override; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 class InputImeSendKeyEventsFunction : public AsyncExtensionFunction { | |
| 107 public: | |
| 108 DECLARE_EXTENSION_FUNCTION("input.ime.sendKeyEvents", | |
| 109 INPUT_IME_SENDKEYEVENTS) | |
| 110 | |
| 111 protected: | |
| 112 ~InputImeSendKeyEventsFunction() override {} | |
| 113 | |
| 114 // ExtensionFunction: | |
| 115 bool RunAsync() override; | |
| 116 }; | |
| 117 | |
| 118 class InputImeHideInputViewFunction : public AsyncExtensionFunction { | 106 class InputImeHideInputViewFunction : public AsyncExtensionFunction { |
| 119 public: | 107 public: |
| 120 DECLARE_EXTENSION_FUNCTION("input.ime.hideInputView", | 108 DECLARE_EXTENSION_FUNCTION("input.ime.hideInputView", |
| 121 INPUT_IME_HIDEINPUTVIEW) | 109 INPUT_IME_HIDEINPUTVIEW) |
| 122 | 110 |
| 123 protected: | 111 protected: |
| 124 ~InputImeHideInputViewFunction() override {} | 112 ~InputImeHideInputViewFunction() override {} |
| 125 | 113 |
| 126 // ExtensionFunction: | 114 // ExtensionFunction: |
| 127 bool RunAsync() override; | 115 bool RunAsync() override; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 private: | 151 private: |
| 164 // The engine map from extension_id to an engine. | 152 // The engine map from extension_id to an engine. |
| 165 std::map<std::string, chromeos::InputMethodEngine*> engine_map_; | 153 std::map<std::string, chromeos::InputMethodEngine*> engine_map_; |
| 166 | 154 |
| 167 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter); | 155 DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter); |
| 168 }; | 156 }; |
| 169 | 157 |
| 170 } // namespace extensions | 158 } // namespace extensions |
| 171 | 159 |
| 172 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_ | 160 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_CHROMEOS_H_ |
| OLD | NEW |