OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEXT_INPUT_CLIENT_H_ | 5 #ifndef UI_BASE_IME_TEXT_INPUT_CLIENT_H_ |
6 #define UI_BASE_IME_TEXT_INPUT_CLIENT_H_ | 6 #define UI_BASE_IME_TEXT_INPUT_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // Deletes the current selection plus the specified number of characters | 140 // Deletes the current selection plus the specified number of characters |
141 // before and after the selection or caret. This function should be used | 141 // before and after the selection or caret. This function should be used |
142 // instead of calling DeleteRange with GetSelectionRange, because | 142 // instead of calling DeleteRange with GetSelectionRange, because |
143 // GetSelectionRange may not be the latest value due to asynchronous of IPC | 143 // GetSelectionRange may not be the latest value due to asynchronous of IPC |
144 // between browser and renderer. | 144 // between browser and renderer. |
145 virtual void ExtendSelectionAndDelete(size_t before, size_t after) = 0; | 145 virtual void ExtendSelectionAndDelete(size_t before, size_t after) = 0; |
146 | 146 |
147 // Ensure the caret is within |rect|. |rect| is in screen coordinates and | 147 // Ensure the caret is within |rect|. |rect| is in screen coordinates and |
148 // may extend beyond the bounds of this TextInputClient. | 148 // may extend beyond the bounds of this TextInputClient. |
149 virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0; | 149 virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0; |
| 150 |
| 151 // Called when IME shows a candidate window for the ongoing composition. |
| 152 virtual void OnCandidateWindowShow() = 0; |
| 153 // Called when IME updates any appearance of the current candidate window. |
| 154 virtual void OnCandidateWindowUpdate() = 0; |
| 155 // Called when IME hides the candidate window. |
| 156 virtual void OnCandidateWindowHide() = 0; |
150 }; | 157 }; |
151 | 158 |
152 } // namespace ui | 159 } // namespace ui |
153 | 160 |
154 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ | 161 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ |
OLD | NEW |