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

Unified Diff: content/browser/renderer_host/ime_adapter_android.cc

Issue 720313004: Add autocapitalize support to IME support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 11 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: 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,

Powered by Google App Engine
This is Rietveld 408576698