diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 17:51:53 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 17:51:53 +0000 |
commit | fedaf2e8932a982d65490955a9d59bace9798b62 (patch) | |
tree | bc95b60f2aeadc4bac41dbe093802dcf02925703 /webkit/glue/autofill_form.h | |
parent | 7777d9633bed51e5458ca2ec4b0df1f73d809bfb (diff) | |
download | chromium_src-fedaf2e8932a982d65490955a9d59bace9798b62.zip chromium_src-fedaf2e8932a982d65490955a9d59bace9798b62.tar.gz chromium_src-fedaf2e8932a982d65490955a9d59bace9798b62.tar.bz2 |
Autocomplete now uses the input field id when no name is available to perform autocomplete.
This matches FF behavior.
BUG=6310
TEST=See bug.
Review URL: http://codereview.chromium.org/48033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/autofill_form.h')
-rw-r--r-- | webkit/glue/autofill_form.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/autofill_form.h b/webkit/glue/autofill_form.h index 6a300a7..8375e75 100644 --- a/webkit/glue/autofill_form.h +++ b/webkit/glue/autofill_form.h @@ -9,6 +9,7 @@ #include <vector> namespace WebCore { + class HTMLInputElement; class HTMLFormElement; } @@ -30,6 +31,12 @@ class AutofillForm { static AutofillForm* CreateAutofillForm(WebCore::HTMLFormElement* form); + // Returns the name that should be used for the specified |element| when + // storing autofill data. This is either the field name or its id, an empty + // string if it has no name and no id. + static std::wstring GetNameForInputElement(WebCore::HTMLInputElement* + element); + // A vector of all the input fields in the form. std::vector<Element> elements; }; |