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

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

Issue 7272024: Fix regression: Download status doesn't appear anymore in the download-shelf (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed Created 9 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/download/download_item_cell.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/download/download_item_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698