Index: chrome/browser/ui/views/download/download_shelf_context_menu_view.h |
diff --git a/chrome/browser/ui/views/download/download_shelf_context_menu_view.h b/chrome/browser/ui/views/download/download_shelf_context_menu_view.h |
index 53cd99127bace147e1ca844fd3c38889b79f9117..37ecabc49b8af5e7dec1022705ccdd932d6308d8 100644 |
--- a/chrome/browser/ui/views/download/download_shelf_context_menu_view.h |
+++ b/chrome/browser/ui/views/download/download_shelf_context_menu_view.h |
@@ -11,6 +11,7 @@ |
#include "base/macros.h" |
#include "base/time/time.h" |
#include "chrome/browser/download/download_shelf_context_menu.h" |
+#include "chrome/browser/ui/views/download/download_item_view.h" |
#include "ui/base/ui_base_types.h" |
namespace content { |
@@ -29,7 +30,7 @@ class Widget; |
class DownloadShelfContextMenuView : public DownloadShelfContextMenu { |
public: |
- explicit DownloadShelfContextMenuView(content::DownloadItem* download_item); |
+ explicit DownloadShelfContextMenuView(DownloadItemView* download_item_view); |
~DownloadShelfContextMenuView() override; |
base::TimeTicks close_time() const { return close_time_; } |
@@ -45,6 +46,11 @@ class DownloadShelfContextMenuView : public DownloadShelfContextMenu { |
// Callback for MenuRunner. |
void OnMenuClosed(const base::Closure& on_menu_closed_callback); |
+ void ExecuteCommand(int command_id, int event_flags) override; |
+ |
+ // Parent download item view. |
+ DownloadItemView* download_item_view_; |
+ |
std::unique_ptr<views::MenuRunner> menu_runner_; |
// Time the menu was closed. |