| OLD | NEW | 
|---|
| 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 #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 | 7 | 
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" | 
| 9 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" | 9 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" | 
| 10 | 10 | 
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" | 
|  | 12 #include "base/time/time.h" | 
| 12 | 13 | 
| 13 class DownloadItemModel; | 14 class DownloadItemModel; | 
| 14 @class IndeterminateProgressTimer; | 15 @class IndeterminateProgressTimer; | 
| 15 | 16 | 
| 16 // A button cell that implements the weird button/popup button hybrid that is | 17 // A button cell that implements the weird button/popup button hybrid that is | 
| 17 // used by the download items. | 18 // used by the download items. | 
| 18 | 19 | 
| 19 // The button represented by this cell consists of a button part on the left | 20 // The button represented by this cell consists of a button part on the left | 
| 20 // and a dropdown-menu part on the right. This enum describes which part the | 21 // and a dropdown-menu part on the right. This enum describes which part the | 
| 21 // mouse cursor is over currently. | 22 // mouse cursor is over currently. | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 32   int mouseInsideCount_; | 33   int mouseInsideCount_; | 
| 33   base::scoped_nsobject<NSTrackingArea> trackingAreaButton_; | 34   base::scoped_nsobject<NSTrackingArea> trackingAreaButton_; | 
| 34   base::scoped_nsobject<NSTrackingArea> trackingAreaDropdown_; | 35   base::scoped_nsobject<NSTrackingArea> trackingAreaDropdown_; | 
| 35 | 36 | 
| 36   base::FilePath downloadPath_;  // stored unelided | 37   base::FilePath downloadPath_;  // stored unelided | 
| 37   NSString* secondaryTitle_; | 38   NSString* secondaryTitle_; | 
| 38   NSFont* secondaryFont_; | 39   NSFont* secondaryFont_; | 
| 39   int percentDone_; | 40   int percentDone_; | 
| 40   base::scoped_nsobject<NSAnimation> completionAnimation_; | 41   base::scoped_nsobject<NSAnimation> completionAnimation_; | 
| 41 | 42 | 
| 42   // In degrees, for downloads with no known total size. | 43   base::TimeTicks progress_start_time_; | 
| 43   int indeterminateProgressAngle_; |  | 
| 44   base::scoped_nsobject<IndeterminateProgressTimer> indeterminateProgressTimer_; | 44   base::scoped_nsobject<IndeterminateProgressTimer> indeterminateProgressTimer_; | 
| 45 | 45 | 
| 46   BOOL isStatusTextVisible_; | 46   BOOL isStatusTextVisible_; | 
| 47   CGFloat titleY_; | 47   CGFloat titleY_; | 
| 48   CGFloat statusAlpha_; | 48   CGFloat statusAlpha_; | 
| 49   base::scoped_nsobject<NSAnimation> toggleStatusVisibilityAnimation_; | 49   base::scoped_nsobject<NSAnimation> toggleStatusVisibilityAnimation_; | 
| 50 | 50 | 
| 51   scoped_ptr<ui::ThemeProvider> themeProvider_; | 51   scoped_ptr<ui::ThemeProvider> themeProvider_; | 
| 52 } | 52 } | 
| 53 | 53 | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 65 - (BOOL)isStatusTextVisible; | 65 - (BOOL)isStatusTextVisible; | 
| 66 - (CGFloat)statusTextAlpha; | 66 - (CGFloat)statusTextAlpha; | 
| 67 - (CGFloat)titleY; | 67 - (CGFloat)titleY; | 
| 68 - (void)skipVisibilityAnimation; | 68 - (void)skipVisibilityAnimation; | 
| 69 - (void)showSecondaryTitle; | 69 - (void)showSecondaryTitle; | 
| 70 - (void)hideSecondaryTitle; | 70 - (void)hideSecondaryTitle; | 
| 71 - (IndeterminateProgressTimer*)indeterminateProgressTimer; | 71 - (IndeterminateProgressTimer*)indeterminateProgressTimer; | 
| 72 @end | 72 @end | 
| 73 | 73 | 
| 74 #endif  // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ | 74 #endif  // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_CELL_H_ | 
| OLD | NEW | 
|---|