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

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: 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d4bc3f810952cd1795dec2f01f3071aaa089a74b..35d92f88762120d0fa9c34c9fc1b4fd82f118169 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -594,11 +594,15 @@ bool ContentViewCoreImpl::ShowPastePopup(const ContextMenuParams& params) {
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
if (obj.is_null())
return false;
+
const bool can_select_all =
!!(params.edit_flags & WebContextMenuData::kCanSelectAll);
+ const bool can_edit_richly =
+ !!(params.edit_flags & blink::WebContextMenuData::kCanEditRichly);
+
Java_ContentViewCore_showPastePopup(env, obj, params.selection_start.x(),
params.selection_start.y(),
- can_select_all);
+ can_select_all, can_edit_richly);
return true;
}
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698