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 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_ | 4 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_COCOA_H_ |
5 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_ | 5 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_COCOA_H_ |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #import "base/mac/scoped_nsobject.h" | 9 #import "base/mac/scoped_nsobject.h" |
10 | 10 |
11 class ManagePasswordsBubbleModel; | 11 class ManagePasswordsBubbleModel; |
12 namespace autofill { | 12 namespace autofill { |
13 struct PasswordForm; | 13 struct PasswordForm; |
14 } // namespace autofill | 14 } // namespace autofill |
15 | 15 |
16 // Shows a combobox for choosing username and obscured password in a single row. | 16 // Shows a combobox for choosing username and obscured password in a single row. |
17 @interface CredentialsSelectionView : NSView { | 17 @interface CredentialsSelectionView : NSView { |
18 @private | 18 @private |
19 ManagePasswordsBubbleModel* model_; // weak | 19 ManagePasswordsBubbleModel* model_; // weak |
20 base::scoped_nsobject<NSPopUpButton> usernamePopUpButton_; | 20 base::scoped_nsobject<NSPopUpButton> usernamePopUpButton_; |
21 base::scoped_nsobject<NSSecureTextField> passwordField_; | 21 base::scoped_nsobject<NSSecureTextField> passwordField_; |
22 } | 22 } |
23 - (id)initWithModel:(ManagePasswordsBubbleModel*)model; | 23 - (id)initWithModel:(ManagePasswordsBubbleModel*)model; |
24 - (const autofill::PasswordForm*)getSelectedCredentials; | 24 - (const autofill::PasswordForm*)getSelectedCredentials; |
25 @end | 25 @end |
26 | 26 |
27 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_ | 27 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_CREDENTIALS_SELECTION_VIEW_COCOA_H_ |
OLD | NEW |