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_CREDIT_CARD_VIEW_CONTROLLER_MAC_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CREDIT_CARD_VIEW_CONTROLLER_MAC_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 #import "chrome/browser/cocoa/disclosure_view_controller.h" |
| 10 |
| 11 @class AutoFillCreditCardModel; |
| 12 class CreditCard; |
| 13 |
| 14 // A class that coordinates the |creditCardModel| and the associated view |
| 15 // held in AutoFillCreditCardFormView.xib. |
| 16 // |initWithCreditCard:| is the designated initializer. It takes |creditCard| |
| 17 // and transcribes it to |creditCardModel| to which the view is bound. |
| 18 @interface AutoFillCreditCardViewController : DisclosureViewController { |
| 19 @private |
| 20 // TODO(dhollowa): temporary to disable until implementend. |
| 21 // See http://crbug.com/33029. |
| 22 IBOutlet NSTextField* billingAddressLabel_; |
| 23 IBOutlet NSPopUpButton* billingAddressPopup_; |
| 24 IBOutlet NSTextField* shippingAddressLabel_; |
| 25 IBOutlet NSPopUpButton* shippingAddressPopup_; |
| 26 |
| 27 // The primary model for this controller. The model is instantiated |
| 28 // from within |initWithCreditCard:|. We do not hold it as a scoped_nsobject |
| 29 // because it is exposed as a KVO compliant property. |
| 30 AutoFillCreditCardModel* creditCardModel_; |
| 31 } |
| 32 |
| 33 @property (nonatomic, retain) AutoFillCreditCardModel* creditCardModel; |
| 34 |
| 35 // Designated initializer. Takes a copy of the data in |creditCard|, |
| 36 // it is not held as a reference. |
| 37 - (id)initWithCreditCard:(const CreditCard&)creditCard; |
| 38 |
| 39 @end |
| 40 |
| 41 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CREDIT_CARD_VIEW_CONTROLLER_MAC_ |
OLD | NEW |