| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ | 5 #ifndef UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ |
| 6 #define UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ | 6 #define UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // Set the list of items that appears in the language menu when this IME is | 263 // Set the list of items that appears in the language menu when this IME is |
| 264 // active. | 264 // active. |
| 265 virtual bool SetMenuItems(const std::vector<MenuItem>& items) = 0; | 265 virtual bool SetMenuItems(const std::vector<MenuItem>& items) = 0; |
| 266 | 266 |
| 267 // Update the state of the menu items. | 267 // Update the state of the menu items. |
| 268 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) = 0; | 268 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) = 0; |
| 269 | 269 |
| 270 // Hides the input view window (from API call). | 270 // Hides the input view window (from API call). |
| 271 virtual void HideInputView() = 0; | 271 virtual void HideInputView() = 0; |
| 272 | 272 |
| 273 #elif defined(OS_LINUX) || defined(OS_WIN) |
| 274 |
| 275 // Get the id of the activated extension |
| 276 virtual std::string GetExtensionId() const = 0; |
| 273 #endif // defined(OS_CHROMEOS) | 277 #endif // defined(OS_CHROMEOS) |
| 274 | 278 |
| 275 protected: | 279 protected: |
| 276 IMEEngineHandlerInterface() {} | 280 IMEEngineHandlerInterface() {} |
| 277 }; | 281 }; |
| 278 | 282 |
| 279 } // namespace ui | 283 } // namespace ui |
| 280 | 284 |
| 281 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ | 285 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ |
| OLD | NEW |