| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 17 matching lines...) Expand all Loading... |
| 28 NSMenu* currentMenu_; // points to one of the two menus above | 28 NSMenu* currentMenu_; // points to one of the two menus above |
| 29 | 29 |
| 30 // This is shown instead of progressView_ for dangerous downloads. | 30 // This is shown instead of progressView_ for dangerous downloads. |
| 31 IBOutlet NSView* dangerousDownloadView_; | 31 IBOutlet NSView* dangerousDownloadView_; |
| 32 IBOutlet NSTextField* dangerousDownloadLabel_; | 32 IBOutlet NSTextField* dangerousDownloadLabel_; |
| 33 | 33 |
| 34 // So we can find out how much the tweaker changed sizes to update the | 34 // So we can find out how much the tweaker changed sizes to update the |
| 35 // other views. | 35 // other views. |
| 36 IBOutlet GTMWidthBasedTweaker* buttonTweaker_; | 36 IBOutlet GTMWidthBasedTweaker* buttonTweaker_; |
| 37 | 37 |
| 38 IBOutlet NSImageView* image_; |
| 39 |
| 38 scoped_ptr<DownloadItemMac> bridge_; | 40 scoped_ptr<DownloadItemMac> bridge_; |
| 39 scoped_ptr<DownloadShelfContextMenuMac> menuBridge_; | 41 scoped_ptr<DownloadShelfContextMenuMac> menuBridge_; |
| 40 | 42 |
| 41 // Weak pointer to the shelf that owns us. | 43 // Weak pointer to the shelf that owns us. |
| 42 DownloadShelfController* shelf_; | 44 DownloadShelfController* shelf_; |
| 43 | 45 |
| 44 // The time at which this view was created. | 46 // The time at which this view was created. |
| 45 base::Time creationTime_; | 47 base::Time creationTime_; |
| 46 | 48 |
| 47 // The state of this item. | 49 // The state of this item. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 - (IBAction)discardDownload:(id)sender; | 86 - (IBAction)discardDownload:(id)sender; |
| 85 | 87 |
| 86 // Context menu handlers. | 88 // Context menu handlers. |
| 87 - (IBAction)handleOpen:(id)sender; | 89 - (IBAction)handleOpen:(id)sender; |
| 88 - (IBAction)handleAlwaysOpen:(id)sender; | 90 - (IBAction)handleAlwaysOpen:(id)sender; |
| 89 - (IBAction)handleReveal:(id)sender; | 91 - (IBAction)handleReveal:(id)sender; |
| 90 - (IBAction)handleCancel:(id)sender; | 92 - (IBAction)handleCancel:(id)sender; |
| 91 | 93 |
| 92 @end | 94 @end |
| 93 | 95 |
| OLD | NEW |