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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
OLDNEW
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 <memory>
9 #import "chrome/browser/ui/cocoa/gradient_button_cell.h"
10 9
11 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
12 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #import "chrome/browser/ui/cocoa/gradient_button_cell.h"
13 13
14 class DownloadItemModel; 14 class DownloadItemModel;
15 @class IndeterminateProgressTimer; 15 @class IndeterminateProgressTimer;
16 16
17 // 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
18 // used by the download items. 18 // used by the download items.
19 19
20 // 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
21 // 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
22 // mouse cursor is over currently. 22 // mouse cursor is over currently.
(...skipping 18 matching lines...) Expand all
41 base::scoped_nsobject<NSAnimation> completionAnimation_; 41 base::scoped_nsobject<NSAnimation> completionAnimation_;
42 42
43 base::TimeTicks progressStartTime_; 43 base::TimeTicks progressStartTime_;
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 std::unique_ptr<ui::ThemeProvider> themeProvider_;
52 } 52 }
53 53
54 @property(nonatomic, copy) NSString* secondaryTitle; 54 @property(nonatomic, copy) NSString* secondaryTitle;
55 @property(nonatomic, retain) NSFont* secondaryFont; 55 @property(nonatomic, retain) NSFont* secondaryFont;
56 56
57 - (void)setStateFromDownload:(DownloadItemModel*)downloadModel; 57 - (void)setStateFromDownload:(DownloadItemModel*)downloadModel;
58 58
59 // Returns if the mouse is over the button part of the cell. 59 // Returns if the mouse is over the button part of the cell.
60 - (BOOL)isMouseOverButtonPart; 60 - (BOOL)isMouseOverButtonPart;
61 61
62 @end 62 @end
63 63
64 @interface DownloadItemCell(TestingAPI) 64 @interface DownloadItemCell(TestingAPI)
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698