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

Side by Side Diff: blimp/client/app/android/web_input_box.cc

Issue 2251223002: blimp: Moved ImeFeature to blimp/client/core/contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « blimp/client/app/android/web_input_box.h ('k') | blimp/client/app/linux/blimp_client_session_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698