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

Unified Diff: chrome/browser/download/all_download_item_notifier.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/download/all_download_item_notifier.h
diff --git a/chrome/browser/download/all_download_item_notifier.h b/chrome/browser/download/all_download_item_notifier.h
index fa4c4be360c8d5dc0a5834979e40db0216f3c519..51de0ebcfab34f20e787f1ff2ecd6d3b88ce200f 100644
--- a/chrome/browser/download/all_download_item_notifier.h
+++ b/chrome/browser/download/all_download_item_notifier.h
@@ -51,6 +51,8 @@ class AllDownloadItemNotifier : public content::DownloadManager::Observer,
content::DownloadManager* manager, content::DownloadItem* item) {}
virtual void OnDownloadRemoved(
content::DownloadManager* manager, content::DownloadItem* item) {}
+ virtual void OnDownloadShown(
+ content::DownloadManager* manager, content::DownloadItem* item) {}
private:
DISALLOW_COPY_AND_ASSIGN(Observer);
@@ -74,6 +76,7 @@ class AllDownloadItemNotifier : public content::DownloadManager::Observer,
virtual void OnDownloadUpdated(content::DownloadItem* item) OVERRIDE;
virtual void OnDownloadOpened(content::DownloadItem* item) OVERRIDE;
virtual void OnDownloadRemoved(content::DownloadItem* item) OVERRIDE;
+ virtual void OnDownloadShown(content::DownloadItem* item) OVERRIDE;
virtual void OnDownloadDestroyed(content::DownloadItem* item) OVERRIDE;
content::DownloadManager* manager_;

Powered by Google App Engine
This is Rietveld 408576698