Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3117)

Unified Diff: chrome/browser/ui/cocoa/download/download_item_controller.h

Issue 209613002: Download shelf autohides on showing in shell, just same as regular open Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move the 'user acted' flag into DownloadItemModelData and get rid of SetOpened/SetShown in Download… Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/download/download_item_controller.h
diff --git a/chrome/browser/ui/cocoa/download/download_item_controller.h b/chrome/browser/ui/cocoa/download/download_item_controller.h
index 78010b6be04b3c4056ba92fcfbb2039ce396ba65..a255e829d91130c2fec693057d32ba6ecb49a594 100644
--- a/chrome/browser/ui/cocoa/download/download_item_controller.h
+++ b/chrome/browser/ui/cocoa/download/download_item_controller.h
@@ -91,6 +91,9 @@ class MenuModel;
// Called after a download is opened.
- (void)downloadWasOpened;
+// Called after a download is shown in shell.
+- (void)downloadWasShown;
+
// Asynchronous icon loading callback.
- (void)setIcon:(NSImage*)icon;
@@ -103,6 +106,9 @@ class MenuModel;
// Returns the DownloadItem model object belonging to this item.
- (content::DownloadItem*)download;
+// Returns the DownloadItemModel object belonging to this item.
+- (DownloadItemModel*)downloadItemModel;
+
// Returns the MenuModel for the download item context menu. The returned
// MenuModel is owned by the DownloadItemController and will be valid until the
// DownloadItemController is destroyed.

Powered by Google App Engine
This is Rietveld 408576698