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

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

Issue 2121953002: Do not calculate composition bounds until IME requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test failures 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);
81 bool RequestTextInputStateUpdate(JNIEnv*, 83 bool RequestTextInputStateUpdate(JNIEnv*,
82 const base::android::JavaParamRef<jobject>&); 84 const base::android::JavaParamRef<jobject>&);
83 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&); 85 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&);
84 86
85 // Called from native -> java 87 // Called from native -> java
86 void CancelComposition(); 88 void CancelComposition();
87 void FocusedNodeChanged(bool is_editable_node); 89 void FocusedNodeChanged(bool is_editable_node);
88 void SetCharacterBounds(const std::vector<gfx::RectF>& rects); 90 void SetCharacterBounds(const std::vector<gfx::RectF>& rects);
89 91
90 private: 92 private:
91 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); 93 RenderWidgetHostImpl* GetRenderWidgetHostImpl();
92 RenderFrameHost* GetFocusedFrame(); 94 RenderFrameHost* GetFocusedFrame();
93 WebContents* GetWebContents(); 95 WebContents* GetWebContents();
94 96
95 RenderWidgetHostViewAndroid* rwhva_; 97 RenderWidgetHostViewAndroid* rwhva_;
96 JavaObjectWeakGlobalRef java_ime_adapter_; 98 JavaObjectWeakGlobalRef java_ime_adapter_;
97 }; 99 };
98 100
99 bool RegisterImeAdapter(JNIEnv* env); 101 bool RegisterImeAdapter(JNIEnv* env);
100 102
101 } // namespace content 103 } // namespace content
102 104
103 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 105 #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