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_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/autofill/autofill_profile.h" | 10 #include "chrome/browser/autofill/autofill_profile.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // Shows the AutoFill dialog, which allows the user to edit profile information. | 30 // Shows the AutoFill dialog, which allows the user to edit profile information. |
31 // |profile| is profile from which you can get vectors of of autofill profiles | 31 // |profile| is profile from which you can get vectors of of autofill profiles |
32 // that contains the current profile information and credit cards. | 32 // that contains the current profile information and credit cards. |
33 // The dialog fills out the profile fields using this data. | 33 // The dialog fills out the profile fields using this data. |
34 // | 34 // |
35 // |observer| will be notified by OnAutoFillDialogAccept when the user has | 35 // |observer| will be notified by OnAutoFillDialogAccept when the user has |
36 // applied changes. May not be NULL. | 36 // applied changes. May not be NULL. |
37 // | 37 // |
38 // The |parent| parameter (currently only used on Windows) specifies the parent | 38 // The |parent| parameter (currently only used on Windows) specifies the parent |
39 // view in the view hierarchy. May be NULL on Mac and gtk. | 39 // view in the view hierarchy. May be NULL on Mac and gtk. |
40 // | |
41 // Optional parameters |imported_profile| and |imported_credit_card| may be | |
42 // supplied. If they are supplied (non-NULL) they will be used instead of | |
43 // the profile and credit card data retrieved from the PersonalDataManager | |
44 // associated with the |profile|. | |
45 // | |
46 // The PersonalDataManager owns the contents of these vectors. The lifetime of | |
47 // the contents is until the PersonalDataManager replaces them with new data | |
48 // whenever the web database is updated. | |
49 void ShowAutoFillDialog(gfx::NativeView parent, | 40 void ShowAutoFillDialog(gfx::NativeView parent, |
50 AutoFillDialogObserver* observer, | 41 AutoFillDialogObserver* observer, |
51 Profile* profile, | 42 Profile* profile); |
52 AutoFillProfile* imported_profile, | |
53 CreditCard* imported_credit_card); | |
54 | 43 |
55 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ | 44 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ |
OLD | NEW |