OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_AUTOFILL_MAIN_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_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 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" | 12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" |
13 | 13 |
14 @class AutofillDetailsContainer; | 14 @class AutofillDetailsContainer; |
15 @class AutofillDialogWindowController; | 15 @class AutofillDialogWindowController; |
16 @class AutofillNotificationContainer; | 16 @class AutofillNotificationContainer; |
17 @class AutofillSectionContainer; | 17 @class AutofillSectionContainer; |
| 18 @class AutofillTooltipController; |
18 @class GTMWidthBasedTweaker; | 19 @class GTMWidthBasedTweaker; |
19 @class HyperlinkTextView; | 20 @class HyperlinkTextView; |
20 | 21 |
21 namespace autofill { | 22 namespace autofill { |
22 class AutofillDialogViewDelegate; | 23 class AutofillDialogViewDelegate; |
23 } | 24 } |
24 | 25 |
25 // NSViewController for the main portion of the autofill dialog. Contains | 26 // NSViewController for the main portion of the autofill dialog. Contains |
26 // account chooser, details for current payment instruments, OK/Cancel. | 27 // account chooser, details for current payment instruments, OK/Cancel. |
27 // Might dynamically add and remove other elements. | 28 // Might dynamically add and remove other elements. |
28 @interface AutofillMainContainer : NSViewController<AutofillLayout, | 29 @interface AutofillMainContainer : NSViewController<AutofillLayout, |
29 NSTextViewDelegate> { | 30 NSTextViewDelegate> { |
30 @private | 31 @private |
31 base::scoped_nsobject<GTMWidthBasedTweaker> buttonContainer_; | 32 base::scoped_nsobject<GTMWidthBasedTweaker> buttonContainer_; |
32 base::scoped_nsobject<NSImageView> buttonStripImage_; | 33 base::scoped_nsobject<NSImageView> buttonStripImage_; |
33 base::scoped_nsobject<NSButton> saveInChromeCheckbox_; | 34 base::scoped_nsobject<NSButton> saveInChromeCheckbox_; |
34 base::scoped_nsobject<NSImageView> saveInChromeTooltip_; | 35 base::scoped_nsobject<AutofillTooltipController> saveInChromeTooltip_; |
35 base::scoped_nsobject<AutofillDetailsContainer> detailsContainer_; | 36 base::scoped_nsobject<AutofillDetailsContainer> detailsContainer_; |
36 base::scoped_nsobject<HyperlinkTextView> legalDocumentsView_; | 37 base::scoped_nsobject<HyperlinkTextView> legalDocumentsView_; |
37 base::scoped_nsobject<AutofillNotificationContainer> notificationContainer_; | 38 base::scoped_nsobject<AutofillNotificationContainer> notificationContainer_; |
38 AutofillDialogWindowController* target_; | 39 AutofillDialogWindowController* target_; |
39 | 40 |
40 // Weak. Owns the dialog. | 41 // Weak. Owns the dialog. |
41 autofill::AutofillDialogViewDelegate* delegate_; | 42 autofill::AutofillDialogViewDelegate* delegate_; |
42 | 43 |
43 // Preferred size for legal documents. | 44 // Preferred size for legal documents. |
44 NSSize legalDocumentsSize_; | 45 NSSize legalDocumentsSize_; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // AutofillMainContainer helper functions, for testing purposes only. | 89 // AutofillMainContainer helper functions, for testing purposes only. |
89 @interface AutofillMainContainer (Testing) | 90 @interface AutofillMainContainer (Testing) |
90 | 91 |
91 @property(readonly, nonatomic) NSButton* saveInChromeCheckboxForTesting; | 92 @property(readonly, nonatomic) NSButton* saveInChromeCheckboxForTesting; |
92 @property(readonly, nonatomic) NSImageView* buttonStripImageForTesting; | 93 @property(readonly, nonatomic) NSImageView* buttonStripImageForTesting; |
93 @property(readonly, nonatomic) NSImageView* saveInChromeTooltipForTesting; | 94 @property(readonly, nonatomic) NSImageView* saveInChromeTooltipForTesting; |
94 | 95 |
95 @end | 96 @end |
96 | 97 |
97 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ | 98 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ |
OLD | NEW |