#ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERY_CONTEXT_MENU_H_
#define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERY_CONTEXT_MENU_H_
#include "base/basictypes.h"
#include "base/callback.h"
#include "chrome/browser/media_galleries/media_galleries_preferences.h"
#include "ui/base/models/simple_menu_model.h"
class MediaGalleryContextMenu : public ui::SimpleMenuModel,
public ui::SimpleMenuModel::Delegate {
public:
typedef base::Callback<void(MediaGalleryPrefId pref_id)>
ForgetGalleryCallback;
explicit MediaGalleryContextMenu(const ForgetGalleryCallback& callback);
virtual ~MediaGalleryContextMenu();
void set_pref_id(MediaGalleryPrefId pref_id) {
pref_id_ = pref_id;
}
virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
virtual bool IsCommandIdVisible(int command_id) const OVERRIDE;
virtual bool GetAcceleratorForCommandId(
int command_id, ui::Accelerator* accelerator) OVERRIDE;
virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
private:
MediaGalleryPrefId pref_id_;
ForgetGalleryCallback callback_;
DISALLOW_COPY_AND_ASSIGN(MediaGalleryContextMenu);
};
#endif