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

Unified Diff: chrome/browser/autofill/autofill_dialog_controller_mac.h

Issue 668171: AutoFill Mac preference for enabling Address Book "me" card usage.... (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_dialog_controller_mac.h
===================================================================
--- chrome/browser/autofill/autofill_dialog_controller_mac.h (revision 40742)
+++ chrome/browser/autofill/autofill_dialog_controller_mac.h (working copy)
@@ -14,6 +14,7 @@
@class AutoFillAddressViewController;
@class AutoFillCreditCardViewController;
+class Profile;
@class SectionSeparatorView;
@class WindowSizeAutosaver;
@@ -40,10 +41,15 @@
AutoFillDialogObserver* observer_; // Weak, not retained.
std::vector<AutoFillProfile> profiles_;
std::vector<CreditCard> creditCards_;
-
+ Profile* profile_; // Weak, not retained.
+ BOOL auxiliaryEnabled_;
scoped_nsobject<WindowSizeAutosaver> sizeSaver_;
}
+// Property representing state of Address Book "me" card usage. Checkbox is
+// bound to this in nib.
+@property (nonatomic) BOOL auxiliaryEnabled;
+
// Main interface for displaying an application modal autofill dialog on screen.
// This class method creates a new |AutoFillDialogController| and runs it as a
// modal dialog. The controller autoreleases itself when the dialog is closed.
@@ -53,9 +59,11 @@
// information.
// |profiles| and |creditCards| must have non-NULL entries (zero or more).
// These provide the initial data that is presented to the user.
+// |profile| must be non-NULL.
+ (void)showAutoFillDialogWithObserver:(AutoFillDialogObserver*)observer
autoFillProfiles:(const std::vector<AutoFillProfile*>&)profiles
- creditCards:(const std::vector<CreditCard*>&)creditCards;
+ creditCards:(const std::vector<CreditCard*>&)creditCards
+ profile:(Profile*)profile;
// IBActions for the dialog buttons.
- (IBAction)save:(id)sender;
@@ -87,11 +95,13 @@
+ (AutoFillDialogController*)controllerWithObserver:
(AutoFillDialogObserver*)observer
autoFillProfiles:(const std::vector<AutoFillProfile*>&)profiles
- creditCards:(const std::vector<CreditCard*>&)creditCards;
+ creditCards:(const std::vector<CreditCard*>&)creditCards
+ profile:(Profile*)profile;
- (id)initWithObserver:(AutoFillDialogObserver*)observer
autoFillProfiles:(const std::vector<AutoFillProfile*>&)profiles
- creditCards:(const std::vector<CreditCard*>&)creditCards;
+ creditCards:(const std::vector<CreditCard*>&)creditCards
+ profile:(Profile*)profile;
- (NSMutableArray*)addressFormViewControllers;
- (NSMutableArray*)creditCardFormViewControllers;
- (void)closeDialog;
« no previous file with comments | « chrome/browser/autofill/autofill_dialog.h ('k') | chrome/browser/autofill/autofill_dialog_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698