OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 // The primary model for this controller. The model is instantiated | 32 // The primary model for this controller. The model is instantiated |
33 // from within |initWithProfile:|. We do not hold it as a scoped_nsobject | 33 // from within |initWithProfile:|. We do not hold it as a scoped_nsobject |
34 // because it is exposed as a KVO compliant property. | 34 // because it is exposed as a KVO compliant property. |
35 // Strong reference. | 35 // Strong reference. |
36 AutoFillAddressModel* addressModel_; | 36 AutoFillAddressModel* addressModel_; |
37 | 37 |
38 // Either "Add" or "Edit" mode of sheet. | 38 // Either "Add" or "Edit" mode of sheet. |
39 AutoFillAddressMode mode_; | 39 AutoFillAddressMode mode_; |
40 } | 40 } |
41 | 41 |
42 @property (nonatomic, retain) AutoFillAddressModel* addressModel; | 42 @property(nonatomic, retain) AutoFillAddressModel* addressModel; |
43 | 43 |
44 // IBActions for save and cancel buttons. Both invoke |endSheet:|. | 44 // IBActions for save and cancel buttons. Both invoke |endSheet:|. |
45 - (IBAction)save:(id)sender; | 45 - (IBAction)save:(id)sender; |
46 - (IBAction)cancel:(id)sender; | 46 - (IBAction)cancel:(id)sender; |
47 | 47 |
48 // Designated initializer. Takes a copy of the data in |profile|, | 48 // Designated initializer. Takes a copy of the data in |profile|, |
49 // it is not held as a reference. | 49 // it is not held as a reference. |
50 - (id)initWithProfile:(const AutoFillProfile&)profile | 50 - (id)initWithProfile:(const AutoFillProfile&)profile |
51 mode:(AutoFillAddressMode)mode; | 51 mode:(AutoFillAddressMode)mode; |
52 | 52 |
53 // Copy data from internal model to |profile|. | 53 // Copy data from internal model to |profile|. |
54 - (void)copyModelToProfile:(AutoFillProfile*)profile; | 54 - (void)copyModelToProfile:(AutoFillProfile*)profile; |
55 | 55 |
56 @end | 56 @end |
57 | 57 |
58 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ | 58 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ |
OLD | NEW |