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

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

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Add more comments 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.cc
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index c28f43fbb25cc12f7e27f112c49d6d12c08a90da..4a75a701d6d97999d93fd6acc2eb3354a8342c4e 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -286,6 +286,17 @@ void ImeAdapterAndroid::DeleteSurroundingText(JNIEnv*,
rfh->DeleteSurroundingText(before, after);
}
+void ImeAdapterAndroid::DeleteSurroundingTextInCodePoints(
+ JNIEnv*,
+ const JavaParamRef<jobject>&,
+ int before,
+ int after) {
+ RenderFrameHostImpl* rfh =
+ static_cast<RenderFrameHostImpl*>(GetFocusedFrame());
+ if (rfh)
+ rfh->DeleteSurroundingTextInCodePoints(before, after);
+}
+
bool ImeAdapterAndroid::RequestTextInputStateUpdate(
JNIEnv* env,
const JavaParamRef<jobject>&) {

Powered by Google App Engine
This is Rietveld 408576698