Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: ui/base/ime/input_method_win.cc

Issue 2298123003: Using input language instead of the application locale to determine the Omnibox's text input type o… (Closed)
Patch Set: ..... Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/ime/input_method_win.cc
diff --git a/ui/base/ime/input_method_win.cc b/ui/base/ime/input_method_win.cc
index 8456b0cbde6f2d4954f3a1d24be3fedd336bea26..892279fc2bfdecc9dc3c05256ef9652ed672e6d8 100644
--- a/ui/base/ime/input_method_win.cc
+++ b/ui/base/ime/input_method_win.cc
@@ -269,10 +269,11 @@ void InputMethodWin::CancelComposition(const TextInputClient* client) {
void InputMethodWin::OnInputLocaleChanged() {
yukawa 2016/09/01 20:15:03 We probably may want to add a TODO for this method
Shu Chen 2016/09/07 03:13:34 Done.
// Note: OnInputLocaleChanged() is for crbug.com/168971.
yukawa 2016/09/01 20:15:03 We may want to update this line because we basical
Shu Chen 2016/09/07 03:13:34 Done.
OnInputMethodChanged();
+ imm32_manager_.SetInputLanguage();
}
-std::string InputMethodWin::GetInputLocale() {
- return imm32_manager_.GetInputLanguageName();
+bool InputMethodWin::IsInputLocaleCJK() const {
+ return imm32_manager_.IsInputLanguageCJK();
}
bool InputMethodWin::IsCandidatePopupOpen() const {

Powered by Google App Engine
This is Rietveld 408576698