Chromium Code Reviews| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 131 // Show or hide the candidate window. | 131 // Show or hide the candidate window. |
| 132 virtual bool SetCandidateWindowVisible(bool visible, std::string* error) = 0; | 132 virtual bool SetCandidateWindowVisible(bool visible, std::string* error) = 0; |
| 133 | 133 |
| 134 // Set the position of the cursor in the candidate window. | 134 // Set the position of the cursor in the candidate window. |
| 135 virtual bool SetCursorPosition(int context_id, | 135 virtual bool SetCursorPosition(int context_id, |
| 136 int candidate_id, | 136 int candidate_id, |
| 137 std::string* error) = 0; | 137 std::string* error) = 0; |
| 138 // Hides the input view window (from API call). | 138 // Hides the input view window (from API call). |
| 139 virtual void HideInputView() = 0; | 139 virtual void HideInputView() = 0; |
| 140 | 140 |
| 141 #elif defined(OS_LINUX) || defined(OS_WIN) | |
| 142 | |
| 143 // Get the id of the activated extension. | |
|
Shu Chen
2016/01/18 09:21:59
s/activated extension/IME extension
An engine han
Azure Wei
2016/01/19 03:46:54
Done.
| |
| 144 virtual std::string GetExtensionId() const = 0; | |
| 141 #endif // defined(OS_CHROMEOS) | 145 #endif // defined(OS_CHROMEOS) |
| 142 protected: | 146 protected: |
| 143 IMEEngineHandlerInterface() {} | 147 IMEEngineHandlerInterface() {} |
| 144 }; | 148 }; |
| 145 | 149 |
| 146 } // namespace ui | 150 } // namespace ui |
| 147 | 151 |
| 148 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ | 152 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ |
| OLD | NEW |