| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 int start, | 68 int start, |
| 69 int end); | 69 int end); |
| 70 void SetComposingRegion(JNIEnv*, | 70 void SetComposingRegion(JNIEnv*, |
| 71 const base::android::JavaParamRef<jobject>&, | 71 const base::android::JavaParamRef<jobject>&, |
| 72 int start, | 72 int start, |
| 73 int end); | 73 int end); |
| 74 void DeleteSurroundingText(JNIEnv*, | 74 void DeleteSurroundingText(JNIEnv*, |
| 75 const base::android::JavaParamRef<jobject>&, | 75 const base::android::JavaParamRef<jobject>&, |
| 76 int before, | 76 int before, |
| 77 int after); | 77 int after); |
| 78 void DeleteSurroundingTextInCodePoints( |
| 79 JNIEnv*, |
| 80 const base::android::JavaParamRef<jobject>&, |
| 81 int before, |
| 82 int after); |
| 78 void ResetImeAdapter(JNIEnv*, const base::android::JavaParamRef<jobject>&); | 83 void ResetImeAdapter(JNIEnv*, const base::android::JavaParamRef<jobject>&); |
| 79 void RequestCursorUpdate(JNIEnv*, const base::android::JavaParamRef<jobject>&, | 84 void RequestCursorUpdate(JNIEnv*, const base::android::JavaParamRef<jobject>&, |
| 80 bool immediateRequest, bool monitorRequest); | 85 bool immediateRequest, bool monitorRequest); |
| 81 bool RequestTextInputStateUpdate(JNIEnv*, | 86 bool RequestTextInputStateUpdate(JNIEnv*, |
| 82 const base::android::JavaParamRef<jobject>&); | 87 const base::android::JavaParamRef<jobject>&); |
| 83 | 88 |
| 84 // Called from native -> java | 89 // Called from native -> java |
| 85 void CancelComposition(); | 90 void CancelComposition(); |
| 86 void FocusedNodeChanged(bool is_editable_node); | 91 void FocusedNodeChanged(bool is_editable_node); |
| 87 void SetCharacterBounds(const std::vector<gfx::RectF>& rects); | 92 void SetCharacterBounds(const std::vector<gfx::RectF>& rects); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 98 | 103 |
| 99 RenderWidgetHostViewAndroid* rwhva_; | 104 RenderWidgetHostViewAndroid* rwhva_; |
| 100 JavaObjectWeakGlobalRef java_ime_adapter_; | 105 JavaObjectWeakGlobalRef java_ime_adapter_; |
| 101 }; | 106 }; |
| 102 | 107 |
| 103 bool RegisterImeAdapter(JNIEnv* env); | 108 bool RegisterImeAdapter(JNIEnv* env); |
| 104 | 109 |
| 105 } // namespace content | 110 } // namespace content |
| 106 | 111 |
| 107 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ | 112 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ |
| OLD | NEW |