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

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

Issue 7713033: Integrate the Spelling service to Chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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') | chrome/chrome_browser.gypi » ('j') | 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 99616)
+++ chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc (working copy)
@@ -110,3 +110,20 @@
return false;
}
}
+
+void RenderViewContextMenuViews::UpdateMenuItem(int command_id,
+ bool enabled,
+ const string16& title) {
+ views::MenuItemView* item = menu_->GetMenuItemByID(command_id);
+ if (!item)
+ return;
+
+ item->SetEnabled(enabled);
+ item->SetTitle(UTF16ToWide(title));
+
+ views::MenuItemView* parent = item->GetParentMenuItem();
+ if (!parent)
+ return;
+
+ parent->ChildrenChanged();
+}
« no previous file with comments | « chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698