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 |
| 11 #import "base/cocoa_protocols_mac.h" |
10 #include "base/scoped_nsobject.h" | 12 #include "base/scoped_nsobject.h" |
11 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
12 #include "chrome/browser/autofill/autofill_dialog.h" | 14 #include "chrome/browser/autofill/autofill_dialog.h" |
13 #include "chrome/browser/autofill/autofill_profile.h" | 15 #include "chrome/browser/autofill/autofill_profile.h" |
14 #include "chrome/browser/autofill/credit_card.h" | 16 #include "chrome/browser/autofill/credit_card.h" |
15 | 17 |
16 namespace AutoFillDialogControllerInternal { | 18 namespace AutoFillDialogControllerInternal { |
17 class PersonalDataManagerObserver; | 19 class PersonalDataManagerObserver; |
18 } // AutoFillDialogControllerInternal | 20 } // AutoFillDialogControllerInternal |
19 | 21 |
20 @class AutoFillAddressSheetController; | 22 @class AutoFillAddressSheetController; |
21 @class AutoFillCreditCardSheetController; | 23 @class AutoFillCreditCardSheetController; |
22 @class AutoFillTableView; | 24 @class AutoFillTableView; |
23 class Profile; | 25 class Profile; |
24 @class WindowSizeAutosaver; | 26 @class WindowSizeAutosaver; |
25 | 27 |
26 // A window controller for managing the autofill options dialog. | 28 // A window controller for managing the autofill options dialog. |
27 // Application modally presents a dialog allowing the user to store | 29 // Application modally presents a dialog allowing the user to store |
28 // personal address and credit card information. | 30 // personal address and credit card information. |
29 @interface AutoFillDialogController : NSWindowController { | 31 @interface AutoFillDialogController : NSWindowController <NSTableViewDelegate> { |
30 @private | 32 @private |
31 // Outlet to the main NSTableView object listing both addresses and credit | 33 // Outlet to the main NSTableView object listing both addresses and credit |
32 // cards with section headers for both. | 34 // cards with section headers for both. |
33 IBOutlet AutoFillTableView* tableView_; | 35 IBOutlet AutoFillTableView* tableView_; |
34 | 36 |
35 // This observer is passed in by the caller of the dialog. When the dialog | 37 // This observer is passed in by the caller of the dialog. When the dialog |
36 // is dismissed |observer_| is called with new values for the addresses and | 38 // is dismissed |observer_| is called with new values for the addresses and |
37 // credit cards. | 39 // credit cards. |
38 // Weak, not retained. | 40 // Weak, not retained. |
39 AutoFillDialogObserver* observer_; | 41 AutoFillDialogObserver* observer_; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 importedProfile:(AutoFillProfile*)importedProfile | 152 importedProfile:(AutoFillProfile*)importedProfile |
151 importedCreditCard:(CreditCard*)importedCreditCard; | 153 importedCreditCard:(CreditCard*)importedCreditCard; |
152 - (void)closeDialog; | 154 - (void)closeDialog; |
153 - (AutoFillAddressSheetController*)addressSheetController; | 155 - (AutoFillAddressSheetController*)addressSheetController; |
154 - (AutoFillCreditCardSheetController*)creditCardSheetController; | 156 - (AutoFillCreditCardSheetController*)creditCardSheetController; |
155 - (void)selectAddressAtIndex:(size_t)i; | 157 - (void)selectAddressAtIndex:(size_t)i; |
156 - (void)selectCreditCardAtIndex:(size_t)i; | 158 - (void)selectCreditCardAtIndex:(size_t)i; |
157 @end | 159 @end |
158 | 160 |
159 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ | 161 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_ |
OLD | NEW |