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

Unified Diff: chrome/browser/background_mode_manager.h

Issue 3189003: Added support for context menus to status icons. (Closed)
Patch Set: Final version. 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 | chrome/browser/background_mode_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background_mode_manager.h
diff --git a/chrome/browser/background_mode_manager.h b/chrome/browser/background_mode_manager.h
index fa5296b75a7b87d2c65bbb2d32098ef196ee8a43..4ae495901ebec1b8bad100cea6ab85edaff97a0e 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();
« no previous file with comments | « no previous file | chrome/browser/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698