Lines Matching full:form_structure
27 #include "chrome/browser/autofill/form_structure.h"
183 // Precondition: |form_structure| and |form| should correspond to the same
186 // |form_structure| with indices in the range [section_start, section_end).
187 bool SectionIsAutofilled(const FormStructure* form_structure,
195 // The list of fields in |form_structure| and |form.fields| often match
197 // |form_structure| and |form.fields| do not match directly we search
198 // ahead in the |form_structure| for the matching field.
204 // Search forward in the |form_structure| for a corresponding field.
205 while (k < form_structure->field_count() &&
206 *form_structure->field(k) != form.fields[j]) {
211 if (k >= form_structure->field_count())
214 AutofillType autofill_type(form_structure->field(k)->type());
218 // We found a matching field in the |form_structure| so we
219 // proceed to the next |form| field, and the next |form_structure|.
380 FormStructure* form_structure = NULL;
384 FindCachedFormAndField(form, field, &form_structure, &autofill_field) &&
386 form_structure->IsAutofillable(false)) {
392 form_structure, field, type, &values, &labels, &icons, &unique_ids);
395 form_structure, field, type, &values, &labels, &icons, &unique_ids);
408 if (!form_structure->IsAutofillable(true))
410 else if (is_filling_credit_card && !FormIsHTTPS(form_structure))
419 FindSectionBounds(*form_structure, *autofill_field,
422 bool section_is_autofilled = SectionIsAutofilled(form_structure,
488 FormStructure* form_structure = NULL;
491 !FindCachedFormAndField(form, field, &form_structure, &autofill_field))
495 DCHECK(form_structure);
536 FindSectionBounds(*form_structure, *autofill_field, (credit_card != NULL),
543 if (SectionIsAutofilled(form_structure, form, section_start, section_end)) {
570 // The list of fields in |form_structure| and |result.fields| often match
572 // |form_structure| and |result.fields| do not match directly we search
573 // ahead in the |form_structure| for the matching field.
581 // Search forward in the |form_structure| for a corresponding field.
582 while (k < section_end && *form_structure->field(k) != result.fields[j]) {
587 // field in the |form_structure|.
591 AutofillFieldType field_type = form_structure->field(k)->type();
611 // We found a matching field in the |form_structure| so we
612 // proceed to the next |result| field, and the next |form_structure|.
615 autofilled_forms_signatures_.push_front(form_structure->FormSignature());
786 FormStructure** form_structure) const {
788 *form_structure = NULL;
793 *form_structure = *iter;
798 if (!(*form_structure))
806 FormStructure** form_structure,
809 if (!FindCachedForm(form, form_structure))
813 if (!(*form_structure)->autofill_count())
819 (*form_structure)->begin();
820 iter != (*form_structure)->end(); ++iter) {
1035 scoped_ptr<FormStructure> form_structure(new FormStructure(*iter));
1036 if (!form_structure->ShouldBeParsed(false))
1039 form_structure->DetermineHeuristicTypes();
1043 if (form_structure->ShouldBeParsed(true))
1044 form_structures_.push_back(form_structure.release());
1046 non_queryable_forms.push_back(form_structure.release());