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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 // IBActions for adding new items. | 113 // IBActions for adding new items. |
114 - (IBAction)addNewAddress:(id)sender; | 114 - (IBAction)addNewAddress:(id)sender; |
115 - (IBAction)addNewCreditCard:(id)sender; | 115 - (IBAction)addNewCreditCard:(id)sender; |
116 | 116 |
117 // IBAction for deleting an item. |sender| is expected to be the "Remove" | 117 // IBAction for deleting an item. |sender| is expected to be the "Remove" |
118 // button. The deletion acts on the selected item in either the address or | 118 // button. The deletion acts on the selected item in either the address or |
119 // credit card list. | 119 // credit card list. |
120 - (IBAction)deleteSelection:(id)sender; | 120 - (IBAction)deleteSelection:(id)sender; |
121 | 121 |
122 // IBActions for editing an item. |sender| is expected to be the "Edit..." | 122 // IBAction for editing an item. |sender| is expected to be the "Edit..." |
123 // button. The editing acts on the selected item in either the address or | 123 // button. The editing acts on the selected item in either the address or |
124 // credit card list. | 124 // credit card list. |
125 - (IBAction)editSelection:(id)sender; | 125 - (IBAction)editSelection:(id)sender; |
126 | 126 |
| 127 // IBAction for opening the help link. |sender| is expected to be the |
| 128 // "About AutoFill" link. |
| 129 - (IBAction)openHelp:(id)sender; |
| 130 |
127 // NSTableView data source methods. | 131 // NSTableView data source methods. |
128 - (id)tableView:(NSTableView *)tableView | 132 - (id)tableView:(NSTableView *)tableView |
129 objectValueForTableColumn:(NSTableColumn *)tableColumn | 133 objectValueForTableColumn:(NSTableColumn *)tableColumn |
130 row:(NSInteger)rowIndex; | 134 row:(NSInteger)rowIndex; |
131 | 135 |
132 - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView; | 136 - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView; |
133 | 137 |
134 // Returns an array of labels representing the addresses in the |profiles_|. | 138 // Returns an array of labels representing the addresses in the |profiles_|. |
135 - (NSArray*)addressLabels; | 139 - (NSArray*)addressLabels; |
136 | 140 |
(...skipping 15 matching lines...) Expand all Loading... |
152 importedProfile:(AutoFillProfile*)importedProfile | 156 importedProfile:(AutoFillProfile*)importedProfile |
153 importedCreditCard:(CreditCard*)importedCreditCard; | 157 importedCreditCard:(CreditCard*)importedCreditCard; |
154 - (void)closeDialog; | 158 - (void)closeDialog; |
155 - (AutoFillAddressSheetController*)addressSheetController; | 159 - (AutoFillAddressSheetController*)addressSheetController; |
156 - (AutoFillCreditCardSheetController*)creditCardSheetController; | 160 - (AutoFillCreditCardSheetController*)creditCardSheetController; |
157 - (void)selectAddressAtIndex:(size_t)i; | 161 - (void)selectAddressAtIndex:(size_t)i; |
158 - (void)selectCreditCardAtIndex:(size_t)i; | 162 - (void)selectCreditCardAtIndex:(size_t)i; |
159 @end | 163 @end |
160 | 164 |
161 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ | 165 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ |
OLD | NEW |