Searched refs:form_structure (Results 1 - 25 of 36) sorted by relevance

12

/external/chromium_org/components/autofill/core/browser/
H A Dform_structure_unittest.cc5 #include "components/autofill/core/browser/form_structure.h"
67 scoped_ptr<FormStructure> form_structure; local
95 form_structure.reset(new FormStructure(form, std::string()));
96 EXPECT_EQ(4U, form_structure->field_count());
99 form_structure.reset(new FormStructure(form, "http://fake_url"));
100 EXPECT_EQ(4U, form_structure->field_count());
104 scoped_ptr<FormStructure> form_structure; local
130 form_structure.reset(new FormStructure(form, std::string()));
131 form_structure->DetermineHeuristicTypes(TestAutofillMetrics());
132 EXPECT_EQ(1U, form_structure
165 scoped_ptr<FormStructure> form_structure; local
250 scoped_ptr<FormStructure> form_structure; local
346 scoped_ptr<FormStructure> form_structure; local
415 scoped_ptr<FormStructure> form_structure; local
456 scoped_ptr<FormStructure> form_structure; local
499 scoped_ptr<FormStructure> form_structure; local
737 scoped_ptr<FormStructure> form_structure; local
816 scoped_ptr<FormStructure> form_structure; local
879 scoped_ptr<FormStructure> form_structure; local
945 scoped_ptr<FormStructure> form_structure; local
1000 scoped_ptr<FormStructure> form_structure; local
1063 scoped_ptr<FormStructure> form_structure; local
1105 scoped_ptr<FormStructure> form_structure; local
1146 scoped_ptr<FormStructure> form_structure; local
1190 scoped_ptr<FormStructure> form_structure; local
1233 scoped_ptr<FormStructure> form_structure; local
1267 scoped_ptr<FormStructure> form_structure; local
1302 scoped_ptr<FormStructure> form_structure; local
1375 scoped_ptr<FormStructure> form_structure; local
1423 scoped_ptr<FormStructure> form_structure; local
1472 scoped_ptr<FormStructure> form_structure; local
1672 scoped_ptr<FormStructure> form_structure; local
1830 scoped_ptr<FormStructure> form_structure; local
2210 scoped_ptr<FormStructure> form_structure; local
2317 scoped_ptr<FormStructure> form_structure; local
[all...]
H A Dautofill_manager.cc36 #include "components/autofill/core/browser/form_structure.h"
114 // Precondition: |form_structure| and |form| should correspond to the same
117 bool SectionIsAutofilled(const FormStructure& form_structure, argument
120 DCHECK_EQ(form_structure.field_count(), form.fields.size());
121 for (size_t i = 0; i < form_structure.field_count(); ++i) {
122 if (form_structure.field(i)->section() == section &&
172 bool HasServerSpecifiedFieldTypes(const FormStructure& form_structure) { argument
173 for (size_t i = 0; i < form_structure.field_count(); ++i) {
174 if (form_structure.field(i)->server_type() != NO_SERVER_DATA)
375 FormStructure* form_structure local
421 FormStructure* form_structure = NULL; local
500 FormStructure* form_structure = NULL; local
978 GetCachedFormAndField(const FormData& form, const FormFieldData& field, FormStructure** form_structure, AutofillField** autofill_field) argument
[all...]
H A Dautofill_download_unittest.cc16 #include "components/autofill/core/browser/form_structure.h"
167 FormStructure *form_structure = new FormStructure(form, std::string()); local
169 form_structures.push_back(form_structure);
193 form_structure = new FormStructure(form, std::string());
194 form_structures.push_back(form_structure);
286 form_structure = new FormStructure(form, std::string());
287 form_structures.push_back(form_structure);
357 FormStructure *form_structure = new FormStructure(form, std::string()); local
359 form_structures0.push_back(form_structure);
365 form_structure
[all...]
H A Dautofill_merge_unittest.cc16 #include "components/autofill/core/browser/form_structure.h"
216 FormStructure form_structure(form, std::string());
217 for (size_t i = 0; i < form_structure.field_count(); ++i) {
221 const_cast<AutofillField*>(form_structure.field(i));
228 personal_data_.ImportFormData(form_structure, &imported_credit_card);
H A Dpersonal_data_manager_unittest.cc17 #include "components/autofill/core/browser/form_structure.h"
597 FormStructure form_structure(form, std::string());
598 form_structure.DetermineHeuristicTypes(TestAutofillMetrics());
600 EXPECT_TRUE(personal_data_->ImportFormData(form_structure,
638 FormStructure form_structure(form, std::string());
639 form_structure.DetermineHeuristicTypes(TestAutofillMetrics());
641 EXPECT_FALSE(personal_data_->ImportFormData(form_structure,
671 FormStructure form_structure(form, std::string());
672 form_structure.DetermineHeuristicTypes(TestAutofillMetrics());
674 EXPECT_TRUE(personal_data_->ImportFormData(form_structure,
[all...]
H A Dform_structure.cc5 #include "components/autofill/core/browser/form_structure.h"
453 // To enable this logging, run with the flag --vmodule="form_structure=2".
648 FormStructure* form_structure = form_structures[i]; local
650 form.data.name = form_structure->form_name_;
652 ASCIIToUTF16((form_structure->method_ == POST) ? "POST" : "GET");
653 form.data.origin = form_structure->source_url_;
654 form.data.action = form_structure->target_url_;
655 form.signature = form_structure->FormSignature();
656 form.experiment_id = form_structure->server_experiment_id_;
659 form_structure
[all...]
H A Dautofill_manager.h26 #include "components/autofill/core/browser/form_structure.h"
259 // Fills |form_structure| cached element corresponding to |form|.
262 FormStructure** form_structure) const WARN_UNUSED_RESULT;
264 // Fills |form_structure| and |autofill_field| with the cached elements
270 FormStructure** form_structure,
H A Dautofill_manager_unittest.cc2646 // |form_structure| will be owned by |autofill_manager_|.
2647 TestFormStructure* form_structure = new TestFormStructure(form); local
2649 form_structure->DetermineHeuristicTypes(metrics_logger);
2655 server_types.push_back(form_structure->field(i)->heuristic_type());
2657 form_structure->SetFieldTypes(heuristic_types, server_types);
2658 autofill_manager_->AddSeenForm(form_structure);
3162 TestFormStructure* form_structure = new TestFormStructure(form); local
3164 form_structure->DetermineHeuristicTypes(metrics_logger);
3170 server_types.push_back(form_structure->field(i)->heuristic_type());
3172 form_structure
3192 TestFormStructure* form_structure = new TestFormStructure(form); local
[all...]
/external/chromium/chrome/browser/autofill/
H A Dform_structure_unittest.cc8 #include "chrome/browser/autofill/form_structure.h"
72 FormStructure form_structure(form);
75 EXPECT_EQ(3U, form_structure.field_count());
105 FormStructure form_structure(form);
106 form_structure.DetermineHeuristicTypes();
109 EXPECT_EQ(1U, form_structure.autofill_count());
116 FormStructure form_structure(form);
118 EXPECT_EQ(form.origin, form_structure.source_url());
122 scoped_ptr<FormStructure> form_structure; local
145 form_structure
200 scoped_ptr<FormStructure> form_structure; local
288 scoped_ptr<FormStructure> form_structure; local
393 scoped_ptr<FormStructure> form_structure; local
474 scoped_ptr<FormStructure> form_structure; local
560 scoped_ptr<FormStructure> form_structure; local
622 scoped_ptr<FormStructure> form_structure; local
694 scoped_ptr<FormStructure> form_structure; local
745 scoped_ptr<FormStructure> form_structure; local
800 scoped_ptr<FormStructure> form_structure; local
852 scoped_ptr<FormStructure> form_structure; local
892 scoped_ptr<FormStructure> form_structure; local
933 scoped_ptr<FormStructure> form_structure; local
1036 scoped_ptr<FormStructure> form_structure; local
1089 scoped_ptr<FormStructure> form_structure; local
1144 scoped_ptr<FormStructure> form_structure; local
1327 scoped_ptr<FormStructure> form_structure; local
1480 scoped_ptr<FormStructure> form_structure; local
1559 scoped_ptr<FormStructure> form_structure; local
1682 scoped_ptr<FormStructure> form_structure; local
[all...]
H A Dautofill_manager.cc27 #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, argument
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
380 FormStructure* form_structure = NULL; local
488 FormStructure* form_structure = NULL; local
804 FindCachedFormAndField(const FormData& form, const FormField& field, FormStructure** form_structure, AutofillField** autofill_field) argument
[all...]
H A Dautofill_metrics_unittest.cc263 // |form_structure| will be owned by |autofill_manager_|.
264 TestFormStructure* form_structure = new TestFormStructure(form); local
265 form_structure->SetFieldTypes(heuristic_types, server_types);
266 autofill_manager_->AddSeenForm(form_structure);
429 // |form_structure| will be owned by |autofill_manager_|.
430 TestFormStructure* form_structure = new TestFormStructure(form); local
431 form_structure->SetFieldTypes(heuristic_types, server_types);
432 autofill_manager_->AddSeenForm(form_structure);
489 // |form_structure| will be owned by |autofill_manager_|.
490 TestFormStructure* form_structure local
673 TestFormStructure* form_structure = new TestFormStructure(form); local
787 TestFormStructure* form_structure = new TestFormStructure(form); local
[all...]
H A Dautofill_download_unittest.cc13 #include "chrome/browser/autofill/form_structure.h"
171 FormStructure *form_structure = new FormStructure(form); local
173 form_structures.push_back(form_structure);
200 form_structure = new FormStructure(form);
201 form_structures.push_back(form_structure);
305 form_structure = new FormStructure(form);
306 form_structures.push_back(form_structure);
390 FormStructure *form_structure = new FormStructure(form); local
392 form_structures0.push_back(form_structure);
401 form_structure
[all...]
H A Dautofill_merge_unittest.cc14 #include "chrome/browser/autofill/form_structure.h"
192 FormStructure form_structure(form);
193 for (size_t i = 0; i < form_structure.field_count(); ++i) {
197 const_cast<AutofillField*>(form_structure.field(i));
202 std::vector<const FormStructure*> form_structures(1, &form_structure);
H A Dautofill_manager.h25 #include "chrome/browser/autofill/form_structure.h"
182 // Fills |form_structure| cached element corresponding to |form|.
185 FormStructure** form_structure) const WARN_UNUSED_RESULT;
187 // Fills |form_structure| and |autofill_field| with the cached elements
193 FormStructure** form_structure,
H A Dpersonal_data_manager_unittest.cc14 #include "chrome/browser/autofill/form_structure.h"
544 FormStructure form_structure(form);
545 form_structure.DetermineHeuristicTypes();
547 forms.push_back(&form_structure);
591 FormStructure form_structure(form);
592 form_structure.DetermineHeuristicTypes();
594 forms.push_back(&form_structure);
621 FormStructure form_structure(form);
622 form_structure.DetermineHeuristicTypes();
624 forms.push_back(&form_structure);
[all...]
/external/chromium_org/chrome/browser/ui/autofill/
H A Dautofill_dialog_controller.cc16 const FormData& form_structure,
14 Create( content::WebContents* contents, const FormData& form_structure, const GURL& source_url, const DialogType dialog_type, const base::Callback<void(const FormStructure*, const std::string&)>& callback) argument
H A Dautofill_dialog_controller.h15 #include "components/autofill/core/browser/form_structure.h"
37 const FormData& form_structure,
H A Dautofill_dialog_controller_unittest.cc192 const FormData& form_structure,
200 form_structure,
465 const FormStructure* form_structure() { return form_structure_; } function in class:autofill::__anon6018::AutofillDialogControllerTest
476 void FinishedCallback(const FormStructure* form_structure, argument
478 form_structure_ = form_structure;
1027 ASSERT_EQ(20U, form_structure()->field_count());
1029 form_structure()->field(9)->Type().GetStorableType());
1030 EXPECT_EQ(ADDRESS_BILLING, form_structure()->field(9)->Type().group());
1032 form_structure()->field(16)->Type().GetStorableType());
1033 EXPECT_EQ(ADDRESS_HOME, form_structure()
190 TestAutofillDialogController( content::WebContents* contents, const FormData& form_structure, const GURL& source_url, const AutofillMetrics& metric_logger, const DialogType dialog_type, const base::Callback<void(const FormStructure*, const std::string&)>& callback, MockNewCreditCardBubbleController* mock_new_card_bubble_controller) argument
[all...]
H A Ddata_model_wrapper.cc18 #include "components/autofill/core/browser/form_structure.h"
51 FormStructure* form_structure) const {
53 for (size_t i = 0; i < form_structure->field_count(); ++i) {
54 AutofillField* field = form_structure->field(i);
H A Ddata_model_wrapper.h57 // Fills in |form_structure| with the data that this model contains. |inputs|
60 // in |form_structure| were found to be matching.
64 FormStructure* form_structure) const;
/external/chromium_org/chrome/browser/ui/android/autofill/
H A Dautofill_dialog_controller_android.cc82 FormStructure& form_structure, wallet::FullWallet* full_wallet,
90 profile_wrapper.FillFormStructure(inputs, compare, &form_structure);
96 wrapper->FillFormStructure(inputs, compare, &form_structure);
101 FormStructure& form_structure,
110 form_structure, full_wallet, email_address);
119 const FormData& form_structure,
127 form_structure,
146 const FormData& form_structure,
152 form_structure,
424 const FormData& form_structure,
79 FillOutputForSectionWithComparator( DialogSection section, const DetailInputs& inputs, const InputFieldComparator& compare, FormStructure& form_structure, wallet::FullWallet* full_wallet, const base::string16& email_address) argument
99 FillOutputForSection( DialogSection section, FormStructure& form_structure, wallet::FullWallet* full_wallet, const base::string16& email_address) argument
117 Create( content::WebContents* contents, const FormData& form_structure, const GURL& source_url, const DialogType dialog_type, const base::Callback<void(const FormStructure*, const std::string&)>& callback) argument
144 Create( content::WebContents* contents, const FormData& form_structure, const GURL& source_url, const DialogType dialog_type, const base::Callback<void(const FormStructure*, const std::string&)>& callback) argument
422 AutofillDialogControllerAndroid( content::WebContents* contents, const FormData& form_structure, const GURL& source_url, const DialogType dialog_type, const base::Callback<void(const FormStructure*, const std::string&)>& callback) argument
[all...]
H A Dautofill_dialog_controller_android.h31 const FormData& form_structure,
71 const FormData& form_structure,
/external/chromium_org/components/autofill/content/browser/
H A Dautocheckout_manager_unittest.cc14 #include "components/autofill/core/browser/form_structure.h"
72 scoped_ptr<FormStructure> form_structure(
77 form_structure->field(i)->set_server_type(autofill_types[i]);
80 form_structure->field(i)->set_heuristic_type(CREDIT_CARD_NUMBER);
83 return form_structure.Pass();
134 scoped_ptr<FormStructure> form_structure(
138 form_structure->field(0)->set_server_type(FIELD_WITH_DEFAULT_VALUE);
139 form_structure->field(0)->set_default_value("female");
140 form_structure->field(1)->set_server_type(FIELD_WITH_DEFAULT_VALUE);
141 form_structure
265 scoped_ptr<FormStructure> form_structure; local
374 SetFormStructure(scoped_ptr<FormStructure> form_structure) argument
[all...]
H A Dautofill_driver_impl_unittest.cc179 FormStructure form_structure(form, std::string());
180 std::vector<FormStructure*> forms(1, &form_structure);
191 FormStructure form_structure(form, std::string());
192 std::vector<FormStructure*> forms(1, &form_structure);
H A Dautocheckout_manager.cc20 #include "components/autofill/core/browser/form_structure.h"
177 FormStructure* form_structure = *iter; local
178 form_structure->set_filled_by_autocheckout(true);
179 FormData form = form_structure->ToFormData();
180 DCHECK_EQ(form_structure->field_count(), form.fields.size());
182 for (size_t i = 0; i < form_structure->field_count(); ++i) {
183 const AutofillField* field = form_structure->field(i);

Completed in 318 milliseconds

12