| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 - (IBAction)openHelp:(id)sender; | 149 - (IBAction)openHelp:(id)sender; |
| 150 | 150 |
| 151 // NSTableView data source methods. | 151 // NSTableView data source methods. |
| 152 - (id)tableView:(NSTableView *)tableView | 152 - (id)tableView:(NSTableView *)tableView |
| 153 objectValueForTableColumn:(NSTableColumn *)tableColumn | 153 objectValueForTableColumn:(NSTableColumn *)tableColumn |
| 154 row:(NSInteger)rowIndex; | 154 row:(NSInteger)rowIndex; |
| 155 | 155 |
| 156 - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView; | 156 - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView; |
| 157 | 157 |
| 158 // Returns an array of labels representing the addresses in the |profiles_|. | 158 // Returns an array of labels representing the addresses in the |profiles_|. |
| 159 // Only returns labels for which there exists address information. |
| 159 - (NSArray*)addressLabels; | 160 - (NSArray*)addressLabels; |
| 160 | 161 |
| 161 @end | 162 @end |
| 162 | 163 |
| 163 // Interface exposed for unit testing. | 164 // Interface exposed for unit testing. |
| 164 @interface AutoFillDialogController (ExposedForUnitTests) | 165 @interface AutoFillDialogController (ExposedForUnitTests) |
| 165 // Returns an instance of AutoFillDialogController. See |-initWithObserver| | 166 // Returns an instance of AutoFillDialogController. See |-initWithObserver| |
| 166 // for details about arguments. | 167 // for details about arguments. |
| 167 // Note: controller is autoreleased when |-closeDialog| is called. | 168 // Note: controller is autoreleased when |-closeDialog| is called. |
| 168 + (AutoFillDialogController*)controllerWithObserver: | 169 + (AutoFillDialogController*)controllerWithObserver: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 179 - (AutoFillAddressSheetController*)addressSheetController; | 180 - (AutoFillAddressSheetController*)addressSheetController; |
| 180 - (AutoFillCreditCardSheetController*)creditCardSheetController; | 181 - (AutoFillCreditCardSheetController*)creditCardSheetController; |
| 181 - (void)selectAddressAtIndex:(size_t)i; | 182 - (void)selectAddressAtIndex:(size_t)i; |
| 182 - (void)selectCreditCardAtIndex:(size_t)i; | 183 - (void)selectCreditCardAtIndex:(size_t)i; |
| 183 - (void)addSelectedAddressAtIndex:(size_t)i; | 184 - (void)addSelectedAddressAtIndex:(size_t)i; |
| 184 - (void)addSelectedCreditCardAtIndex:(size_t)i; | 185 - (void)addSelectedCreditCardAtIndex:(size_t)i; |
| 185 - (BOOL)editButtonEnabled; | 186 - (BOOL)editButtonEnabled; |
| 186 @end | 187 @end |
| 187 | 188 |
| 188 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ | 189 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ |
| OLD | NEW |