| 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_DIALOG_CONTROLLER_MAC_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Reference to input parameter. | 51 // Reference to input parameter. |
| 52 // Weak, not retained. | 52 // Weak, not retained. |
| 53 CreditCard* importedCreditCard_; | 53 CreditCard* importedCreditCard_; |
| 54 | 54 |
| 55 // Working list of input profiles. | 55 // Working list of input profiles. |
| 56 std::vector<AutoFillProfile> profiles_; | 56 std::vector<AutoFillProfile> profiles_; |
| 57 | 57 |
| 58 // Working list of input credit cards. | 58 // Working list of input credit cards. |
| 59 std::vector<CreditCard> creditCards_; | 59 std::vector<CreditCard> creditCards_; |
| 60 | 60 |
| 61 // State of checkbox for enabling AutoFill in general. |
| 62 BOOL autoFillEnabled_; |
| 63 |
| 61 // State of checkbox for enabling Mac Address Book integration. | 64 // State of checkbox for enabling Mac Address Book integration. |
| 62 BOOL auxiliaryEnabled_; | 65 BOOL auxiliaryEnabled_; |
| 63 | 66 |
| 64 // State for |itemIsSelected| property used in bindings for "Edit..." and | 67 // State for |itemIsSelected| property used in bindings for "Edit..." and |
| 65 // "Remove" buttons. | 68 // "Remove" buttons. |
| 66 BOOL itemIsSelected_; | 69 BOOL itemIsSelected_; |
| 67 | 70 |
| 68 // Utility object to save and restore dialog position. | 71 // Utility object to save and restore dialog position. |
| 69 scoped_nsobject<WindowSizeAutosaver> sizeSaver_; | 72 scoped_nsobject<WindowSizeAutosaver> sizeSaver_; |
| 70 | 73 |
| 71 // Transient reference to address "Add" / "Edit" sheet for address | 74 // Transient reference to address "Add" / "Edit" sheet for address |
| 72 // information. | 75 // information. |
| 73 scoped_nsobject<AutoFillAddressSheetController> addressSheetController; | 76 scoped_nsobject<AutoFillAddressSheetController> addressSheetController; |
| 74 | 77 |
| 75 // Transient reference to address "Add" / "Edit" sheet for credit card | 78 // Transient reference to address "Add" / "Edit" sheet for credit card |
| 76 // information. | 79 // information. |
| 77 scoped_nsobject<AutoFillCreditCardSheetController> creditCardSheetController; | 80 scoped_nsobject<AutoFillCreditCardSheetController> creditCardSheetController; |
| 78 | 81 |
| 79 // Manages PersonalDataManager loading. | 82 // Manages PersonalDataManager loading. |
| 80 scoped_ptr<AutoFillDialogControllerInternal::PersonalDataManagerObserver> | 83 scoped_ptr<AutoFillDialogControllerInternal::PersonalDataManagerObserver> |
| 81 personalDataManagerObserver_; | 84 personalDataManagerObserver_; |
| 82 } | 85 } |
| 83 | 86 |
| 87 // Property representing state of the AutoFill enabled preference. Checkbox is |
| 88 // bound to this in nib. Also, enabled state of other controls are also bound |
| 89 // to this property. |
| 90 @property (nonatomic) BOOL autoFillEnabled; |
| 91 |
| 84 // Property representing state of Address Book "me" card usage. Checkbox is | 92 // Property representing state of Address Book "me" card usage. Checkbox is |
| 85 // bound to this in nib. | 93 // bound to this in nib. |
| 86 @property (nonatomic) BOOL auxiliaryEnabled; | 94 @property (nonatomic) BOOL auxiliaryEnabled; |
| 87 | 95 |
| 88 // Property representing selection state in |tableView_|. Enabled state of | 96 // Property representing selection state in |tableView_|. Enabled state of |
| 89 // edit and delete buttons are bound to this property. | 97 // edit and delete buttons are bound to this property. |
| 90 @property (nonatomic) BOOL itemIsSelected; | 98 @property (nonatomic) BOOL itemIsSelected; |
| 91 | 99 |
| 92 // Main interface for displaying an application modal AutoFill dialog on screen. | 100 // Main interface for displaying an application modal AutoFill dialog on screen. |
| 93 // This class method creates a new |AutoFillDialogController| and runs it as a | 101 // This class method creates a new |AutoFillDialogController| and runs it as a |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 importedProfile:(AutoFillProfile*)importedProfile | 164 importedProfile:(AutoFillProfile*)importedProfile |
| 157 importedCreditCard:(CreditCard*)importedCreditCard; | 165 importedCreditCard:(CreditCard*)importedCreditCard; |
| 158 - (void)closeDialog; | 166 - (void)closeDialog; |
| 159 - (AutoFillAddressSheetController*)addressSheetController; | 167 - (AutoFillAddressSheetController*)addressSheetController; |
| 160 - (AutoFillCreditCardSheetController*)creditCardSheetController; | 168 - (AutoFillCreditCardSheetController*)creditCardSheetController; |
| 161 - (void)selectAddressAtIndex:(size_t)i; | 169 - (void)selectAddressAtIndex:(size_t)i; |
| 162 - (void)selectCreditCardAtIndex:(size_t)i; | 170 - (void)selectCreditCardAtIndex:(size_t)i; |
| 163 @end | 171 @end |
| 164 | 172 |
| 165 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ | 173 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ |
| OLD | NEW |