OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_IME_INPUT_H_ | 5 #ifndef CHROME_BROWSER_IME_INPUT_H_ |
6 #define CHROME_BROWSER_IME_INPUT_H_ | 6 #define CHROME_BROWSER_IME_INPUT_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // recognizers (e.g. ViaVoice and Microsoft Office), etc. | 86 // recognizers (e.g. ViaVoice and Microsoft Office), etc. |
87 // We can disable TSF and CUAS in Windows XP Tablet PC Edition. On the other | 87 // We can disable TSF and CUAS in Windows XP Tablet PC Edition. On the other |
88 // hand, we can NEVER disable either TSF or CUAS in Windows Vista, i.e. | 88 // hand, we can NEVER disable either TSF or CUAS in Windows Vista, i.e. |
89 // THIS CLASS IS NOT ONLY USED ON THE INPUT CONTEXTS OF EAST-ASIAN | 89 // THIS CLASS IS NOT ONLY USED ON THE INPUT CONTEXTS OF EAST-ASIAN |
90 // LANGUAGES BUT ALSO USED ON THE INPUT CONTEXTS OF ALL LANGUAGES. | 90 // LANGUAGES BUT ALSO USED ON THE INPUT CONTEXTS OF ALL LANGUAGES. |
91 class ImeInput { | 91 class ImeInput { |
92 public: | 92 public: |
93 ImeInput(); | 93 ImeInput(); |
94 ~ImeInput(); | 94 ~ImeInput(); |
95 | 95 |
96 // Retrieves whether or not there is an ongiong composition. | 96 // Retrieves whether or not there is an ongoing composition. |
97 bool is_composing() const { return is_composing_; } | 97 bool is_composing() const { return is_composing_; } |
98 | 98 |
99 // Retrieves the input language from Windows and update it. | 99 // Retrieves the input language from Windows and update it. |
100 // Return values | 100 // Return values |
101 // * true | 101 // * true |
102 // The given input language has IMEs. | 102 // The given input language has IMEs. |
103 // * false | 103 // * false |
104 // The given input language does not have IMEs. | 104 // The given input language does not have IMEs. |
105 bool SetInputLanguage(); | 105 bool SetInputLanguage(); |
106 | 106 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 // * false: it does not create a system caret. | 297 // * false: it does not create a system caret. |
298 bool system_caret_; | 298 bool system_caret_; |
299 | 299 |
300 // The rectangle of the input caret retrieved from a renderer process. | 300 // The rectangle of the input caret retrieved from a renderer process. |
301 gfx::Rect caret_rect_; | 301 gfx::Rect caret_rect_; |
302 | 302 |
303 DISALLOW_EVIL_CONSTRUCTORS(ImeInput); | 303 DISALLOW_EVIL_CONSTRUCTORS(ImeInput); |
304 }; | 304 }; |
305 | 305 |
306 #endif // #ifndef CHROME_BROWSER_IME_INPUT_H_ | 306 #endif // #ifndef CHROME_BROWSER_IME_INPUT_H_ |
OLD | NEW |