Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / cocoa / passwords / manage_passwords_bubble_never_save_view_controller.h
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_NEVER_SAVE_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_NEVER_SAVE_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 ManagePasswordsBubbleModel;
14
15 // Handles user interaction with the password never save confirmation bubble.
16 @protocol ManagePasswordsBubbleNeverSaveViewDelegate<
17     ManagePasswordsBubbleContentViewDelegate>
18
19 // The user chose not to never save passwords on this site.
20 - (void)neverSavePasswordCancelled;
21
22 @end
23
24 // Manages the view that confirms that the user never wants to save passwords
25 // on this site.
26 @interface ManagePasswordsBubbleNeverSaveViewController
27     : ManagePasswordsBubbleContentViewController {
28  @private
29   ManagePasswordsBubbleModel* model_;  // weak
30   id<ManagePasswordsBubbleNeverSaveViewDelegate> delegate_;  // weak
31   base::scoped_nsobject<NSButton> confirmButton_;
32   base::scoped_nsobject<NSButton> undoButton_;
33 }
34 - (id)initWithModel:(ManagePasswordsBubbleModel*)model
35            delegate:(id<ManagePasswordsBubbleNeverSaveViewDelegate>)delegate;
36 @end
37
38 @interface ManagePasswordsBubbleNeverSaveViewController (Testing)
39 @property(readonly) NSButton* confirmButton;
40 @property(readonly) NSButton* undoButton;
41 @end
42
43 #endif  // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_NEVER_SAVE_VIEW_CONTROLLER_H_