Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Side by Side Diff: chrome/browser/autofill/autofill_credit_card_view_controller_mac.h

Issue 558066: Autofill dialog for the Mac. This is UI only at this point. The UI is not h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698