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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_item_controller.h

Issue 3400027: [Mac] Makes the download shelf auto-close after the user opens all downloads... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/download/download_item_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 9
10 class BaseDownloadItemModel; 10 class BaseDownloadItemModel;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Updates the UI and menu state from |downloadModel|. 67 // Updates the UI and menu state from |downloadModel|.
68 - (void)setStateFromDownload:(BaseDownloadItemModel*)downloadModel; 68 - (void)setStateFromDownload:(BaseDownloadItemModel*)downloadModel;
69 69
70 // Remove ourself from the download UI. 70 // Remove ourself from the download UI.
71 - (void)remove; 71 - (void)remove;
72 72
73 // Update item's visibility depending on if the item is still completely 73 // Update item's visibility depending on if the item is still completely
74 // contained in its parent. 74 // contained in its parent.
75 - (void)updateVisibility:(id)sender; 75 - (void)updateVisibility:(id)sender;
76 76
77 // Called after a download is opened.
78 - (void)downloadWasOpened;
79
77 // Asynchronous icon loading callback. 80 // Asynchronous icon loading callback.
78 - (void)setIcon:(NSImage*)icon; 81 - (void)setIcon:(NSImage*)icon;
79 82
80 // Download item button clicked 83 // Download item button clicked
81 - (IBAction)handleButtonClick:(id)sender; 84 - (IBAction)handleButtonClick:(id)sender;
82 85
83 // Returns the size this item wants to have. 86 // Returns the size this item wants to have.
84 - (NSSize)preferredSize; 87 - (NSSize)preferredSize;
85 88
86 // Returns the DownloadItem model object belonging to this item. 89 // Returns the DownloadItem model object belonging to this item.
87 - (DownloadItem*)download; 90 - (DownloadItem*)download;
88 91
89 // Updates the tooltip with the download's path. 92 // Updates the tooltip with the download's path.
90 - (void)updateToolTip; 93 - (void)updateToolTip;
91 94
92 // Handling of dangerous downloads 95 // Handling of dangerous downloads
93 - (void)clearDangerousMode; 96 - (void)clearDangerousMode;
94 - (BOOL)isDangerousMode; 97 - (BOOL)isDangerousMode;
95 - (IBAction)saveDownload:(id)sender; 98 - (IBAction)saveDownload:(id)sender;
96 - (IBAction)discardDownload:(id)sender; 99 - (IBAction)discardDownload:(id)sender;
97 100
98 // Context menu handlers. 101 // Context menu handlers.
99 - (IBAction)handleOpen:(id)sender; 102 - (IBAction)handleOpen:(id)sender;
100 - (IBAction)handleAlwaysOpen:(id)sender; 103 - (IBAction)handleAlwaysOpen:(id)sender;
101 - (IBAction)handleReveal:(id)sender; 104 - (IBAction)handleReveal:(id)sender;
102 - (IBAction)handleCancel:(id)sender; 105 - (IBAction)handleCancel:(id)sender;
103 - (IBAction)handleTogglePause:(id)sender; 106 - (IBAction)handleTogglePause:(id)sender;
104 107
105 @end 108 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/download/download_item_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698