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_DETAILS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/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 namespace autofill { | 14 namespace autofill { |
15 class AutofillDialogController; | 15 class AutofillDialogController; |
16 } | 16 } |
17 | 17 |
18 @class AutofillSectionContainer; | 18 @class AutofillSectionContainer; |
19 | 19 |
20 // UI controller for details for current payment instrument. | 20 // UI controller for details for current payment instrument. |
21 @interface AutofillDetailsContainer : NSViewController<AutofillLayout> { | 21 @interface AutofillDetailsContainer : NSViewController<AutofillLayout> { |
22 @private | 22 @private |
23 scoped_nsobject<NSMutableArray> details_; // The individual detail sections. | 23 base::scoped_nsobject<NSMutableArray> details_; // The individual detail |
| 24 // sections. |
24 autofill::AutofillDialogController* controller_; // Not owned. | 25 autofill::AutofillDialogController* controller_; // Not owned. |
25 } | 26 } |
26 | 27 |
27 // Designated initializer. | 28 // Designated initializer. |
28 - (id)initWithController:(autofill::AutofillDialogController*)controller; | 29 - (id)initWithController:(autofill::AutofillDialogController*)controller; |
29 | 30 |
30 // Retrieve the container for the specified |section|. | 31 // Retrieve the container for the specified |section|. |
31 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; | 32 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; |
32 | 33 |
33 // Called when the controller-maintained suggestions model has changed. | 34 // Called when the controller-maintained suggestions model has changed. |
34 - (void)modelChanged; | 35 - (void)modelChanged; |
35 | 36 |
36 @end | 37 @end |
37 | 38 |
38 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ | 39 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ |
OLD | NEW |