summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_dialog.h
diff options
context:
space:
mode:
authorgeorgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-16 22:39:29 +0000
committergeorgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-16 22:39:29 +0000
commit21e1e7dd3aaec080af56a91c7054565234f5e289 (patch)
tree41fc890083e625d86c10583da0039e7d29648efe /chrome/browser/autofill/autofill_dialog.h
parent913a035151d2d72c3db96674edf67a121fa1d832 (diff)
downloadchromium_src-21e1e7dd3aaec080af56a91c7054565234f5e289.zip
chromium_src-21e1e7dd3aaec080af56a91c7054565234f5e289.tar.gz
chromium_src-21e1e7dd3aaec080af56a91c7054565234f5e289.tar.bz2
Fixes first and third points in the bug "Autofill profile dialog box polish items".
Adds correct expand icons to the AutoFill dialog. The icons were added in a separate CL. Moves asynchronous access to the database inside the dialog (it now shows "Loading..." while db is being connected) Also fixes memory leak. BUG=36601 TEST=in the bug Review URL: http://codereview.chromium.org/669076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_dialog.h')
-rw-r--r--chrome/browser/autofill/autofill_dialog.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/chrome/browser/autofill/autofill_dialog.h b/chrome/browser/autofill/autofill_dialog.h
index 31b497c..ab4a7d7 100644
--- a/chrome/browser/autofill/autofill_dialog.h
+++ b/chrome/browser/autofill/autofill_dialog.h
@@ -7,6 +7,7 @@
#include <vector>
+#include "app/gfx/native_widget_types.h"
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/autofill/credit_card.h"
@@ -27,18 +28,24 @@ class AutoFillDialogObserver {
};
// Shows the AutoFill dialog, which allows the user to edit profile information.
-// |profiles| is a vector of autofill profiles that contains the current profile
-// information. The dialog fills out the profile fields using this data. Any
-// changes made to the profile information through the dialog should be
-// transferred back into |profiles| and |credit_cards|. |observer| will be
+// |profile| is profile from which you can get vectors of of autofill profiles
+// that contains the current profile information and credit cards.
+// The dialog fills out the profile fields using this data. |observer| will be
// notified by OnAutoFillDialogAccept when the user has applied changes.
//
// The PersonalDataManager owns the contents of these vectors. The lifetime of
// the contents is until the PersonalDataManager replaces them with new data
// whenever the web database is updated.
+#if defined(OS_MACOSX)
+// TODO(dhollowa): update .mm files and remove this.
void ShowAutoFillDialog(AutoFillDialogObserver* observer,
const std::vector<AutoFillProfile*>& profiles,
const std::vector<CreditCard*>& credit_cards,
Profile* profile);
+#else
+void ShowAutoFillDialog(gfx::NativeWindow parent,
+ AutoFillDialogObserver* observer,
+ Profile* profile);
+#endif
#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_H_