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

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: pass and use inputmode for auto-capitalization settings Created 6 years 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 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,
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698