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

Unified Diff: third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp

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: third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp b/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp
index d31d2ecc93bad0d4d442464510f362cee61074a4..caa0844841b6065657b2ba9132a3a68d636da970 100644
--- a/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp
@@ -134,6 +134,21 @@ bool WebInputMethodControllerImpl::commitText(
relativeCaretPosition);
}
+void WebInputMethodControllerImpl::applySuggestionReplacement(
+ int documentMarkerID,
+ int suggestionIndex) {
+ inputMethodController().applySuggestionReplacement(documentMarkerID,
+ suggestionIndex);
+}
+
+void WebInputMethodControllerImpl::deleteSuggestionHighlight() {
+ inputMethodController().deleteSuggestionHighlight();
+}
+
+void WebInputMethodControllerImpl::suggestionMenuClosed() {
+ inputMethodController().suggestionMenuClosed();
+}
+
WebTextInputInfo WebInputMethodControllerImpl::textInputInfo() {
return frame()->inputMethodController().textInputInfo();
}
@@ -142,6 +157,17 @@ WebTextInputType WebInputMethodControllerImpl::textInputType() {
return frame()->inputMethodController().textInputType();
}
+WebVector<WebTextSuggestionInfo>
+WebInputMethodControllerImpl::getTextSuggestionInfosUnderCaret() {
+ return frame()->inputMethodController().getTextSuggestionInfosUnderCaret();
rlanday 2017/01/31 19:50:22 I think all the code in this file that does frame(
+}
+
+void WebInputMethodControllerImpl::prepareForTextSuggestionMenuToBeShown() {
+ return frame()
+ ->inputMethodController()
+ .prepareForTextSuggestionMenuToBeShown();
+}
+
LocalFrame* WebInputMethodControllerImpl::frame() const {
return m_webLocalFrame->frame();
}

Powered by Google App Engine
This is Rietveld 408576698