Index: content/browser/renderer_host/ime_adapter_android.cc |
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc |
index d780d0c8ff81c926361386b4deb8820647253e81..821ec86a5722f84e6c795852d30e0451f3435e11 100644 |
--- a/content/browser/renderer_host/ime_adapter_android.cc |
+++ b/content/browser/renderer_host/ime_adapter_android.cc |
@@ -30,6 +30,7 @@ |
#include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
#include "third_party/WebKit/public/web/WebInputEvent.h" |
#include "third_party/WebKit/public/web/WebTextInputType.h" |
+#include "ui/base/ime/text_input_mode.h" |
using base::android::AttachCurrentThread; |
using base::android::ConvertJavaStringToUTF16; |
@@ -78,6 +79,11 @@ bool RegisterImeAdapter(JNIEnv* env) { |
blink::WebInputEvent::ControlKey, |
blink::WebInputEvent::CapsLockOn, |
blink::WebInputEvent::NumLockOn); |
+ Java_ImeAdapter_initializeTextInputModes( |
+ env, |
+ ui::TEXT_INPUT_MODE_VERBATIM, |
+ ui::TEXT_INPUT_MODE_LATIN_NAME, |
+ ui::TEXT_INPUT_MODE_LATIN_PROSE); |
Java_ImeAdapter_initializeTextInputFlags( |
env, |
blink::WebTextInputFlagAutocompleteOn, |