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

Unified Diff: chrome/browser/download/download_item_model.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/download_item_model.h
diff --git a/chrome/browser/download/download_item_model.h b/chrome/browser/download/download_item_model.h
index 367e9ef677d515ff83640d87146a4d508e1c58b0..8c91231f00f29a605eb9a2c2b5447840ce0c3d04 100644
--- a/chrome/browser/download/download_item_model.h
+++ b/chrome/browser/download/download_item_model.h
@@ -142,6 +142,14 @@ class DownloadItemModel {
// ShouldPreferOpeningInBrowser().
void OpenUsingPlatformHandler();
+ // Changes what is returned by GetUserActed(). The download shelf uses this to
+ // mark remaining downloads as acted when user manually closes the shelf.
+ void SetUserActed(bool acted);
+
+ // Returns |true| if user acted on download item (shown it in shell or
+ // opened). Download shelf checks this to autohide.
+ bool GetUserActed() const;
+
content::DownloadItem* download() { return download_; }
private:

Powered by Google App Engine
This is Rietveld 408576698