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

Unified Diff: app/menus/button_menu_item_model.h

Issue 3032038: The button menu items on GTK menus honor the enabled state of the command.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « no previous file | app/menus/button_menu_item_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/menus/button_menu_item_model.h
===================================================================
--- app/menus/button_menu_item_model.h (revision 54011)
+++ app/menus/button_menu_item_model.h (working copy)
@@ -84,6 +84,9 @@
// Returns the enabled state of the button at |index|.
bool IsEnabledAt(int index) const;
+ // Returns the enabled state of the command specified by |command_id|.
+ bool IsCommandIdEnabled(int command_id) const;
+
const string16& label() const { return item_label_; }
private:
« no previous file with comments | « no previous file | app/menus/button_menu_item_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698