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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 2801003004: Add "Paste as plain text" into text selection toolbar overflow (Closed)
Patch Set: check more styles 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/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index f8ad7357c8d0c075dc04e4cd5ae1f609f908460e..de6fbe1ca1fc63ad01dd93b22d6fbc6a02f8a88c 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -630,6 +630,9 @@ bool ContentViewCoreImpl::ShowPastePopup(const ContextMenuParams& params) {
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
if (obj.is_null())
return false;
+ Java_ContentViewCore_setCanEditRichly(
amaralp 2017/04/13 20:40:17 You can pass an extra boolean to ContentViewCore.s
Shimi Zhang 2017/04/15 01:17:15 Done.
+ env, obj,
+ (params.edit_flags & blink::WebContextMenuData::kCanEditRichly) > 0);
Java_ContentViewCore_showPastePopup(env, obj, params.selection_start.x(),
params.selection_start.y());
return true;

Powered by Google App Engine
This is Rietveld 408576698