| 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 15 matching lines...) Expand all  Loading... | 
| 26  protected: | 26  protected: | 
| 27   virtual ~AutoFillDialogObserver() {} | 27   virtual ~AutoFillDialogObserver() {} | 
| 28 }; | 28 }; | 
| 29 | 29 | 
| 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. |observer| will be | 33 // The dialog fills out the profile fields using this data. |observer| will be | 
| 34 // notified by OnAutoFillDialogAccept when the user has applied changes. | 34 // notified by OnAutoFillDialogAccept when the user has applied changes. | 
| 35 // | 35 // | 
|  | 36 // The |parent| parameter (currently only used on Windows) specifies the parent | 
|  | 37 // view in the view hierarchy.  May be NULL on Mac and gtk. | 
|  | 38 // | 
|  | 39 // Optional parameters |imported_profile| and |imported_credit_card| may be | 
|  | 40 // supplied.  If they are supplied (non-NULL) they will be used instead of | 
|  | 41 // the profile and credit card data retrieved from the PersonalDataManager | 
|  | 42 // associated with the |profile|. | 
|  | 43 // | 
| 36 // The PersonalDataManager owns the contents of these vectors.  The lifetime of | 44 // The PersonalDataManager owns the contents of these vectors.  The lifetime of | 
| 37 // the contents is until the PersonalDataManager replaces them with new data | 45 // the contents is until the PersonalDataManager replaces them with new data | 
| 38 // whenever the web database is updated. | 46 // whenever the web database is updated. | 
| 39 #if defined(OS_MACOSX) | 47 void ShowAutoFillDialog(gfx::NativeView parent, | 
| 40 // TODO(dhollowa): update .mm files and remove this. |  | 
| 41 void ShowAutoFillDialog(AutoFillDialogObserver* observer, |  | 
| 42                         const std::vector<AutoFillProfile*>& profiles, |  | 
| 43                         const std::vector<CreditCard*>& credit_cards, |  | 
| 44                         Profile* profile); |  | 
| 45 #else |  | 
| 46 void ShowAutoFillDialog(gfx::NativeWindow parent, |  | 
| 47                         AutoFillDialogObserver* observer, | 48                         AutoFillDialogObserver* observer, | 
| 48                         Profile* profile); | 49                         Profile* profile, | 
| 49 #endif | 50                         AutoFillProfile* imported_profile, | 
|  | 51                         CreditCard* imported_credit_card); | 
| 50 | 52 | 
| 51 #endif  // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ | 53 #endif  // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_ | 
| OLD | NEW | 
|---|