#ifndef CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_
#define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_LINUX_WRAPPER_H_
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/status_icons/desktop_notification_balloon.h"
#include "chrome/browser/status_icons/status_icon.h"
#include "ui/views/linux_ui/status_icon_linux.h"
class StatusIconLinuxWrapper : public StatusIcon,
public views::StatusIconLinux::Delegate,
public StatusIconMenuModel::Observer {
public:
virtual ~StatusIconLinuxWrapper();
virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE;
virtual void SetPressedImage(const gfx::ImageSkia& image) OVERRIDE;
virtual void SetToolTip(const base::string16& tool_tip) OVERRIDE;
virtual void DisplayBalloon(const gfx::ImageSkia& icon,
const base::string16& title,
const base::string16& contents) OVERRIDE;
virtual void OnClick() OVERRIDE;
virtual bool HasClickAction() OVERRIDE;
virtual void OnMenuStateChanged() OVERRIDE;
static StatusIconLinuxWrapper* CreateWrappedStatusIcon(
const gfx::ImageSkia& image,
const base::string16& tool_tip);
protected:
virtual void UpdatePlatformContextMenu(
StatusIconMenuModel* model) OVERRIDE;
private:
explicit StatusIconLinuxWrapper(views::StatusIconLinux* status_icon);
DesktopNotificationBalloon notification_;
scoped_ptr<views::StatusIconLinux> status_icon_;
StatusIconMenuModel* menu_model_;
DISALLOW_COPY_AND_ASSIGN(StatusIconLinuxWrapper);
};
#endif