1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONFIRMATION_VIEW_CONTROLLER_H_
6#define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONFIRMATION_VIEW_CONTROLLER_H_
7
8#import <Cocoa/Cocoa.h>
9
10#include "base/mac/scoped_nsobject.h"
11#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_content_view_controller.h"
12
13@class HyperlinkTextView;
14class ManagePasswordsBubbleModel;
15
16// Manages the view that confirms that the generated password was saved.
17@interface ManagePasswordsBubbleConfirmationViewController
18    : ManagePasswordsBubbleContentViewController<NSTextViewDelegate> {
19 @private
20  ManagePasswordsBubbleModel* model_;  // weak
21  id<ManagePasswordsBubbleContentViewDelegate> delegate_;  // weak
22  base::scoped_nsobject<HyperlinkTextView> confirmationText_;
23  base::scoped_nsobject<NSButton> okButton_;
24}
25- (id)initWithModel:(ManagePasswordsBubbleModel*)model
26           delegate:(id<ManagePasswordsBubbleContentViewDelegate>)delegate;
27@end
28
29@interface ManagePasswordsBubbleConfirmationViewController (Testing)
30@property(readonly) HyperlinkTextView* confirmationText;
31@property(readonly) NSButton* okButton;
32@end
33
34#endif  // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_CONFIRMATION_VIEW_CONTROLLER_H_
35