OLD | NEW |
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 <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 | 10 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 - (content::DownloadItem*)download; | 148 - (content::DownloadItem*)download; |
149 | 149 |
150 // Returns the MenuModel for the download item context menu. The returned | 150 // Returns the MenuModel for the download item context menu. The returned |
151 // MenuModel is owned by the DownloadItemController and will be valid until the | 151 // MenuModel is owned by the DownloadItemController and will be valid until the |
152 // DownloadItemController is destroyed. | 152 // DownloadItemController is destroyed. |
153 - (ui::MenuModel*)contextMenuModel; | 153 - (ui::MenuModel*)contextMenuModel; |
154 | 154 |
155 // Updates the tooltip with the download's path. | 155 // Updates the tooltip with the download's path. |
156 - (void)updateToolTip; | 156 - (void)updateToolTip; |
157 | 157 |
| 158 // Updates |progressView_| by calling setNeedsDisplay:YES. |
| 159 - (void)updateDownloadItemView; |
| 160 |
158 // Handling of dangerous downloads | 161 // Handling of dangerous downloads |
159 - (void)clearDangerousMode; | 162 - (void)clearDangerousMode; |
160 - (BOOL)isDangerousMode; | 163 - (BOOL)isDangerousMode; |
161 - (IBAction)saveDownload:(id)sender; | 164 - (IBAction)saveDownload:(id)sender; |
162 - (IBAction)discardDownload:(id)sender; | 165 - (IBAction)discardDownload:(id)sender; |
163 - (IBAction)dismissMaliciousDownload:(id)sender; | 166 - (IBAction)dismissMaliciousDownload:(id)sender; |
164 - (IBAction)showContextMenu:(id)sender; | 167 - (IBAction)showContextMenu:(id)sender; |
165 | 168 |
166 @end | 169 @end |
OLD | NEW |