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