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

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 1409443002: Make Chrome and WebView replace the selected text with the processed text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved comments around Created 5 years, 2 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/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index eff18f919a65abd91711d0f9fdd587bc581f665e..41b1cbe3f3ffc765384454510a3237a8ccd93006 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -264,6 +264,10 @@ void WebContentsAndroid::Paste(JNIEnv* env, jobject obj) {
web_contents_->Paste();
}
+void WebContentsAndroid::Replace(JNIEnv* env, jobject obj, jstring jstr) {
+ web_contents_->Replace(base::android::ConvertJavaStringToUTF16(env, jstr));
+}
+
void WebContentsAndroid::SelectAll(JNIEnv* env, jobject obj) {
web_contents_->SelectAll();
}

Powered by Google App Engine
This is Rietveld 408576698