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 "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 const base::android::JavaParamRef<jobject>&, | 70 const base::android::JavaParamRef<jobject>&, |
71 int start, | 71 int start, |
72 int end); | 72 int end); |
73 void DeleteSurroundingText(JNIEnv*, | 73 void DeleteSurroundingText(JNIEnv*, |
74 const base::android::JavaParamRef<jobject>&, | 74 const base::android::JavaParamRef<jobject>&, |
75 int before, | 75 int before, |
76 int after); | 76 int after); |
77 void ResetImeAdapter(JNIEnv*, const base::android::JavaParamRef<jobject>&); | 77 void ResetImeAdapter(JNIEnv*, const base::android::JavaParamRef<jobject>&); |
78 bool RequestTextInputStateUpdate(JNIEnv*, | 78 bool RequestTextInputStateUpdate(JNIEnv*, |
79 const base::android::JavaParamRef<jobject>&); | 79 const base::android::JavaParamRef<jobject>&); |
| 80 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&); |
80 | 81 |
81 // Called from native -> java | 82 // Called from native -> java |
82 void CancelComposition(); | 83 void CancelComposition(); |
83 void FocusedNodeChanged(bool is_editable_node); | 84 void FocusedNodeChanged(bool is_editable_node); |
84 | 85 |
85 private: | 86 private: |
86 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); | 87 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); |
87 RenderFrameHost* GetFocusedFrame(); | 88 RenderFrameHost* GetFocusedFrame(); |
88 WebContents* GetWebContents(); | 89 WebContents* GetWebContents(); |
89 | 90 |
90 RenderWidgetHostViewAndroid* rwhva_; | 91 RenderWidgetHostViewAndroid* rwhva_; |
91 JavaObjectWeakGlobalRef java_ime_adapter_; | 92 JavaObjectWeakGlobalRef java_ime_adapter_; |
92 }; | 93 }; |
93 | 94 |
94 bool RegisterImeAdapter(JNIEnv* env); | 95 bool RegisterImeAdapter(JNIEnv* env); |
95 | 96 |
96 } // namespace content | 97 } // namespace content |
97 | 98 |
98 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ | 99 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ |
OLD | NEW |