OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WIN_IME_INPUT_H_ | 5 #ifndef UI_BASE_WIN_IME_INPUT_H_ |
6 #define UI_BASE_WIN_IME_INPUT_H_ | 6 #define UI_BASE_WIN_IME_INPUT_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 // Updates the caret position of the given window. | 221 // Updates the caret position of the given window. |
222 // Parameters | 222 // Parameters |
223 // * window_handle [in] (HWND) | 223 // * window_handle [in] (HWND) |
224 // Represents the window handle of the caller. | 224 // Represents the window handle of the caller. |
225 // * caret_rect [in] (const gfx::Rect&) | 225 // * caret_rect [in] (const gfx::Rect&) |
226 // Represent the rectangle of the input caret. | 226 // Represent the rectangle of the input caret. |
227 // This rectangle is used for controlling the positions of IME windows. | 227 // This rectangle is used for controlling the positions of IME windows. |
228 void UpdateCaretRect(HWND window_handle, const gfx::Rect& caret_rect); | 228 void UpdateCaretRect(HWND window_handle, const gfx::Rect& caret_rect); |
229 | 229 |
| 230 // Updates the setting whether we want IME to render composition text. |
| 231 void SetUseCompositionWindow(bool use_composition_window); |
| 232 |
230 // Returns the current input language id. | 233 // Returns the current input language id. |
231 LANGID input_language_id() const { return input_language_id_; } | 234 LANGID input_language_id() const { return input_language_id_; } |
232 | 235 |
233 // Returns BCP-47 tag name of the current input language. | 236 // Returns BCP-47 tag name of the current input language. |
234 std::string GetInputLanguageName() const; | 237 std::string GetInputLanguageName() const; |
235 | 238 |
236 // Returns the text direction of the current input language. | 239 // Returns the text direction of the current input language. |
237 base::i18n::TextDirection GetTextDirection() const; | 240 base::i18n::TextDirection GetTextDirection() const; |
238 | 241 |
239 | 242 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 301 |
299 // Represents whether or not the current input context has created a system | 302 // Represents whether or not the current input context has created a system |
300 // caret to set the position of its IME candidate window. | 303 // caret to set the position of its IME candidate window. |
301 // * true: it creates a system caret. | 304 // * true: it creates a system caret. |
302 // * false: it does not create a system caret. | 305 // * false: it does not create a system caret. |
303 bool system_caret_; | 306 bool system_caret_; |
304 | 307 |
305 // The rectangle of the input caret retrieved from a renderer process. | 308 // The rectangle of the input caret retrieved from a renderer process. |
306 gfx::Rect caret_rect_; | 309 gfx::Rect caret_rect_; |
307 | 310 |
| 311 // Indicates whether or not we want IME to render composition text. |
| 312 bool use_composition_window_; |
| 313 |
308 DISALLOW_COPY_AND_ASSIGN(ImeInput); | 314 DISALLOW_COPY_AND_ASSIGN(ImeInput); |
309 }; | 315 }; |
310 | 316 |
311 } // namespace ui | 317 } // namespace ui |
312 | 318 |
313 #endif // UI_BASE_WIN_IME_INPUT_H_ | 319 #endif // UI_BASE_WIN_IME_INPUT_H_ |
OLD | NEW |