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

Unified Diff: chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc

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
« no previous file with comments | « chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc
===================================================================
--- chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc (revision 106885)
+++ chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc (working copy)
@@ -104,6 +104,7 @@
void RenderViewContextMenuViews::UpdateMenuItem(int command_id,
bool enabled,
+ bool hidden,
const string16& title) {
views::MenuItemView* item = menu_->GetMenuItemByID(command_id);
if (!item)
@@ -111,6 +112,7 @@
item->SetEnabled(enabled);
item->SetTitle(title);
+ item->SetVisible(!hidden);
views::MenuItemView* parent = item->GetParentMenuItem();
if (!parent)
« no previous file with comments | « chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698