OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_VIEW_CONTROLLER_MAC_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_VIEW_CONTROLLER_MAC_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 #import "chrome/browser/cocoa/disclosure_view_controller.h" |
| 10 |
| 11 @class AutoFillAddressModel; |
| 12 class AutoFillProfile; |
| 13 |
| 14 // A class that coordinates the |addressModel| and the associated view |
| 15 // held in AutoFillAddressFormView.xib. |
| 16 // |initWithProfile:| is the designated initializer. It takes |profile| |
| 17 // and transcribes it to |addressModel| to which the view is bound. |
| 18 @interface AutoFillAddressViewController : DisclosureViewController { |
| 19 @private |
| 20 // The primary model for this controller. The model is instantiated |
| 21 // from within |initWithProfile|. We do not hold it as a scoped_nsobject |
| 22 // because it is exposed as a KVO compliant property. |
| 23 AutoFillAddressModel* addressModel_; // strong reference |
| 24 } |
| 25 |
| 26 @property (nonatomic, retain) AutoFillAddressModel* addressModel; |
| 27 |
| 28 // Designated initializer. Takes a copy of the data in |profile|, |
| 29 // it is not held as a reference. |
| 30 - (id)initWithProfile:(const AutoFillProfile&)profile; |
| 31 |
| 32 // Copy data from internal model to |profile|. |
| 33 - (void)copyModelToProfile:(AutoFillProfile*)profile; |
| 34 |
| 35 @end |
| 36 |
| 37 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_VIEW_CONTROLLER_MAC_ |
OLD | NEW |