OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ |
6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ | 6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import "base/mac/cocoa_protocols.h" | 9 #import "base/mac/cocoa_protocols.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 FilePath downloadPath_; // stored unelided | 37 FilePath downloadPath_; // stored unelided |
38 NSString* secondaryTitle_; | 38 NSString* secondaryTitle_; |
39 NSFont* secondaryFont_; | 39 NSFont* secondaryFont_; |
40 int percentDone_; | 40 int percentDone_; |
41 scoped_nsobject<NSAnimation> completionAnimation_; | 41 scoped_nsobject<NSAnimation> completionAnimation_; |
42 | 42 |
43 BOOL isStatusTextVisible_; | 43 BOOL isStatusTextVisible_; |
44 CGFloat titleY_; | 44 CGFloat titleY_; |
45 CGFloat statusAlpha_; | 45 CGFloat statusAlpha_; |
| 46 scoped_nsobject<NSAnimation> showStatusAnimation_; |
46 scoped_nsobject<NSAnimation> hideStatusAnimation_; | 47 scoped_nsobject<NSAnimation> hideStatusAnimation_; |
47 | 48 |
48 scoped_ptr<ui::ThemeProvider> themeProvider_; | 49 scoped_ptr<ui::ThemeProvider> themeProvider_; |
49 } | 50 } |
50 | 51 |
51 @property(nonatomic, copy) NSString* secondaryTitle; | 52 @property(nonatomic, copy) NSString* secondaryTitle; |
52 @property(nonatomic, retain) NSFont* secondaryFont; | 53 @property(nonatomic, retain) NSFont* secondaryFont; |
53 | 54 |
54 - (void)setStateFromDownload:(BaseDownloadItemModel*)downloadModel; | 55 - (void)setStateFromDownload:(BaseDownloadItemModel*)downloadModel; |
55 | 56 |
56 // Returns if the mouse is over the button part of the cell. | 57 // Returns if the mouse is over the button part of the cell. |
57 - (BOOL)isMouseOverButtonPart; | 58 - (BOOL)isMouseOverButtonPart; |
58 | 59 |
59 @end | 60 @end |
60 | 61 |
61 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ | 62 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ |
OLD | NEW |