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

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

Issue 40733005: [Mac] Update the warnings UI for malicious downloads. (Closed) Base URL: ssh://asankaworkstation.cam.corp.google.com/home/asanka/l/git/src.git@master
Patch Set: Rebase Created 7 years, 1 month 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 23 matching lines...) Expand all
34 @interface DownloadItemController : NSViewController { 34 @interface DownloadItemController : NSViewController {
35 @private 35 @private
36 IBOutlet DownloadItemButton* progressView_; 36 IBOutlet DownloadItemButton* progressView_;
37 IBOutlet DownloadItemCell* cell_; 37 IBOutlet DownloadItemCell* cell_;
38 38
39 // This is shown instead of progressView_ for dangerous downloads. 39 // This is shown instead of progressView_ for dangerous downloads.
40 IBOutlet NSView* dangerousDownloadView_; 40 IBOutlet NSView* dangerousDownloadView_;
41 IBOutlet NSTextField* dangerousDownloadLabel_; 41 IBOutlet NSTextField* dangerousDownloadLabel_;
42 IBOutlet NSButton* dangerousDownloadConfirmButton_; 42 IBOutlet NSButton* dangerousDownloadConfirmButton_;
43 43
44 // Needed to find out how much the tweaker changed sizes to update the 44 // Needed to find out how much the tweakers changed sizes to update the other
45 // other views. 45 // views.
46 IBOutlet GTMWidthBasedTweaker* buttonTweaker_; 46 IBOutlet GTMWidthBasedTweaker* dangerousButtonTweaker_;
47 IBOutlet GTMWidthBasedTweaker* maliciousButtonTweaker_;
47 48
48 // Because the confirm text and button for dangerous downloads are determined 49 // Because the confirm text and button for dangerous downloads are determined
49 // at runtime, an outlet to the localizer is needed to construct the layout 50 // at runtime, an outlet to the localizer is needed to construct the layout
50 // tweaker in awakeFromNib in order to adjust the UI after all strings are 51 // tweaker in awakeFromNib in order to adjust the UI after all strings are
51 // determined. 52 // determined.
52 IBOutlet ChromeUILocalizer* localizer_; 53 IBOutlet ChromeUILocalizer* localizer_;
53 54
54 IBOutlet NSImageView* image_; 55 IBOutlet NSImageView* image_;
55 56
56 scoped_ptr<DownloadItemMac> bridge_; 57 scoped_ptr<DownloadItemMac> bridge_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 - (ui::MenuModel*)contextMenuModel; 109 - (ui::MenuModel*)contextMenuModel;
109 110
110 // Updates the tooltip with the download's path. 111 // Updates the tooltip with the download's path.
111 - (void)updateToolTip; 112 - (void)updateToolTip;
112 113
113 // Handling of dangerous downloads 114 // Handling of dangerous downloads
114 - (void)clearDangerousMode; 115 - (void)clearDangerousMode;
115 - (BOOL)isDangerousMode; 116 - (BOOL)isDangerousMode;
116 - (IBAction)saveDownload:(id)sender; 117 - (IBAction)saveDownload:(id)sender;
117 - (IBAction)discardDownload:(id)sender; 118 - (IBAction)discardDownload:(id)sender;
118 119 - (IBAction)dismissMaliciousDownload:(id)sender;
120 - (IBAction)showContextMenu:(id)sender;
119 @end 121 @end
OLDNEW
« no previous file with comments | « chrome/app/nibs/DownloadItem.xib ('k') | chrome/browser/ui/cocoa/download/download_item_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698