#ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_BROWSER_H_
#define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_BROWSER_H_
#include "base/values.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
class Browser;
class ChromeLauncherAppMenuItemBrowser : public content::NotificationObserver,
public ChromeLauncherAppMenuItem {
public:
ChromeLauncherAppMenuItemBrowser(const base::string16 title,
const gfx::Image* icon,
Browser* browser,
bool has_leading_separator);
virtual bool IsActive() const OVERRIDE;
virtual bool IsEnabled() const OVERRIDE;
virtual void Execute(int event_flags) OVERRIDE;
private:
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
Browser* browser_;
content::NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(ChromeLauncherAppMenuItemBrowser);
};
#endif