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

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

Issue 2148483002: [Mac] Fix download shelf items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 4 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
« 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) 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
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
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