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