#ifndef CHROME_BROWSER_UI_GTK_STATUS_ICONS_STATUS_ICON_GTK_H_
#define CHROME_BROWSER_UI_GTK_STATUS_ICONS_STATUS_ICON_GTK_H_
#include <gtk/gtk.h>
#include "base/compiler_specific.h"
#include "chrome/browser/status_icons/desktop_notification_balloon.h"
#include "chrome/browser/status_icons/status_icon.h"
#include "ui/base/gtk/gtk_signal.h"
class MenuGtk;
class StatusIconGtk : public StatusIcon {
public:
StatusIconGtk();
virtual ~StatusIconGtk();
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;
CHROMEGTK_CALLBACK_0(StatusIconGtk, void, OnClick);
protected:
virtual void UpdatePlatformContextMenu(
StatusIconMenuModel* menu) OVERRIDE;
private:
CHROMEGTK_CALLBACK_2(StatusIconGtk, void, OnPopupMenu, guint, guint);
GtkStatusIcon* icon_;
scoped_ptr<MenuGtk> menu_;
DesktopNotificationBalloon notification_;
DISALLOW_COPY_AND_ASSIGN(StatusIconGtk);
};
#endif