| 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 #import "chrome/browser/ui/cocoa/passwords/password_prompt_bridge_interface.h" | 10 #import "chrome/browser/ui/cocoa/passwords/password_prompt_bridge_interface.h" |
| 11 | 11 |
| 12 @class AccountAvatarFetcherManager; | 12 @class AccountAvatarFetcherManager; |
| 13 class PasswordPromptBridgeInterface; | 13 class PasswordPromptBridgeInterface; |
| 14 | 14 |
| 15 // Manages a view that shows a list of credentials that can be used for | 15 // Manages a view that shows a list of credentials that can be used for |
| 16 // authentication to a site. | 16 // authentication to a site. |
| 17 @interface AccountChooserViewController | 17 @interface AccountChooserViewController |
| 18 : NSViewController<PasswordPromptViewInterface, NSTextViewDelegate> | 18 : NSViewController<PasswordPromptViewInterface, NSTextViewDelegate> |
| 19 @property(nonatomic) PasswordPromptBridgeInterface* bridge; | 19 @property(nonatomic) PasswordPromptBridgeInterface* bridge; |
| 20 // Initializes a new account chooser and populates it with the credentials | 20 // Initializes a new account chooser and populates it with the credentials |
| 21 // stored in |bridge->controller()|. | 21 // stored in |bridge->controller()|. |
| 22 - (instancetype)initWithBridge:(PasswordPromptBridgeInterface*)bridge; | 22 - (instancetype)initWithBridge:(PasswordPromptBridgeInterface*)bridge; |
| 23 |
| 24 - (NSButton*)defaultButton; |
| 23 @end | 25 @end |
| 24 | 26 |
| 25 @interface AccountChooserViewController(Testing) | 27 @interface AccountChooserViewController(Testing) |
| 26 - (instancetype)initWithBridge:(PasswordPromptBridgeInterface*)bridge | 28 - (instancetype)initWithBridge:(PasswordPromptBridgeInterface*)bridge |
| 27 avatarManager:(AccountAvatarFetcherManager*)avatarManager; | 29 avatarManager:(AccountAvatarFetcherManager*)avatarManager; |
| 28 @property(nonatomic, readonly) NSButton* cancelButton; | 30 @property(nonatomic, readonly) NSButton* cancelButton; |
| 31 @property(nonatomic, readonly) NSButton* signInButton; |
| 29 @property(nonatomic, readonly) NSArray* credentialButtons; | 32 @property(nonatomic, readonly) NSArray* credentialButtons; |
| 30 @property(nonatomic, readonly) NSTextView* titleView; | 33 @property(nonatomic, readonly) NSTextView* titleView; |
| 31 @end | 34 @end |
| 32 | 35 |
| 33 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_ | 36 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_ |
| OLD | NEW |