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

Unified Diff: content/public/browser/download_item.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: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 1e66f8b8a0d06ff62cf766820ff1e988dd25b0be..e1eaa01a58859dd40f9d01aa91a3723f86cd4170 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -89,6 +89,7 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
virtual void OnDownloadUpdated(DownloadItem* download) {}
virtual void OnDownloadOpened(DownloadItem* download) {}
virtual void OnDownloadRemoved(DownloadItem* download) {}
+ virtual void OnDownloadShown(DownloadItem* download) {}
// Called when the download is being destroyed. This happens after
// every OnDownloadRemoved() as well as when the DownloadManager is going
@@ -321,9 +322,6 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// SearchDownloads(), removed from main UI upon completion).
virtual void SetIsTemporary(bool temporary) = 0;
- // Mark the download as having been opened (without actually opening it).
- virtual void SetOpened(bool opened) = 0;
-
// Set a display name for the download that will be independent of the target
// filename. If |name| is not empty, then GetFileNameToReportUser() will
// return |name|. Has no effect on the final target filename.

Powered by Google App Engine
This is Rietveld 408576698