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