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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu_mac.mm

Issue 8370033: Add a 'hidden' parameter to RenderViewContextMenuProxy::UpdateMenuItem(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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: chrome/browser/tab_contents/render_view_context_menu_mac.mm
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu_mac.mm (revision 106885)
+++ chrome/browser/tab_contents/render_view_context_menu_mac.mm (working copy)
@@ -143,6 +143,7 @@
void RenderViewContextMenuMac::UpdateMenuItem(int command_id,
bool enabled,
+ bool hidden,
const string16& title) {
NSMenuItem* item = GetMenuItemByID(&menu_model_, [menuController_ menu],
command_id);
@@ -152,5 +153,6 @@
// Update the returned NSMenuItem directly so we can update it immediately.
[item setEnabled:enabled];
[item setTitle:SysUTF16ToNSString(title)];
+ [item setHidden:hidden];
[[item menu] itemChanged:item];
}
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_mac.h ('k') | chrome/browser/tab_contents/spelling_menu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698