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_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" | 10 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" |
11 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" | 11 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" |
12 | 12 |
13 namespace autofill { | 13 namespace autofill { |
14 class AutofillPopupController; | 14 class AutofillPopupController; |
15 } // namespace autofill | 15 } // namespace autofill |
16 | 16 |
| 17 @class HyperlinkTextView; |
| 18 |
17 // Draws the native password generation popup view on Mac. | 19 // Draws the native password generation popup view on Mac. |
18 @interface PasswordGenerationPopupViewCocoa : AutofillPopupBaseViewCocoa { | 20 @interface PasswordGenerationPopupViewCocoa |
| 21 : AutofillPopupBaseViewCocoa <NSTextViewDelegate> { |
19 @private | 22 @private |
20 // The cross-platform controller for this view. | 23 // The cross-platform controller for this view. |
21 __weak autofill::PasswordGenerationPopupController* controller_; | 24 __weak autofill::PasswordGenerationPopupController* controller_; |
22 | 25 |
23 __weak NSTextField* passwordField_; | 26 __weak NSTextField* passwordField_; |
24 __weak NSTextField* passwordSubtextField_; | 27 __weak NSTextField* passwordSubtextField_; |
25 __weak NSTextField* helpTextField_; | 28 __weak HyperlinkTextView* helpTextView_; |
26 } | 29 } |
27 | 30 |
28 // Designated initializer. | 31 // Designated initializer. |
29 - (id)initWithController: | 32 - (id)initWithController: |
30 (autofill::PasswordGenerationPopupController*)controller | 33 (autofill::PasswordGenerationPopupController*)controller |
31 frame:(NSRect)frame; | 34 frame:(NSRect)frame; |
32 | 35 |
33 // Informs the view that its controller has been (or will imminently be) | 36 // Informs the view that its controller has been (or will imminently be) |
34 // destroyed. | 37 // destroyed. |
35 - (void)controllerDestroyed; | 38 - (void)controllerDestroyed; |
36 | 39 |
37 @end | 40 @end |
38 | 41 |
39 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA
_H_ | 42 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA
_H_ |
OLD | NEW |