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

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

Issue 2801003004: Add "Paste as plain text" into text selection toolbar overflow (Closed)
Patch Set: add comments Created 3 years, 8 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 111773b0be67ace0112dd94124b5d1ebc9c99c69..4e6b56101b1159c2907ef5284d086d30eaf15390 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -272,6 +272,13 @@ void WebContentsAndroid::Paste(JNIEnv* env, const JavaParamRef<jobject>& obj) {
web_contents_->Paste();
}
+void WebContentsAndroid::PasteAsPlainText(JNIEnv* env,
+ const JavaParamRef<jobject>& obj) {
+ // Paste as plain text is actually paste text use the current text format
boliu 2017/05/03 00:44:44 this does not actually explain why it's correct, s
+ // setting.
+ web_contents_->PasteAndMatchStyle();
+}
+
void WebContentsAndroid::Replace(JNIEnv* env,
const JavaParamRef<jobject>& obj,
const JavaParamRef<jstring>& jstr) {
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/public/android/java/res/menu/select_action_menu.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698