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>&); | |
78 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&); | 76 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&); |
79 | 77 |
80 // Called from native -> java | 78 // Called from native -> java |
81 void CancelComposition(); | 79 void CancelComposition(); |
82 void FocusedNodeChanged(bool is_editable_node); | 80 void FocusedNodeChanged(bool is_editable_node); |
83 void SetCharacterBounds(const std::vector<gfx::RectF>& rects); | 81 void SetCharacterBounds(const std::vector<gfx::RectF>& rects); |
84 | 82 |
85 private: | 83 private: |
86 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); | 84 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); |
87 RenderFrameHost* GetFocusedFrame(); | 85 RenderFrameHost* GetFocusedFrame(); |
88 WebContents* GetWebContents(); | 86 WebContents* GetWebContents(); |
89 | 87 |
90 RenderWidgetHostViewAndroid* rwhva_; | 88 RenderWidgetHostViewAndroid* rwhva_; |
91 JavaObjectWeakGlobalRef java_ime_adapter_; | 89 JavaObjectWeakGlobalRef java_ime_adapter_; |
92 }; | 90 }; |
93 | 91 |
94 bool RegisterImeAdapter(JNIEnv* env); | 92 bool RegisterImeAdapter(JNIEnv* env); |
95 | 93 |
96 } // namespace content | 94 } // namespace content |
97 | 95 |
98 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ | 96 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ |
OLD | NEW |