OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 25 matching lines...) Expand all Loading... |
36 explicit ImeAdapterAndroid(RenderWidgetHostViewAndroid* rwhva); | 36 explicit ImeAdapterAndroid(RenderWidgetHostViewAndroid* rwhva); |
37 ~ImeAdapterAndroid(); | 37 ~ImeAdapterAndroid(); |
38 | 38 |
39 // Called from java -> native | 39 // Called from java -> native |
40 bool SendKeyEvent( | 40 bool SendKeyEvent( |
41 JNIEnv* env, | 41 JNIEnv* env, |
42 const base::android::JavaParamRef<jobject>&, | 42 const base::android::JavaParamRef<jobject>&, |
43 const base::android::JavaParamRef<jobject>& original_key_event, | 43 const base::android::JavaParamRef<jobject>& original_key_event, |
44 int type, | 44 int type, |
45 int modifiers, | 45 int modifiers, |
46 long event_time, | 46 jlong time_ms, |
47 int key_code, | 47 int key_code, |
48 int scan_code, | 48 int scan_code, |
49 bool is_system_key, | 49 bool is_system_key, |
50 int unicode_text); | 50 int unicode_text); |
51 void SetComposingText(JNIEnv* env, | 51 void SetComposingText(JNIEnv* env, |
52 const base::android::JavaParamRef<jobject>& obj, | 52 const base::android::JavaParamRef<jobject>& obj, |
53 const base::android::JavaParamRef<jobject>& text, | 53 const base::android::JavaParamRef<jobject>& text, |
54 const base::android::JavaParamRef<jstring>& text_str, | 54 const base::android::JavaParamRef<jstring>& text_str, |
55 int relative_cursor_pos); | 55 int relative_cursor_pos); |
56 void CommitText(JNIEnv* env, | 56 void CommitText(JNIEnv* env, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 RenderWidgetHostViewAndroid* rwhva_; | 108 RenderWidgetHostViewAndroid* rwhva_; |
109 JavaObjectWeakGlobalRef java_ime_adapter_; | 109 JavaObjectWeakGlobalRef java_ime_adapter_; |
110 }; | 110 }; |
111 | 111 |
112 bool RegisterImeAdapter(JNIEnv* env); | 112 bool RegisterImeAdapter(JNIEnv* env); |
113 | 113 |
114 } // namespace content | 114 } // namespace content |
115 | 115 |
116 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ | 116 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ |
OLD | NEW |