Home | History | Annotate | Download | only in autofill

Lines Matching defs:form

38 const char kXMLElementForm[] = "form";
41 // The number of fillable fields necessary for a form to be fillable.
52 FormStructure::FormStructure(const FormData& form)
53 : form_name_(form.name),
54 source_url_(form.origin),
55 target_url_(form.action),
60 // Copy the form fields.
62 for (field = form.fields.begin();
63 field != form.fields.end(); field++) {
64 // Add all supported form fields (including with empty names) to the
78 std::string method = UTF16ToUTF8(form.method);
143 return false; // Malformed form, skip it.
171 // one form as returned data would be the same for all the repeated forms.
187 continue; // Malformed form, skip it.
225 // Copy the field types into the actual form.
229 FormStructure* form = *iter;
230 form->server_experiment_id_ = experiment_id;
232 if (form->has_autofillable_field_)
235 form->has_credit_card_field_ = false;
236 form->has_autofillable_field_ = false;
238 for (std::vector<AutofillField*>::iterator field = form->fields_.begin();
239 field != form->fields_.end(); ++field, ++current_type) {
259 form->has_credit_card_field_ = true;
261 form->has_autofillable_field_ = true;
264 form->UpdateAutofillCount();
490 bool FormStructure::operator==(const FormData& form) const {
491 // TODO(jhawkins): Is this enough to differentiate a form?
492 if (form_name_ == form.name &&
493 source_url_ == form.origin &&
494 target_url_ == form.action) {
504 bool FormStructure::operator!=(const FormData& form) const {
505 return !operator==(form);
541 // 48, which is far larger than any valid form and XML still fits into 2K.
548 // Add the child nodes for the form fields.