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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 9
10 @class ChromeUILocalizer; 10 @class ChromeUILocalizer;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Remove ourself from the download UI. 84 // Remove ourself from the download UI.
85 - (void)remove; 85 - (void)remove;
86 86
87 // Update item's visibility depending on if the item is still completely 87 // Update item's visibility depending on if the item is still completely
88 // contained in its parent. 88 // contained in its parent.
89 - (void)updateVisibility:(id)sender; 89 - (void)updateVisibility:(id)sender;
90 90
91 // Called after a download is opened. 91 // Called after a download is opened.
92 - (void)downloadWasOpened; 92 - (void)downloadWasOpened;
93 93
94 // Called after a download is shown in shell.
95 - (void)downloadWasShown;
96
94 // Asynchronous icon loading callback. 97 // Asynchronous icon loading callback.
95 - (void)setIcon:(NSImage*)icon; 98 - (void)setIcon:(NSImage*)icon;
96 99
97 // Download item button clicked 100 // Download item button clicked
98 - (IBAction)handleButtonClick:(id)sender; 101 - (IBAction)handleButtonClick:(id)sender;
99 102
100 // Returns the size this item wants to have. 103 // Returns the size this item wants to have.
101 - (NSSize)preferredSize; 104 - (NSSize)preferredSize;
102 105
103 // Returns the DownloadItem model object belonging to this item. 106 // Returns the DownloadItem model object belonging to this item.
104 - (content::DownloadItem*)download; 107 - (content::DownloadItem*)download;
105 108
109 // Returns the DownloadItemModel object belonging to this item.
110 - (DownloadItemModel*)downloadItemModel;
111
106 // Returns the MenuModel for the download item context menu. The returned 112 // Returns the MenuModel for the download item context menu. The returned
107 // MenuModel is owned by the DownloadItemController and will be valid until the 113 // MenuModel is owned by the DownloadItemController and will be valid until the
108 // DownloadItemController is destroyed. 114 // DownloadItemController is destroyed.
109 - (ui::MenuModel*)contextMenuModel; 115 - (ui::MenuModel*)contextMenuModel;
110 116
111 // Updates the tooltip with the download's path. 117 // Updates the tooltip with the download's path.
112 - (void)updateToolTip; 118 - (void)updateToolTip;
113 119
114 // Handling of dangerous downloads 120 // Handling of dangerous downloads
115 - (void)clearDangerousMode; 121 - (void)clearDangerousMode;
116 - (BOOL)isDangerousMode; 122 - (BOOL)isDangerousMode;
117 - (IBAction)saveDownload:(id)sender; 123 - (IBAction)saveDownload:(id)sender;
118 - (IBAction)discardDownload:(id)sender; 124 - (IBAction)discardDownload:(id)sender;
119 - (IBAction)dismissMaliciousDownload:(id)sender; 125 - (IBAction)dismissMaliciousDownload:(id)sender;
120 - (IBAction)showContextMenu:(id)sender; 126 - (IBAction)showContextMenu:(id)sender;
121 @end 127 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698