From b21d691e4e486071ac8601fee7867c29729faca6 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Tue, 31 Aug 2010 19:22:41 +0000 Subject: The "Update Chrome" menu item should appear in addition to the About menu. It should not replace it. This patch modifications to the GTK and Cocoa ports to make the update chrome item appear when an update is available. On win/chromeos, the menu item is always there but disabled, since I'm having some problems figuring out the views custom menu implementation. BUG=46221 TEST=The upgrade item should now appear under instead of replacing the about command. Review URL: http://codereview.chromium.org/3143046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58040 0039d316-1c4b-4281-b951-d872f2087c98 --- app/menus/menu_model.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/menus/menu_model.h') diff --git a/app/menus/menu_model.h b/app/menus/menu_model.h index c91efc9..1cb356a 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; -- cgit v1.1