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

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

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Add some DCHECK Created 3 years, 10 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 3a7d18b94da7ce41b8a4981e98e7d87b3eda70cc..075eb09a30d3157172680f55904c488be0a32a1d 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -285,6 +285,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