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

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

Issue 2210533004: Revert of Do not calculate composition bounds until IME requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698