| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 personalDataManagerObserver_; | 92 personalDataManagerObserver_; |
| 93 | 93 |
| 94 // Watches for changes to the AutoFill enabled preference. | 94 // Watches for changes to the AutoFill enabled preference. |
| 95 scoped_ptr<AutoFillDialogControllerInternal::PreferenceObserver> | 95 scoped_ptr<AutoFillDialogControllerInternal::PreferenceObserver> |
| 96 preferenceObserver_; | 96 preferenceObserver_; |
| 97 } | 97 } |
| 98 | 98 |
| 99 // Property representing state of the AutoFill enabled preference. Checkbox is | 99 // Property representing state of the AutoFill enabled preference. Checkbox is |
| 100 // bound to this in nib. Also, enabled state of other controls are also bound | 100 // bound to this in nib. Also, enabled state of other controls are also bound |
| 101 // to this property. | 101 // to this property. |
| 102 @property (nonatomic) BOOL autoFillEnabled; | 102 @property(nonatomic) BOOL autoFillEnabled; |
| 103 | 103 |
| 104 // Property indicating whether AutoFill is under control of configuration | 104 // Property indicating whether AutoFill is under control of configuration |
| 105 // management. The enabled state of the AutoFill enabled checkbox is bound to | 105 // management. The enabled state of the AutoFill enabled checkbox is bound to |
| 106 // this property. | 106 // this property. |
| 107 @property (nonatomic) BOOL autoFillManaged; | 107 @property(nonatomic) BOOL autoFillManaged; |
| 108 | 108 |
| 109 // Property that is true iff AutoFill is managed and disabled. The save button's | 109 // Property that is true iff AutoFill is managed and disabled. The save button's |
| 110 // enabled state is bound to this property. | 110 // enabled state is bound to this property. |
| 111 @property (nonatomic) BOOL autoFillManagedAndDisabled; | 111 @property(nonatomic) BOOL autoFillManagedAndDisabled; |
| 112 | 112 |
| 113 // Property representing state of Address Book "me" card usage. Checkbox is | 113 // Property representing state of Address Book "me" card usage. Checkbox is |
| 114 // bound to this in nib. | 114 // bound to this in nib. |
| 115 @property (nonatomic) BOOL auxiliaryEnabled; | 115 @property(nonatomic) BOOL auxiliaryEnabled; |
| 116 | 116 |
| 117 // Property representing selection state in |tableView_|. Enabled state of | 117 // Property representing selection state in |tableView_|. Enabled state of |
| 118 // edit and delete buttons are bound to this property. | 118 // edit and delete buttons are bound to this property. |
| 119 @property (nonatomic) BOOL itemIsSelected; | 119 @property(nonatomic) BOOL itemIsSelected; |
| 120 | 120 |
| 121 // Property representing multiple selection state in |tableView_|. Enabled | 121 // Property representing multiple selection state in |tableView_|. Enabled |
| 122 // state of edit button is bound to this property. | 122 // state of edit button is bound to this property. |
| 123 @property (nonatomic) BOOL multipleSelected; | 123 @property(nonatomic) BOOL multipleSelected; |
| 124 | 124 |
| 125 // Main interface for displaying a modeless AutoFill dialog on screen. | 125 // Main interface for displaying a modeless AutoFill dialog on screen. |
| 126 // This class method creates a new |AutoFillDialogController| and runs it as a | 126 // This class method creates a new |AutoFillDialogController| and runs it as a |
| 127 // modeless dialog. The controller autoreleases itself when the dialog is | 127 // modeless dialog. The controller autoreleases itself when the dialog is |
| 128 // closed. |observer| can be NULL, but if it is, then no notification is sent | 128 // closed. |observer| can be NULL, but if it is, then no notification is sent |
| 129 // during modifications to data. If |observer| is non-NULL then its | 129 // during modifications to data. If |observer| is non-NULL then its |
| 130 // |OnAutoFillDialogApply| method is invoked with the new address and credit | 130 // |OnAutoFillDialogApply| method is invoked with the new address and credit |
| 131 // card information. | 131 // card information. |
| 132 // |profile| must be non-NULL. | 132 // |profile| must be non-NULL. |
| 133 // AutoFill profile and credit card data is initialized from the | 133 // AutoFill profile and credit card data is initialized from the |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 - (void)selectAddressAtIndex:(size_t)i; | 180 - (void)selectAddressAtIndex:(size_t)i; |
| 181 - (void)selectCreditCardAtIndex:(size_t)i; | 181 - (void)selectCreditCardAtIndex:(size_t)i; |
| 182 - (void)addSelectedAddressAtIndex:(size_t)i; | 182 - (void)addSelectedAddressAtIndex:(size_t)i; |
| 183 - (void)addSelectedCreditCardAtIndex:(size_t)i; | 183 - (void)addSelectedCreditCardAtIndex:(size_t)i; |
| 184 - (BOOL)editButtonEnabled; | 184 - (BOOL)editButtonEnabled; |
| 185 - (std::vector<AutoFillProfile>&)profiles; | 185 - (std::vector<AutoFillProfile>&)profiles; |
| 186 - (std::vector<CreditCard>&)creditCards; | 186 - (std::vector<CreditCard>&)creditCards; |
| 187 @end | 187 @end |
| 188 | 188 |
| 189 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ | 189 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ |
| OLD | NEW |