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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // TODO(ime): Have a clear spec whether the returned value is DIP or not. | 159 // TODO(ime): Have a clear spec whether the returned value is DIP or not. |
160 // http://crbug.com/360334 | 160 // http://crbug.com/360334 |
161 virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0; | 161 virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0; |
162 | 162 |
163 // Called when IME shows a candidate window. | 163 // Called when IME shows a candidate window. |
164 virtual void OnCandidateWindowShown() = 0; | 164 virtual void OnCandidateWindowShown() = 0; |
165 // Called when IME updates any appearance of the current candidate window. | 165 // Called when IME updates any appearance of the current candidate window. |
166 virtual void OnCandidateWindowUpdated() = 0; | 166 virtual void OnCandidateWindowUpdated() = 0; |
167 // Called when IME hides the candidate window. | 167 // Called when IME hides the candidate window. |
168 virtual void OnCandidateWindowHidden() = 0; | 168 virtual void OnCandidateWindowHidden() = 0; |
| 169 |
| 170 // Returns true if |command_id| is currently allowed to be executed. |
| 171 virtual bool IsEditingCommandEnabled(int command_id) = 0; |
| 172 // Execute the command specified by |command_id|. |
| 173 virtual void ExecuteEditingCommand(int command_id) = 0; |
169 }; | 174 }; |
170 | 175 |
171 } // namespace ui | 176 } // namespace ui |
172 | 177 |
173 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ | 178 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ |
OLD | NEW |