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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_install_view_controller.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_EXTENSIONS_EXTENSION_INSTALL_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_VIEW_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // external). 49 // external).
50 IBOutlet NSBox* warningsSeparator_; // Only when there are permissions. 50 IBOutlet NSBox* warningsSeparator_; // Only when there are permissions.
51 IBOutlet NSView* ratingStars_; 51 IBOutlet NSView* ratingStars_;
52 IBOutlet NSTextField* ratingCountField_; 52 IBOutlet NSTextField* ratingCountField_;
53 IBOutlet NSTextField* userCountField_; 53 IBOutlet NSTextField* userCountField_;
54 IBOutlet NSButton* storeLinkButton_; 54 IBOutlet NSButton* storeLinkButton_;
55 55
56 Profile* profile_; // weak 56 Profile* profile_; // weak
57 content::PageNavigator* navigator_; // weak 57 content::PageNavigator* navigator_; // weak
58 ExtensionInstallViewDelegate* delegate_; // weak 58 ExtensionInstallViewDelegate* delegate_; // weak
59 scoped_ptr<ExtensionInstallPrompt::Prompt> prompt_; 59 std::unique_ptr<ExtensionInstallPrompt::Prompt> prompt_;
60 60
61 base::scoped_nsobject<NSArray> warnings_; 61 base::scoped_nsobject<NSArray> warnings_;
62 BOOL isComputingRowHeight_; 62 BOOL isComputingRowHeight_;
63 } 63 }
64 64
65 // For unit test use only. 65 // For unit test use only.
66 @property(nonatomic, readonly) NSImageView* iconView; 66 @property(nonatomic, readonly) NSImageView* iconView;
67 @property(nonatomic, readonly) NSTextField* titleField; 67 @property(nonatomic, readonly) NSTextField* titleField;
68 @property(nonatomic, readonly) NSTextField* itemsField; 68 @property(nonatomic, readonly) NSTextField* itemsField;
69 @property(nonatomic, readonly) NSButton* cancelButton; 69 @property(nonatomic, readonly) NSButton* cancelButton;
70 @property(nonatomic, readonly) NSButton* okButton; 70 @property(nonatomic, readonly) NSButton* okButton;
71 @property(nonatomic, readonly) NSOutlineView* outlineView; 71 @property(nonatomic, readonly) NSOutlineView* outlineView;
72 @property(nonatomic, readonly) NSBox* warningsSeparator; 72 @property(nonatomic, readonly) NSBox* warningsSeparator;
73 @property(nonatomic, readonly) NSView* ratingStars; 73 @property(nonatomic, readonly) NSView* ratingStars;
74 @property(nonatomic, readonly) NSTextField* ratingCountField; 74 @property(nonatomic, readonly) NSTextField* ratingCountField;
75 @property(nonatomic, readonly) NSTextField* userCountField; 75 @property(nonatomic, readonly) NSTextField* userCountField;
76 @property(nonatomic, readonly) NSButton* storeLinkButton; 76 @property(nonatomic, readonly) NSButton* storeLinkButton;
77 77
78 - (id)initWithProfile:(Profile*)profile 78 - (id)initWithProfile:(Profile*)profile
79 navigator:(content::PageNavigator*)navigator 79 navigator:(content::PageNavigator*)navigator
80 delegate:(ExtensionInstallViewDelegate*)delegate 80 delegate:(ExtensionInstallViewDelegate*)delegate
81 prompt:(scoped_ptr<ExtensionInstallPrompt::Prompt>)prompt; 81 prompt:(std::unique_ptr<ExtensionInstallPrompt::Prompt>)prompt;
82 - (IBAction)storeLinkClicked:(id)sender; // Callback for "View details" link. 82 - (IBAction)storeLinkClicked:(id)sender; // Callback for "View details" link.
83 - (IBAction)cancel:(id)sender; 83 - (IBAction)cancel:(id)sender;
84 - (IBAction)ok:(id)sender; 84 - (IBAction)ok:(id)sender;
85 85
86 @end 86 @end
87 87
88 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_VIEW_CONTROLLER_ H_ 88 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_VIEW_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698