| 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> |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // Represent the rectangle of the input caret. | 222 // Represent the rectangle of the input caret. |
| 223 // This rectangle is used for controlling the positions of IME windows. | 223 // This rectangle is used for controlling the positions of IME windows. |
| 224 void UpdateCaretRect(HWND window_handle, const gfx::Rect& caret_rect); | 224 void UpdateCaretRect(HWND window_handle, const gfx::Rect& caret_rect); |
| 225 | 225 |
| 226 // Updates the setting whether we want IME to render composition text. | 226 // Updates the setting whether we want IME to render composition text. |
| 227 void SetUseCompositionWindow(bool use_composition_window); | 227 void SetUseCompositionWindow(bool use_composition_window); |
| 228 | 228 |
| 229 // Returns the current input language id. | 229 // Returns the current input language id. |
| 230 LANGID input_language_id() const { return input_language_id_; } | 230 LANGID input_language_id() const { return input_language_id_; } |
| 231 | 231 |
| 232 // Returns BCP-47 tag name of the current input language. | 232 // Returns whether the system's input language is CJK. |
| 233 std::string GetInputLanguageName() const; | 233 bool IsInputLanguageCJK() const; |
| 234 | 234 |
| 235 // Sets conversion status corresponding to |input_mode|. | 235 // Sets conversion status corresponding to |input_mode|. |
| 236 virtual void SetTextInputMode(HWND window_handle, TextInputMode input_mode); | 236 virtual void SetTextInputMode(HWND window_handle, TextInputMode input_mode); |
| 237 | 237 |
| 238 // Helper functions ---------------------------------------------------------- | 238 // Helper functions ---------------------------------------------------------- |
| 239 | 239 |
| 240 // Checks if there is any RTL keyboard layout installed in the system. | 240 // Checks if there is any RTL keyboard layout installed in the system. |
| 241 static bool IsRTLKeyboardLayoutInstalled(); | 241 static bool IsRTLKeyboardLayoutInstalled(); |
| 242 | 242 |
| 243 // Checks if the user pressed both Ctrl and right or left Shift keys to | 243 // Checks if the user pressed both Ctrl and right or left Shift keys to |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 // Indicates whether or not we want IME to render composition text. | 310 // Indicates whether or not we want IME to render composition text. |
| 311 bool use_composition_window_; | 311 bool use_composition_window_; |
| 312 | 312 |
| 313 DISALLOW_COPY_AND_ASSIGN(IMM32Manager); | 313 DISALLOW_COPY_AND_ASSIGN(IMM32Manager); |
| 314 }; | 314 }; |
| 315 | 315 |
| 316 } // namespace ui | 316 } // namespace ui |
| 317 | 317 |
| 318 #endif // UI_BASE_IME_WIN_IMM32_MANAGER_H | 318 #endif // UI_BASE_IME_WIN_IMM32_MANAGER_H |
| OLD | NEW |