Index: chrome/browser/tab_contents/render_view_context_menu.cc |
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc |
index d668e7a00ca381af2517afa27c3be96d7d578a02..1d1218dd53e6477775010da8a88cc2ff727ffa36 100644 |
--- a/chrome/browser/tab_contents/render_view_context_menu.cc |
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc |
@@ -655,6 +655,13 @@ void RenderViewContextMenu::AppendPlatformAppItems() { |
int index = 0; |
AppendExtensionItems(platform_app->id(), &index); |
+ // Add undo/redo, cut/copy/paste etc for text fields |
+ if (params_.is_editable) { |
+ if (menu_model_.GetItemCount() > 0) |
+ menu_model_.AddSeparator(); |
+ AppendEditableItems(); |
+ } |
asargent_no_longer_on_chrome
2012/08/20 19:40:21
I think we also want to add the copy menu command
Marijn Kruisselbrink
2012/08/20 19:46:58
I thought about that, but as far as I could tell i
|
+ |
// Add dev tools for unpacked extensions. |
if (platform_app->location() == Extension::LOAD) { |
menu_model_.AddItemWithStringId(IDC_RELOAD, IDS_CONTENT_CONTEXT_RELOAD); |