summaryrefslogtreecommitdiffstats
path: root/chrome/browser/encoding_menu_controller_delegate.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 23:03:14 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 23:03:14 +0000
commit1fc025209fbaeb2eb91cfeac8dbced8bc493f3b2 (patch)
tree13faf73a68138e0cd30e7b628a677ebb0422aa8c /chrome/browser/encoding_menu_controller_delegate.h
parent91f57782b0dd7a847b8d31020003f00099366545 (diff)
downloadchromium_src-1fc025209fbaeb2eb91cfeac8dbced8bc493f3b2.zip
chromium_src-1fc025209fbaeb2eb91cfeac8dbced8bc493f3b2.tar.gz
chromium_src-1fc025209fbaeb2eb91cfeac8dbced8bc493f3b2.tar.bz2
Rework the command updater to not be dependent on views::Button (needed for porting).
TEST=make sure back/forward buttons still enable/disable correctly depending on the length of the back/forward navigation list. Review URL: http://codereview.chromium.org/18343 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/encoding_menu_controller_delegate.h')
-rw-r--r--chrome/browser/encoding_menu_controller_delegate.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/encoding_menu_controller_delegate.h b/chrome/browser/encoding_menu_controller_delegate.h
index 44998e2..0671a2f 100644
--- a/chrome/browser/encoding_menu_controller_delegate.h
+++ b/chrome/browser/encoding_menu_controller_delegate.h
@@ -13,13 +13,16 @@ class Profile;
// Encapsulates logic about populating the encoding menu and making
// sure the correct items are checked.
-class EncodingMenuControllerDelegate : public Menu::BaseControllerDelegate {
+class EncodingMenuControllerDelegate : public Menu::Delegate {
public:
- explicit EncodingMenuControllerDelegate(
- Browser* browser, Controller* wrapped);
+ explicit EncodingMenuControllerDelegate(Browser* browser);
// Overridden from Menu::Delegate:
virtual bool IsItemChecked(int id) const;
+ virtual bool SupportsCommand(int id) const;
+ virtual bool IsCommandEnabled(int id) const;
+ virtual bool GetContextualLabel(int id, std::wstring* out) const;
+ virtual void ExecuteCommand(int id);
// Builds the encoding menu in the passed in |encoding_menu|. This
// is used in both the simple frame menu and in the page menu in the