OLD | NEW |
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 Loading... |
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. |
(...skipping 10 matching lines...) Expand all Loading... |
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 |
106 | 109 |
OLD | NEW |