Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: content/browser/renderer_host/ime_adapter_android.h

Issue 2460173003: Revert "Allow selection change update before beginBatchEdit" on M54 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 int end); 65 int end);
66 void DeleteSurroundingText(JNIEnv*, 66 void DeleteSurroundingText(JNIEnv*,
67 const base::android::JavaParamRef<jobject>&, 67 const base::android::JavaParamRef<jobject>&,
68 int before, 68 int before,
69 int after); 69 int after);
70 void ResetImeAdapter(JNIEnv*, const base::android::JavaParamRef<jobject>&); 70 void ResetImeAdapter(JNIEnv*, const base::android::JavaParamRef<jobject>&);
71 void RequestCursorUpdate(JNIEnv*, const base::android::JavaParamRef<jobject>&, 71 void RequestCursorUpdate(JNIEnv*, const base::android::JavaParamRef<jobject>&,
72 bool immediateRequest, bool monitorRequest); 72 bool immediateRequest, bool monitorRequest);
73 bool RequestTextInputStateUpdate(JNIEnv*, 73 bool RequestTextInputStateUpdate(JNIEnv*,
74 const base::android::JavaParamRef<jobject>&); 74 const base::android::JavaParamRef<jobject>&);
75 bool BeginBatchEdit(JNIEnv*, const base::android::JavaParamRef<jobject>&);
76 bool EndBatchEdit(JNIEnv*, const base::android::JavaParamRef<jobject>&);
77 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&); 75 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&);
78 76
79 // Called from native -> java 77 // Called from native -> java
80 void CancelComposition(); 78 void CancelComposition();
81 void FocusedNodeChanged(bool is_editable_node); 79 void FocusedNodeChanged(bool is_editable_node);
82 void SetCharacterBounds(const std::vector<gfx::RectF>& rects); 80 void SetCharacterBounds(const std::vector<gfx::RectF>& rects);
83 81
84 private: 82 private:
85 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); 83 RenderWidgetHostImpl* GetRenderWidgetHostImpl();
86 RenderFrameHost* GetFocusedFrame(); 84 RenderFrameHost* GetFocusedFrame();
87 WebContents* GetWebContents(); 85 WebContents* GetWebContents();
88 86
89 RenderWidgetHostViewAndroid* rwhva_; 87 RenderWidgetHostViewAndroid* rwhva_;
90 JavaObjectWeakGlobalRef java_ime_adapter_; 88 JavaObjectWeakGlobalRef java_ime_adapter_;
91 }; 89 };
92 90
93 bool RegisterImeAdapter(JNIEnv* env); 91 bool RegisterImeAdapter(JNIEnv* env);
94 92
95 } // namespace content 93 } // namespace content
96 94
97 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 95 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698