#ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "chrome/browser/download/download_shelf_context_menu.h"
#include "ui/base/ui_base_types.h"
namespace content {
class DownloadItem;
class PageNavigator;
}
namespace gfx {
class Rect;
}
namespace views {
class MenuRunner;
class Widget;
}
class DownloadShelfContextMenuView : public DownloadShelfContextMenu {
public:
DownloadShelfContextMenuView(content::DownloadItem* download_item,
content::PageNavigator* navigator);
virtual ~DownloadShelfContextMenuView();
base::TimeTicks close_time() const { return close_time_; }
void Run(views::Widget* parent_widget,
const gfx::Rect& rect,
ui::MenuSourceType source_type);
private:
scoped_ptr<views::MenuRunner> menu_runner_;
base::TimeTicks close_time_;
DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenuView);
};
#endif