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

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

Issue 23445020: Support inputmode attribute for Windows Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused include Created 7 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_imm32.cc
diff --git a/ui/base/ime/input_method_imm32.cc b/ui/base/ime/input_method_imm32.cc
index 1a3cf266afec3ab10bae0971c08ebdcaa2890aa3..f40baad34425380edeab63dbfc15ef95185c763d 100644
--- a/ui/base/ime/input_method_imm32.cc
+++ b/ui/base/ime/input_method_imm32.cc
@@ -270,17 +270,20 @@ void InputMethodIMM32::ConfirmCompositionText() {
void InputMethodIMM32::UpdateIMEState() {
// Use switch here in case we are going to add more text input types.
// We disable input method in password field.
+ const HWND window_handle = GetAttachedWindowHandle(GetTextInputClient());
switch (GetTextInputType()) {
case ui::TEXT_INPUT_TYPE_NONE:
case ui::TEXT_INPUT_TYPE_PASSWORD:
- imm32_manager_.DisableIME(GetAttachedWindowHandle(GetTextInputClient()));
+ imm32_manager_.DisableIME(window_handle);
enabled_ = false;
break;
default:
- imm32_manager_.EnableIME(GetAttachedWindowHandle(GetTextInputClient()));
+ imm32_manager_.EnableIME(window_handle);
enabled_ = true;
break;
}
+
+ imm32_manager_.SetTextInputMode(window_handle, GetTextInputMode());
}
bool InputMethodIMM32::IsWindowFocused(const TextInputClient* client) const {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698