OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WIN_IMM32_MANAGER_H | 5 #ifndef UI_BASE_IME_WIN_IMM32_MANAGER_H |
6 #define UI_BASE_IME_WIN_IMM32_MANAGER_H | 6 #define UI_BASE_IME_WIN_IMM32_MANAGER_H |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "ui/base/ime/text_input_mode.h" | 16 #include "ui/base/ime/text_input_mode.h" |
17 #include "ui/base/ui_export.h" | 17 #include "ui/base/ui_base_export.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 | 19 |
20 namespace ui { | 20 namespace ui { |
21 | 21 |
22 struct CompositionText; | 22 struct CompositionText; |
23 | 23 |
24 // This header file defines a struct and a class used for encapsulating IMM32 | 24 // This header file defines a struct and a class used for encapsulating IMM32 |
25 // APIs, controls IMEs attached to a window, and enables the 'on-the-spot' | 25 // APIs, controls IMEs attached to a window, and enables the 'on-the-spot' |
26 // input without deep knowledge about the APIs, i.e. knowledge about the | 26 // input without deep knowledge about the APIs, i.e. knowledge about the |
27 // language-specific and IME-specific behaviors. | 27 // language-specific and IME-specific behaviors. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Fortunately or unfortunately, TSF (Text Service Framework) and | 67 // Fortunately or unfortunately, TSF (Text Service Framework) and |
68 // CUAS (Cicero Unaware Application Support) allows IMM32 APIs for | 68 // CUAS (Cicero Unaware Application Support) allows IMM32 APIs for |
69 // retrieving not only the inputs from IMEs (Input Method Editors), used | 69 // retrieving not only the inputs from IMEs (Input Method Editors), used |
70 // only for inputting East-Asian language texts, but also the ones from | 70 // only for inputting East-Asian language texts, but also the ones from |
71 // tablets (on Windows XP Tablet PC Edition and Windows Vista), voice | 71 // tablets (on Windows XP Tablet PC Edition and Windows Vista), voice |
72 // recognizers (e.g. ViaVoice and Microsoft Office), etc. | 72 // recognizers (e.g. ViaVoice and Microsoft Office), etc. |
73 // We can disable TSF and CUAS in Windows XP Tablet PC Edition. On the other | 73 // We can disable TSF and CUAS in Windows XP Tablet PC Edition. On the other |
74 // hand, we can NEVER disable either TSF or CUAS in Windows Vista, i.e. | 74 // hand, we can NEVER disable either TSF or CUAS in Windows Vista, i.e. |
75 // THIS CLASS IS NOT ONLY USED ON THE INPUT CONTEXTS OF EAST-ASIAN | 75 // THIS CLASS IS NOT ONLY USED ON THE INPUT CONTEXTS OF EAST-ASIAN |
76 // LANGUAGES BUT ALSO USED ON THE INPUT CONTEXTS OF ALL LANGUAGES. | 76 // LANGUAGES BUT ALSO USED ON THE INPUT CONTEXTS OF ALL LANGUAGES. |
77 class UI_EXPORT IMM32Manager { | 77 class UI_BASE_EXPORT IMM32Manager { |
78 public: | 78 public: |
79 IMM32Manager(); | 79 IMM32Manager(); |
80 virtual ~IMM32Manager(); | 80 virtual ~IMM32Manager(); |
81 | 81 |
82 // Retrieves whether or not there is an ongoing composition. | 82 // Retrieves whether or not there is an ongoing composition. |
83 bool is_composing() const { return is_composing_; } | 83 bool is_composing() const { return is_composing_; } |
84 | 84 |
85 // Retrieves the input language from Windows and update it. | 85 // Retrieves the input language from Windows and update it. |
86 // Return values | 86 // Return values |
87 // * true | 87 // * true |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 | 321 |
322 // Indicates whether or not we want IME to render composition text. | 322 // Indicates whether or not we want IME to render composition text. |
323 bool use_composition_window_; | 323 bool use_composition_window_; |
324 | 324 |
325 DISALLOW_COPY_AND_ASSIGN(IMM32Manager); | 325 DISALLOW_COPY_AND_ASSIGN(IMM32Manager); |
326 }; | 326 }; |
327 | 327 |
328 } // namespace ui | 328 } // namespace ui |
329 | 329 |
330 #endif // UI_BASE_IME_WIN_IMM32_MANAGER_H | 330 #endif // UI_BASE_IME_WIN_IMM32_MANAGER_H |
OLD | NEW |