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_SAVE_PENDING_PASSWORD_VIEW_CONTROLLER_
H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_SAVE_PENDING_PASSWORD_VIEW_CONTROLLER_
H_ |
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_SAVE_PENDING_PASSWORD_VIEW_CONTROLLER_
H_ | 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_SAVE_PENDING_PASSWORD_VIEW_CONTROLLER_
H_ |
7 | 7 |
8 #import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h" | 8 #import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h" |
9 | 9 |
10 class ManagePasswordsBubbleModel; | |
11 @class PasswordsListViewController; | 10 @class PasswordsListViewController; |
12 | 11 |
13 // Manages the view that offers to save the user's password. | 12 // Manages the view that offers to save the user's password. |
14 @interface SavePendingPasswordViewController | 13 @interface SavePendingPasswordViewController |
15 : PendingPasswordViewController<NSTextViewDelegate> { | 14 : PendingPasswordViewController<NSTextViewDelegate> { |
16 @private | 15 @private |
17 base::scoped_nsobject<NSButton> saveButton_; | 16 base::scoped_nsobject<NSButton> saveButton_; |
18 base::scoped_nsobject<NSButton> neverButton_; | 17 base::scoped_nsobject<NSButton> neverButton_; |
19 base::scoped_nsobject<PasswordsListViewController> passwordItem_; | 18 base::scoped_nsobject<PasswordsListViewController> passwordItem_; |
20 } | 19 } |
21 | 20 |
22 - (NSView*)createPasswordView; | 21 - (NSView*)createPasswordView; |
23 - (NSArray*)createButtonsAndAddThemToView:(NSView*)view; | 22 - (NSArray*)createButtonsAndAddThemToView:(NSView*)view; |
24 @end | 23 @end |
25 | 24 |
26 @interface SavePendingPasswordViewController (Testing) | 25 @interface SavePendingPasswordViewController (Testing) |
27 @property(readonly) NSButton* saveButton; | 26 @property(readonly) NSButton* saveButton; |
28 @property(readonly) NSButton* neverButton; | 27 @property(readonly) NSButton* neverButton; |
29 @end | 28 @end |
30 | 29 |
31 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_SAVE_PENDING_PASSWORD_VIEW_CONTROLL
ER_H_ | 30 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_SAVE_PENDING_PASSWORD_VIEW_CONTROLL
ER_H_ |
OLD | NEW |