| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "blimp/client/app/android/web_input_box.h" |
| 6 |
| 5 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
| 6 #include "blimp/client/app/android/blimp_client_session_android.h" | 8 #include "blimp/client/app/android/blimp_client_session_android.h" |
| 7 #include "blimp/client/app/android/web_input_box.h" | 9 #include "blimp/client/core/contents/ime_feature.h" |
| 8 #include "blimp/client/feature/ime_feature.h" | |
| 9 #include "jni/WebInputBox_jni.h" | 10 #include "jni/WebInputBox_jni.h" |
| 10 #include "ui/base/ime/text_input_type.h" | 11 #include "ui/base/ime/text_input_type.h" |
| 11 | 12 |
| 12 using base::android::JavaParamRef; | 13 using base::android::JavaParamRef; |
| 13 | 14 |
| 14 namespace blimp { | 15 namespace blimp { |
| 15 namespace client { | 16 namespace client { |
| 16 | 17 |
| 17 static jlong Init(JNIEnv* env, | 18 static jlong Init(JNIEnv* env, |
| 18 const JavaParamRef<jobject>& jobj, | 19 const JavaParamRef<jobject>& jobj, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 62 |
| 62 void WebInputBox::OnImeTextEntered(JNIEnv* env, | 63 void WebInputBox::OnImeTextEntered(JNIEnv* env, |
| 63 const JavaParamRef<jobject>& jobj, | 64 const JavaParamRef<jobject>& jobj, |
| 64 const JavaParamRef<jstring>& text) { | 65 const JavaParamRef<jstring>& text) { |
| 65 std::string textInput = base::android::ConvertJavaStringToUTF8(env, text); | 66 std::string textInput = base::android::ConvertJavaStringToUTF8(env, text); |
| 66 ime_feature_->OnImeTextEntered(textInput); | 67 ime_feature_->OnImeTextEntered(textInput); |
| 67 } | 68 } |
| 68 | 69 |
| 69 } // namespace client | 70 } // namespace client |
| 70 } // namespace blimp | 71 } // namespace blimp |
| OLD | NEW |