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 b7d3748002d6f333a4060290d5e2e201643b33ad..8a82f00878899c3b2e430801dc17fa0bcbb007f4 100644 |
--- a/content/browser/renderer_host/ime_adapter_android.cc |
+++ b/content/browser/renderer_host/ime_adapter_android.cc |
@@ -31,6 +31,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; |
@@ -89,6 +90,11 @@ bool RegisterImeAdapter(JNIEnv* env) { |
ui::TEXT_INPUT_TYPE_TELEPHONE, |
ui::TEXT_INPUT_TYPE_NUMBER, |
ui::TEXT_INPUT_TYPE_CONTENT_EDITABLE); |
+ Java_ImeAdapter_initializeTextInputModes( |
aurimas (slooooooooow)
2015/01/06 21:08:09
Could we switch to using java_cpp_enum.gypi to gen
bcwhite
2015/01/07 15:21:31
I didn't even know about that possibility. I'll l
aurimas (slooooooooow)
2015/01/07 16:23:31
Sure, please file a bug to track that then.
|
+ env, |
+ ui::TEXT_INPUT_MODE_VERBATIM, |
+ ui::TEXT_INPUT_MODE_LATIN_NAME, |
+ ui::TEXT_INPUT_MODE_LATIN_PROSE); |
Java_ImeAdapter_initializeTextInputFlags( |
env, |
blink::WebTextInputFlagAutocompleteOn, |