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.
5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_NEVER_SAVE_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_NEVER_SAVE_VIEW_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_content_view_controller.h"
13 class ManagePasswordsBubbleModel;
15 // Handles user interaction with the password never save confirmation bubble.
16 @protocol ManagePasswordsBubbleNeverSaveViewDelegate<
17 ManagePasswordsBubbleContentViewDelegate>
19 // The user chose not to never save passwords on this site.
20 - (void)neverSavePasswordCancelled;
24 // Manages the view that confirms that the user never wants to save passwords
26 @interface ManagePasswordsBubbleNeverSaveViewController
27 : ManagePasswordsBubbleContentViewController {
29 ManagePasswordsBubbleModel* model_; // weak
30 id<ManagePasswordsBubbleNeverSaveViewDelegate> delegate_; // weak
31 base::scoped_nsobject<NSButton> confirmButton_;
32 base::scoped_nsobject<NSButton> undoButton_;
34 - (id)initWithModel:(ManagePasswordsBubbleModel*)model
35 delegate:(id<ManagePasswordsBubbleNeverSaveViewDelegate>)delegate;
38 @interface ManagePasswordsBubbleNeverSaveViewController (Testing)
39 @property(readonly) NSButton* confirmButton;
40 @property(readonly) NSButton* undoButton;
43 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_NEVER_SAVE_VIEW_CONTROLLER_H_