OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_MANAGE_PASSWORDS_BUBBLE_PENDING_VIEW_C
ONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_PASSWORD_VIEW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_PENDING_VIEW_C
ONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_PASSWORD_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
11 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_content_view_
controller.h" | 11 #import "chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controlle
r.h" |
12 | 12 |
13 class ManagePasswordsBubbleModel; | 13 class ManagePasswordsBubbleModel; |
14 @class PasswordsListViewController; | 14 @class PasswordsListViewController; |
15 | 15 |
16 // Manages the view that offers to save the user's password. | 16 // Manages the view that offers to save the user's password. |
17 @interface ManagePasswordsBubblePendingViewController | 17 @interface ManagePasswordsBubblePendingViewController |
18 : ManagePasswordsBubbleContentViewController<NSTextViewDelegate> { | 18 : ManagePasswordsBubbleContentViewController<NSTextViewDelegate> { |
19 @private | 19 @private |
20 ManagePasswordsBubbleModel* model_; // weak | 20 ManagePasswordsBubbleModel* model_; // weak |
21 base::scoped_nsobject<NSButton> saveButton_; | 21 base::scoped_nsobject<NSButton> saveButton_; |
22 base::scoped_nsobject<NSButton> neverButton_; | 22 base::scoped_nsobject<NSButton> neverButton_; |
23 base::scoped_nsobject<NSButton> closeButton_; | 23 base::scoped_nsobject<NSButton> closeButton_; |
24 base::scoped_nsobject<PasswordsListViewController> passwordItem_; | 24 base::scoped_nsobject<PasswordsListViewController> passwordItem_; |
25 } | 25 } |
26 - (id)initWithModel:(ManagePasswordsBubbleModel*)model | 26 - (id)initWithModel:(ManagePasswordsBubbleModel*)model |
27 delegate:(id<ManagePasswordsBubbleContentViewDelegate>)delegate; | 27 delegate:(id<ManagePasswordsBubbleContentViewDelegate>)delegate; |
28 @end | 28 @end |
29 | 29 |
30 @interface ManagePasswordsBubblePendingViewController (Testing) | 30 @interface ManagePasswordsBubblePendingViewController (Testing) |
31 @property(readonly) NSButton* saveButton; | 31 @property(readonly) NSButton* saveButton; |
32 @property(readonly) NSButton* neverButton; | 32 @property(readonly) NSButton* neverButton; |
33 @property(readonly) NSButton* closeButton; | 33 @property(readonly) NSButton* closeButton; |
34 @end | 34 @end |
35 | 35 |
36 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_PENDING_VIE
W_CONTROLLER_H_ | 36 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PENDING_PASSWORD_VIEW_CONTROLLER_H_ |
OLD | NEW |