| 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 "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after); | 55 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after); |
| 56 void Unselect(JNIEnv*, jobject); | 56 void Unselect(JNIEnv*, jobject); |
| 57 void SelectAll(JNIEnv*, jobject); | 57 void SelectAll(JNIEnv*, jobject); |
| 58 void Cut(JNIEnv*, jobject); | 58 void Cut(JNIEnv*, jobject); |
| 59 void Copy(JNIEnv*, jobject); | 59 void Copy(JNIEnv*, jobject); |
| 60 void Paste(JNIEnv*, jobject); | 60 void Paste(JNIEnv*, jobject); |
| 61 void ResetImeAdapter(JNIEnv*, jobject); | 61 void ResetImeAdapter(JNIEnv*, jobject); |
| 62 | 62 |
| 63 // Called from native -> java | 63 // Called from native -> java |
| 64 void CancelComposition(); | 64 void CancelComposition(); |
| 65 void FocusedNodeChanged(bool is_editable_node); | 65 void FocusedNodeChanged(bool is_editable_node, int editable_node_max_length); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); | 68 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); |
| 69 RenderFrameHost* GetFocusedFrame(); | 69 RenderFrameHost* GetFocusedFrame(); |
| 70 WebContents* GetWebContents(); | 70 WebContents* GetWebContents(); |
| 71 | 71 |
| 72 RenderWidgetHostViewAndroid* rwhva_; | 72 RenderWidgetHostViewAndroid* rwhva_; |
| 73 JavaObjectWeakGlobalRef java_ime_adapter_; | 73 JavaObjectWeakGlobalRef java_ime_adapter_; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 bool RegisterImeAdapter(JNIEnv* env); | 76 bool RegisterImeAdapter(JNIEnv* env); |
| 77 | 77 |
| 78 } // namespace content | 78 } // namespace content |
| 79 | 79 |
| 80 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ | 80 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ |
| OLD | NEW |