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

Unified Diff: content/browser/renderer_host/ime_adapter_android.h

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Remove logging statements, fix copyright years in new files Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/ime_adapter_android.h
diff --git a/content/browser/renderer_host/ime_adapter_android.h b/content/browser/renderer_host/ime_adapter_android.h
index 57610c06644b5f6dd98a6133c485929ecdcf263a..10ea3c3507032ee5fb88f16ece310f4476b215dd 100644
--- a/content/browser/renderer_host/ime_adapter_android.h
+++ b/content/browser/renderer_host/ime_adapter_android.h
@@ -16,6 +16,7 @@
namespace blink {
struct WebCompositionUnderline;
+struct WebTextSuggestionInfo;
} // namespace blink
@@ -80,11 +81,21 @@ class ImeAdapterAndroid {
bool immediateRequest, bool monitorRequest);
bool RequestTextInputStateUpdate(JNIEnv*,
const base::android::JavaParamRef<jobject>&);
+ void ApplySuggestionReplacement(JNIEnv*,
+ const base::android::JavaParamRef<jobject>&,
+ int documentMarkerID,
+ int suggestionIndex);
+ void DeleteSuggestionHighlight(JNIEnv*,
+ const base::android::JavaParamRef<jobject>&);
+ void SuggestionMenuClosed(JNIEnv*,
+ const base::android::JavaParamRef<jobject>&);
// Called from native -> java
void CancelComposition();
void FocusedNodeChanged(bool is_editable_node);
void SetCharacterBounds(const std::vector<gfx::RectF>& rects);
+ void ShowTextSuggestionMenu(
+ const std::vector<blink::WebTextSuggestionInfo>& suggestion_infos);
private:
RenderWidgetHostImpl* GetRenderWidgetHostImpl();

Powered by Google App Engine
This is Rietveld 408576698