| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_ANDROID_IME_ADAPTER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_ | 6 #define CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool immediateRequest, | 83 bool immediateRequest, |
| 84 bool monitorRequest); | 84 bool monitorRequest); |
| 85 bool RequestTextInputStateUpdate(JNIEnv*, | 85 bool RequestTextInputStateUpdate(JNIEnv*, |
| 86 const base::android::JavaParamRef<jobject>&); | 86 const base::android::JavaParamRef<jobject>&); |
| 87 | 87 |
| 88 // RendetWidgetHostConnector implementation. | 88 // RendetWidgetHostConnector implementation. |
| 89 void UpdateRenderProcessConnection( | 89 void UpdateRenderProcessConnection( |
| 90 RenderWidgetHostViewAndroid* old_rwhva, | 90 RenderWidgetHostViewAndroid* old_rwhva, |
| 91 RenderWidgetHostViewAndroid* new_rhwva) override; | 91 RenderWidgetHostViewAndroid* new_rhwva) override; |
| 92 | 92 |
| 93 void UpdateFrameInfo(const gfx::SelectionBound& selection_start, |
| 94 float dip_scale, |
| 95 float content_offset_ypix); |
| 96 |
| 93 // Called from native -> java | 97 // Called from native -> java |
| 94 void CancelComposition(); | 98 void CancelComposition(); |
| 95 void FocusedNodeChanged(bool is_editable_node); | 99 void FocusedNodeChanged(bool is_editable_node); |
| 96 void SetCharacterBounds(const std::vector<gfx::RectF>& rects); | 100 void SetCharacterBounds(const std::vector<gfx::RectF>& rects); |
| 97 | 101 |
| 98 base::android::ScopedJavaLocalRef<jobject> java_ime_adapter_for_testing( | 102 base::android::ScopedJavaLocalRef<jobject> java_ime_adapter_for_testing( |
| 99 JNIEnv* env) { | 103 JNIEnv* env) { |
| 100 return java_ime_adapter_.get(env); | 104 return java_ime_adapter_.get(env); |
| 101 } | 105 } |
| 102 | 106 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 114 // Current RenderWidgetHostView connected to this instance. Can be null. | 118 // Current RenderWidgetHostView connected to this instance. Can be null. |
| 115 RenderWidgetHostViewAndroid* rwhva_; | 119 RenderWidgetHostViewAndroid* rwhva_; |
| 116 JavaObjectWeakGlobalRef java_ime_adapter_; | 120 JavaObjectWeakGlobalRef java_ime_adapter_; |
| 117 }; | 121 }; |
| 118 | 122 |
| 119 bool RegisterImeAdapter(JNIEnv* env); | 123 bool RegisterImeAdapter(JNIEnv* env); |
| 120 | 124 |
| 121 } // namespace content | 125 } // namespace content |
| 122 | 126 |
| 123 #endif // CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_ | 127 #endif // CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_ |
| OLD | NEW |