diff options
author | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-20 04:52:44 +0000 |
---|---|---|
committer | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-20 04:52:44 +0000 |
commit | 9979f5d4a25cab18fa10885c5c7b64ea9f8d8eeb (patch) | |
tree | 0204e3328959fb902f7fb613d0c99103a0e858c7 /chrome/browser/background_mode_manager.h | |
parent | c78b1e1619d7e700fce78f29533eba5ee78b0c70 (diff) | |
download | chromium_src-9979f5d4a25cab18fa10885c5c7b64ea9f8d8eeb.zip chromium_src-9979f5d4a25cab18fa10885c5c7b64ea9f8d8eeb.tar.gz chromium_src-9979f5d4a25cab18fa10885c5c7b64ea9f8d8eeb.tar.bz2 |
Added support for context menus to status icons.
BUG=37375
TEST=updated StatusIcon unit tests
Review URL: http://codereview.chromium.org/3189003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background_mode_manager.h')
-rw-r--r-- | chrome/browser/background_mode_manager.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/background_mode_manager.h b/chrome/browser/background_mode_manager.h index fa5296b..4ae4959 100644 --- a/chrome/browser/background_mode_manager.h +++ b/chrome/browser/background_mode_manager.h @@ -6,6 +6,7 @@ #define CHROME_BROWSER_BACKGROUND_MODE_MANAGER_H_ #pragma once +#include "app/menus/simple_menu_model.h" #include "base/gtest_prod_util.h" #include "chrome/browser/status_icons/status_icon.h" #include "chrome/common/notification_observer.h" @@ -34,7 +35,7 @@ class StatusTray; // background. class BackgroundModeManager : private NotificationObserver, - private StatusIcon::Observer { + private menus::SimpleMenuModel::Delegate { public: explicit BackgroundModeManager(Profile* profile); virtual ~BackgroundModeManager(); @@ -53,8 +54,12 @@ class BackgroundModeManager const NotificationSource& source, const NotificationDetails& details); - // StatusIcon::Observer implementation. - virtual void OnClicked(); + // SimpleMenuModel::Delegate implementation. + virtual bool IsCommandIdChecked(int command_id) const; + virtual bool IsCommandIdEnabled(int command_id) const; + virtual bool GetAcceleratorForCommandId(int command_id, + menus::Accelerator* accelerator); + virtual void ExecuteCommand(int command_id); // Called when an extension is loaded to manage count of background apps. void OnBackgroundAppLoaded(); |