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