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

Unified Diff: app/menus/menu_model.h

Issue 3143046: The "Update Chrome" menu item should appear in addition to the About menu. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: estade fixes -> final try Created 10 years, 4 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/menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/menus/menu_model.h
diff --git a/app/menus/menu_model.h b/app/menus/menu_model.h
index c91efc905fc2bf949ea2c25df4ee69c063e295cd..1cb356a6a7a2168ed8dc25f2caf5f2e48ada8d35 100644
--- a/app/menus/menu_model.h
+++ b/app/menus/menu_model.h
@@ -94,6 +94,9 @@ class MenuModel {
// Returns the enabled state of the item at the specified index.
virtual bool IsEnabledAt(int index) const = 0;
+ // Returns true if the menu item is visible.
+ virtual bool IsVisibleAt(int index) const;
+
// Returns the model for the submenu at the specified index.
virtual MenuModel* GetSubmenuModelAt(int index) const = 0;
« no previous file with comments | « no previous file | app/menus/menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698