| Index: chrome/browser/ui/cocoa/passwords/update_pending_password_view_controller.h
|
| diff --git a/chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller.h b/chrome/browser/ui/cocoa/passwords/update_pending_password_view_controller.h
|
| similarity index 50%
|
| copy from chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller.h
|
| copy to chrome/browser/ui/cocoa/passwords/update_pending_password_view_controller.h
|
| index a100858ce4dba5c13a07f75d4e80fd3effda7c7c..a1f46025a2bbe219be4caf37150742355cbe5f0e 100644
|
| --- a/chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller.h
|
| +++ b/chrome/browser/ui/cocoa/passwords/update_pending_password_view_controller.h
|
| @@ -2,32 +2,35 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_SAVE_PASSWORD_VIEW_CONTROLLER_H_
|
| -#define CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_SAVE_PASSWORD_VIEW_CONTROLLER_H_
|
| +#ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_UPDATE_PENDING_PASSWORD_VIEW_CONTROLLER_H_
|
| +#define CHROME_BROWSER_UI_COCOA_PASSWORDS_UPDATE_PENDING_PASSWORD_VIEW_CONTROLLER_H_
|
|
|
| #import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h"
|
|
|
| class ManagePasswordsBubbleModel;
|
| +@class CredentialsSelectionView;
|
| @class PasswordsListViewController;
|
|
|
| // Manages the view that offers to save the user's password.
|
| -@interface SavePendingPasswordViewController
|
| +@interface UpdatePendingPasswordViewController
|
| : PendingPasswordViewController<NSTextViewDelegate> {
|
| @private
|
| - base::scoped_nsobject<NSButton> saveButton_;
|
| - base::scoped_nsobject<NSButton> neverButton_;
|
| + base::scoped_nsobject<NSButton> updateButton_;
|
| + base::scoped_nsobject<NSButton> nopeButton_;
|
| base::scoped_nsobject<PasswordsListViewController> passwordItem_;
|
| + base::scoped_nsobject<CredentialsSelectionView>
|
| + passwordWithUsernameSelectionItem_;
|
| }
|
| -- (SavePendingPasswordViewController*)
|
| +- (UpdatePendingPasswordViewController*)
|
| initWithModel:(ManagePasswordsBubbleModel*)model
|
| delegate:(id<ManagePasswordsBubbleContentViewDelegate>)delegate;
|
| - (NSView*)createPasswordView;
|
| - (NSArray*)createButtonsAndAddThemToView:(NSView*)view;
|
| @end
|
|
|
| -@interface SavePendingPasswordViewController (Testing)
|
| -@property(readonly) NSButton* saveButton;
|
| -@property(readonly) NSButton* neverButton;
|
| +@interface UpdatePendingPasswordViewController (Testing)
|
| +@property(readonly) NSButton* updateButton;
|
| +@property(readonly) NSButton* noButton;
|
| @end
|
|
|
| -#endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_SAVE_PASSWORD_VIEW_CONTROLLER_H_
|
| +#endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_UPDATE_PENDING_PASSWORD_VIEW_CONTROLLER_H_
|
|
|