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> toggleStatusVisibilityAnimation_; |
47 scoped_nsobject<NSAnimation> hideStatusAnimation_; | |
48 | 47 |
49 scoped_ptr<ui::ThemeProvider> themeProvider_; | 48 scoped_ptr<ui::ThemeProvider> themeProvider_; |
50 } | 49 } |
51 | 50 |
52 @property(nonatomic, copy) NSString* secondaryTitle; | 51 @property(nonatomic, copy) NSString* secondaryTitle; |
53 @property(nonatomic, retain) NSFont* secondaryFont; | 52 @property(nonatomic, retain) NSFont* secondaryFont; |
54 | 53 |
55 - (void)setStateFromDownload:(BaseDownloadItemModel*)downloadModel; | 54 - (void)setStateFromDownload:(BaseDownloadItemModel*)downloadModel; |
56 | 55 |
57 // Returns if the mouse is over the button part of the cell. | 56 // Returns if the mouse is over the button part of the cell. |
58 - (BOOL)isMouseOverButtonPart; | 57 - (BOOL)isMouseOverButtonPart; |
59 | 58 |
60 @end | 59 @end |
61 | 60 |
| 61 @interface DownloadItemCell(TestingAPI) |
| 62 - (BOOL)isStatusTextVisible; |
| 63 - (CGFloat)statusTextAlpha; |
| 64 - (void)skipVisibilityAnimation; |
| 65 - (void)showSecondaryTitle; |
| 66 - (void)hideSecondaryTitle; |
| 67 @end |
| 68 |
62 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ | 69 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ |
OLD | NEW |