OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 AccountChooserBridge* bridge_; // Weak. | 52 AccountChooserBridge* bridge_; // Weak. |
53 NSButton* cancelButton_; // Weak. | 53 NSButton* cancelButton_; // Weak. |
54 NSTableView* credentialsView_; // Weak. | 54 NSTableView* credentialsView_; // Weak. |
55 NSTextView* titleView_; // Weak. | 55 NSTextView* titleView_; // Weak. |
56 base::scoped_nsobject<NSArray> credentialItems_; | 56 base::scoped_nsobject<NSArray> credentialItems_; |
57 base::scoped_nsobject<AccountAvatarFetcherManager> avatarManager_; | 57 base::scoped_nsobject<AccountAvatarFetcherManager> avatarManager_; |
58 } | 58 } |
59 | 59 |
60 // Initializes a new account chooser and populates it with the credentials | 60 // Initializes a new account chooser and populates it with the credentials |
61 // stored in |bridge->controller()|. | 61 // stored in |bridge->controller()|. |
62 - (id)initWithBridge:(AccountChooserBridge*)bridge; | 62 - (instancetype)initWithBridge:(AccountChooserBridge*)bridge; |
| 63 |
| 64 @property(nonatomic) AccountChooserBridge* bridge; |
63 @end | 65 @end |
64 | 66 |
65 @interface AccountChooserViewController(Testing) | 67 @interface AccountChooserViewController(Testing) |
66 - (id)initWithBridge:(AccountChooserBridge*)bridge | 68 - (instancetype)initWithBridge:(AccountChooserBridge*)bridge |
67 avatarManager:(AccountAvatarFetcherManager*)avatarManager; | 69 avatarManager:(AccountAvatarFetcherManager*)avatarManager; |
68 @property(nonatomic, readonly) NSButton* cancelButton; | 70 @property(nonatomic, readonly) NSButton* cancelButton; |
69 @property(nonatomic, readonly) NSTableView* credentialsView; | 71 @property(nonatomic, readonly) NSTableView* credentialsView; |
70 @property(nonatomic, readonly) NSTextView* titleView; | 72 @property(nonatomic, readonly) NSTextView* titleView; |
71 @end | 73 @end |
72 | 74 |
73 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_ | 75 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_ |
OLD | NEW |