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

Unified Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp

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: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
index b92dcec7cf49e703c7c2b205e2c33f6e791a1d2d..63214655706a8c3468d99ef8c4ad55f781be68cd 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
@@ -155,6 +155,8 @@ int ContextMenuClientImpl::ComputeEditFlags(Document& selected_document,
edit_flags |= WebContextMenuData::kCanPaste;
if (editor.CanDelete())
edit_flags |= WebContextMenuData::kCanDelete;
+ if (editor.CanEditRichly())
+ edit_flags |= WebContextMenuData::kCanEditRichly;
if (selected_document.queryCommandEnabled("selectAll", ASSERT_NO_EXCEPTION))
edit_flags |= WebContextMenuData::kCanSelectAll;
return edit_flags;

Powered by Google App Engine
This is Rietveld 408576698