Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: webkit/glue/autofill_form.h

Issue 48033: Autocomplete should work with nameless fields (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/autofill_form.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/autofill_form.h
===================================================================
--- webkit/glue/autofill_form.h (revision 11737)
+++ webkit/glue/autofill_form.h (working copy)
@@ -9,6 +9,7 @@
#include <vector>
namespace WebCore {
+ class HTMLInputElement;
class HTMLFormElement;
}
@@ -30,6 +31,12 @@
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;
};
« no previous file with comments | « no previous file | webkit/glue/autofill_form.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698