Home
last modified time | relevance | path

Searched refs:AutofillType (Results 1 – 25 of 79) sorted by relevance

1234

/external/chromium/chrome/browser/autofill/
Dautofill_type.cc13 const AutofillType::AutofillTypeDefinition kUnknownAutofillTypeDefinition = {
14 /* UNKNOWN_TYPE */ AutofillType::NO_GROUP, AutofillType::NO_SUBGROUP
17 AutofillType::AutofillTypeDefinition kAutofillTypeDefinitions[] = {
19 { AutofillType::NO_GROUP, AutofillType::NO_SUBGROUP },
23 { AutofillType::NO_GROUP, AutofillType::NO_SUBGROUP },
26 { AutofillType::NAME, AutofillType::NO_SUBGROUP },
28 { AutofillType::NAME, AutofillType::NO_SUBGROUP },
30 { AutofillType::NAME, AutofillType::NO_SUBGROUP },
32 { AutofillType::NAME, AutofillType::NO_SUBGROUP },
34 { AutofillType::NAME, AutofillType::NO_SUBGROUP },
[all …]
Dautofill_type_unittest.cc12 AutofillType none(NO_SERVER_DATA); in TEST()
14 EXPECT_EQ(AutofillType::NO_GROUP, none.group()); in TEST()
15 EXPECT_EQ(AutofillType::NO_SUBGROUP, none.subgroup()); in TEST()
18 AutofillType unknown(UNKNOWN_TYPE); in TEST()
20 EXPECT_EQ(AutofillType::NO_GROUP, unknown.group()); in TEST()
21 EXPECT_EQ(AutofillType::NO_SUBGROUP, unknown.subgroup()); in TEST()
24 AutofillType first(NAME_FIRST); in TEST()
26 EXPECT_EQ(AutofillType::NAME, first.group()); in TEST()
27 EXPECT_EQ(AutofillType::NO_SUBGROUP, first.subgroup()); in TEST()
30 AutofillType phone(PHONE_HOME_NUMBER); in TEST()
[all …]
Dautofill_type.h18 class AutofillType {
56 explicit AutofillType(AutofillFieldType field_type);
57 AutofillType(const AutofillType& autofill_type);
58 AutofillType& operator=(const AutofillType& autofill_type);
77 typedef AutofillType::FieldTypeGroup FieldTypeGroup;
78 typedef AutofillType::FieldTypeSubGroup FieldTypeSubGroup;
Daddress.cc20 const AutofillType::FieldTypeSubGroup kAutofillAddressTypes[] = {
21 AutofillType::ADDRESS_LINE1,
22 AutofillType::ADDRESS_LINE2,
23 AutofillType::ADDRESS_CITY,
24 AutofillType::ADDRESS_STATE,
25 AutofillType::ADDRESS_ZIP,
26 AutofillType::ADDRESS_COUNTRY,
129 FieldTypeSubGroup subgroup = AutofillType(type).subgroup(); in SetInfo()
130 if (subgroup == AutofillType::ADDRESS_LINE1) in SetInfo()
132 else if (subgroup == AutofillType::ADDRESS_LINE2) in SetInfo()
[all …]
Dphone_number.cc23 const AutofillType::FieldTypeSubGroup kAutofillPhoneTypes[] = {
24 AutofillType::PHONE_NUMBER,
25 AutofillType::PHONE_CITY_CODE,
26 AutofillType::PHONE_COUNTRY_CODE,
27 AutofillType::PHONE_CITY_AND_NUMBER,
28 AutofillType::PHONE_WHOLE_NUMBER,
120 FieldTypeSubGroup subgroup = AutofillType(type).subgroup(); in SetInfo()
121 if (subgroup == AutofillType::PHONE_NUMBER) in SetInfo()
123 else if (subgroup == AutofillType::PHONE_CITY_CODE) in SetInfo()
125 else if (subgroup == AutofillType::PHONE_COUNTRY_CODE) in SetInfo()
[all …]
Dautofill_metrics.cc43 switch (AutofillType(field_type).group()) { in GetFieldTypeGroupMetric()
44 case AutofillType::NO_GROUP: in GetFieldTypeGroupMetric()
48 case AutofillType::NAME: in GetFieldTypeGroupMetric()
52 case AutofillType::COMPANY: in GetFieldTypeGroupMetric()
56 case AutofillType::ADDRESS_HOME: in GetFieldTypeGroupMetric()
82 case AutofillType::EMAIL: in GetFieldTypeGroupMetric()
86 case AutofillType::PHONE_HOME: in GetFieldTypeGroupMetric()
90 case AutofillType::PHONE_FAX: in GetFieldTypeGroupMetric()
94 case AutofillType::CREDIT_CARD: in GetFieldTypeGroupMetric()
Dautofill_profile.cc34 return AutofillType::GetEquivalentFieldType(field_type); in GetEquivalentFieldTypeCollapsingNames()
232 AutofillFieldType return_type = AutofillType::GetEquivalentFieldType(type); in GetInfo()
248 switch (AutofillType(type).group()) { in SetMultiInfo()
249 case AutofillType::NAME: in SetMultiInfo()
252 case AutofillType::EMAIL: in SetMultiInfo()
255 case AutofillType::PHONE_HOME: in SetMultiInfo()
258 case AutofillType::PHONE_FAX: in SetMultiInfo()
276 switch (AutofillType(type).group()) { in GetMultiInfo()
277 case AutofillType::NAME: in GetMultiInfo()
280 case AutofillType::EMAIL: in GetMultiInfo()
[all …]
Dname_field.cc25 bool ok = Add(field_type_map, field_, AutofillType(NAME_FULL)); in GetFieldInfo()
156 bool ok = Add(field_type_map, first_name_, AutofillType(NAME_FIRST)); in GetFieldInfo()
158 ok = ok && Add(field_type_map, last_name_, AutofillType(NAME_LAST)); in GetFieldInfo()
160 AutofillType type = middle_initial_ ? in GetFieldInfo()
161 AutofillType(NAME_MIDDLE_INITIAL) : AutofillType(NAME_MIDDLE); in GetFieldInfo()
Dautofill_manager.cc129 AutofillType::GetEquivalentFieldType(current_field->type()); in FindSectionBounds()
141 AutofillType::FieldTypeGroup current_type_group = in FindSectionBounds()
142 AutofillType(current_type).group(); in FindSectionBounds()
143 if (current_type_group == AutofillType::PHONE_HOME || in FindSectionBounds()
144 current_type_group == AutofillType::PHONE_FAX || in FindSectionBounds()
145 current_type_group == AutofillType::EMAIL) in FindSectionBounds()
150 bool is_credit_card_field = current_type_group == AutofillType::CREDIT_CARD; in FindSectionBounds()
214 AutofillType autofill_type(form_structure->field(k)->type()); in SectionIsAutofilled()
389 (AutofillType(type).group() == AutofillType::CREDIT_CARD); in OnQueryFormFieldAutofill()
549 DCHECK_NE(AutofillType::CREDIT_CARD, in OnFillAutofillFormData()
[all …]
Dcredit_card_field.cc20 bool ok = Add(field_type_map, number_, AutofillType(CREDIT_CARD_NUMBER)); in GetFieldInfo()
29 ok = ok && Add(field_type_map, cardholder_, AutofillType(CREDIT_CARD_NAME)); in GetFieldInfo()
33 ok = ok && Add(field_type_map, type_, AutofillType(CREDIT_CARD_TYPE)); in GetFieldInfo()
36 AutofillType(CREDIT_CARD_EXP_MONTH)); in GetFieldInfo()
39 AutofillType(CREDIT_CARD_EXP_4_DIGIT_YEAR)); in GetFieldInfo()
/external/chromium_org/components/autofill/core/browser/
Dautofill_type_unittest.cc13 AutofillType none(NO_SERVER_DATA); in TEST()
18 AutofillType unknown(UNKNOWN_TYPE); in TEST()
23 AutofillType first(NAME_FIRST); in TEST()
28 AutofillType phone(PHONE_HOME_NUMBER); in TEST()
33 AutofillType billing_address(ADDRESS_BILLING_LINE1); in TEST()
38 AutofillType last(NAME_BILLING_SUFFIX); in TEST()
43 AutofillType boundary(MAX_VALID_FIELD_TYPE); in TEST()
48 AutofillType beyond(static_cast<ServerFieldType>(MAX_VALID_FIELD_TYPE + 10)); in TEST()
53 AutofillType between(static_cast<ServerFieldType>(16)); in TEST()
60 AutofillType unknown(HTML_TYPE_UNKNOWN, HTML_MODE_NONE); in TEST()
[all …]
Dphone_number_unittest.cc22 phone_number.SetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER), phone, "US"); in TEST()
95 EXPECT_TRUE(phone.SetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER), in TEST()
101 EXPECT_TRUE(phone.SetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER), in TEST()
107 EXPECT_TRUE(phone.SetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER), in TEST()
114 EXPECT_FALSE(phone.SetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER), in TEST()
127 phone.GetInfo(AutofillType(PHONE_HOME_CITY_CODE), "US")); in TEST()
132 phone.GetInfo(AutofillType(PHONE_HOME_CITY_CODE), "US")); in TEST()
138 phone.GetInfo(AutofillType(PHONE_HOME_CITY_CODE), "US")); in TEST()
145 phone.GetInfo(AutofillType(PHONE_HOME_CITY_CODE), "US")); in TEST()
153 EXPECT_FALSE(number1.SetInfo(AutofillType(ADDRESS_BILLING_CITY), in TEST()
[all …]
Daddress_unittest.cc23 address.GetInfo(AutofillType(ADDRESS_HOME_COUNTRY), "en-US"); in TEST()
27 AutofillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("US"), "en-US"); in TEST()
28 country = address.GetInfo(AutofillType(ADDRESS_HOME_COUNTRY), "en-US"); in TEST()
31 AutofillType(HTML_TYPE_COUNTRY_NAME, HTML_MODE_NONE), "en-US"); in TEST()
34 AutofillType(HTML_TYPE_COUNTRY_CODE, HTML_MODE_NONE), "en-US"); in TEST()
38 country = address.GetInfo(AutofillType(ADDRESS_HOME_COUNTRY), "en-US"); in TEST()
41 AutofillType(HTML_TYPE_COUNTRY_NAME, HTML_MODE_NONE), "en-US"); in TEST()
44 AutofillType(HTML_TYPE_COUNTRY_CODE, HTML_MODE_NONE), "en-US"); in TEST()
55 AutofillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("United States"), in TEST()
58 address.GetInfo(AutofillType(ADDRESS_HOME_COUNTRY), "en-US"); in TEST()
[all …]
Dautofill_type.h16 class AutofillType {
18 explicit AutofillType(ServerFieldType field_type);
19 AutofillType(HtmlFieldType field_type, HtmlFieldMode mode);
20 AutofillType(const AutofillType& autofill_type);
21 AutofillType& operator=(const AutofillType& autofill_type);
Dautofill_type.cc11 AutofillType::AutofillType(ServerFieldType field_type) in AutofillType() function in autofill::AutofillType
24 AutofillType::AutofillType(HtmlFieldType field_type, HtmlFieldMode mode) in AutofillType() function in autofill::AutofillType
30 AutofillType::AutofillType(const AutofillType& autofill_type) { in AutofillType() function in autofill::AutofillType
34 AutofillType& AutofillType::operator=(const AutofillType& autofill_type) { in operator =()
44 FieldTypeGroup AutofillType::group() const { in group()
194 bool AutofillType::IsUnknown() const { in IsUnknown()
198 ServerFieldType AutofillType::GetStorableType() const { in GetStorableType()
374 ServerFieldType AutofillType::GetEquivalentBillingFieldType( in GetEquivalentBillingFieldType()
445 std::string AutofillType::ToString() const { in ToString()
Dautofill_profile.h50 virtual base::string16 GetInfo(const AutofillType& type,
52 virtual bool SetInfo(const AutofillType& type,
58 const AutofillType& type,
67 void GetMultiInfo(const AutofillType& type,
145 void GetMultiInfoImpl(const AutofillType& type,
179 const FormGroup* FormGroupForType(const AutofillType& type) const;
180 FormGroup* MutableFormGroupForType(const AutofillType& type);
Dform_group.cc23 if (GetInfo(AutofillType(*type), app_locale) == text) in GetMatchingTypes()
34 if (!GetInfo(AutofillType(*type), app_locale).empty()) in GetNonEmptyTypes()
39 base::string16 FormGroup::GetInfo(const AutofillType& type, in GetInfo()
44 bool FormGroup::SetInfo(const AutofillType& type, in SetInfo()
Dphone_number.cc71 DCHECK_EQ(PHONE_HOME, AutofillType(type).group()); in GetRawInfo()
83 DCHECK_EQ(PHONE_HOME, AutofillType(type).group()); in SetRawInfo()
100 base::string16 PhoneNumber::GetInfo(const AutofillType& type, in GetInfo()
135 bool PhoneNumber::SetInfo(const AutofillType& type, in SetInfo()
158 base::string16 number = GetInfo(AutofillType(PHONE_HOME_NUMBER), app_locale); in GetMatchingTypes()
168 GetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER), app_locale); in GetMatchingTypes()
189 bool PhoneNumber::PhoneCombineHelper::SetInfo(const AutofillType& type, in SetInfo()
Dform_group.h15 class AutofillType; variable
47 virtual base::string16 GetInfo(const AutofillType& type,
52 virtual bool SetInfo(const AutofillType& type,
/external/chromium_org/chrome/browser/ui/autofill/
Ddata_model_wrapper.cc34 input->initial_value = GetInfo(AutofillType(input->type)); in FillInputs()
38 base::string16 DataModelWrapper::GetInfoForDisplay(const AutofillType& type) in GetInfoForDisplay()
82 base::string16 address = GetInfoForDisplay(AutofillType(NAME_FULL)) + in GetAddressDisplayText()
83 separator + GetInfoForDisplay(AutofillType(ADDRESS_HOME_LINE1)); in GetAddressDisplayText()
84 base::string16 address2 = GetInfoForDisplay(AutofillType(ADDRESS_HOME_LINE2)); in GetAddressDisplayText()
91 GetInfoForDisplay(AutofillType(ADDRESS_HOME_CITY)) + comma + in GetAddressDisplayText()
92 GetInfoForDisplay(AutofillType(ADDRESS_HOME_STATE)) + ASCIIToUTF16(" ") + in GetAddressDisplayText()
93 GetInfoForDisplay(AutofillType(ADDRESS_HOME_ZIP)); in GetAddressDisplayText()
95 base::string16 email = GetInfoForDisplay(AutofillType(EMAIL_ADDRESS)); in GetAddressDisplayText()
98 address += newline + GetInfoForDisplay(AutofillType(PHONE_HOME_WHOLE_NUMBER)); in GetAddressDisplayText()
[all …]
Ddata_model_wrapper.h22 class AutofillType; variable
44 virtual base::string16 GetInfo(const AutofillType& type) const = 0;
48 virtual base::string16 GetInfoForDisplay(const AutofillType& type) const;
90 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
101 const AutofillType& variant_type,
105 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
106 virtual base::string16 GetInfoForDisplay(const AutofillType& type) const
112 size_t GetVariantForType(const AutofillType& type) const;
131 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
143 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
[all …]
Ddata_model_wrapper_unittest.cc27 wrapper.GetInfo(AutofillType(CREDIT_CARD_EXP_MONTH))); in TEST()
69 wrapper.GetInfo(AutofillType(CREDIT_CARD_EXP_MONTH))); in TEST()
97 instrument_wrapper.GetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER))); in TEST()
101 address_wrapper.GetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER))); in TEST()
124 AutofillType(PHONE_HOME_WHOLE_NUMBER))); in TEST()
128 AutofillType(PHONE_HOME_WHOLE_NUMBER))); in TEST()
135 AutofillType(PHONE_HOME_WHOLE_NUMBER))); in TEST()
138 AutofillType(PHONE_HOME_WHOLE_NUMBER))); in TEST()
144 AutofillType(PHONE_HOME_WHOLE_NUMBER))); in TEST()
147 AutofillType(PHONE_HOME_WHOLE_NUMBER))); in TEST()
[all …]
Dautofill_dialog_common.cc22 const AutofillType& field_type) { in InputTypeMatchesFieldType()
39 AutofillType input_type = AutofillType(input.type); in InputTypeMatchesFieldType()
49 AutofillType field_type = field.Type(); in DetailInputMatchesField()
61 return AutofillType(type).group() == CREDIT_CARD; in IsCreditCardType()
211 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { in GetHardcodedValueForType()
/external/chromium_org/components/autofill/content/browser/wallet/
Dfull_wallet_unittest.cc457 full_wallet.GetInfo(AutofillType(CREDIT_CARD_NUMBER))); in TEST_F()
459 full_wallet.GetInfo(AutofillType(CREDIT_CARD_VERIFICATION_CODE))); in TEST_F()
475 full_wallet.GetInfo(AutofillType(CREDIT_CARD_NUMBER))); in TEST_F()
477 full_wallet.GetInfo(AutofillType(CREDIT_CARD_VERIFICATION_CODE))); in TEST_F()
491 full_wallet.GetInfo(AutofillType(CREDIT_CARD_EXP_2_DIGIT_YEAR))); in TEST_F()
495 AutofillType(CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR))); in TEST_F()
499 AutofillType(CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR))); in TEST_F()
505 full_wallet.GetInfo(AutofillType(CREDIT_CARD_TYPE))); in TEST_F()
515 full_wallet->GetInfo(AutofillType(CREDIT_CARD_NUMBER))); in TEST_F()
517 full_wallet->GetInfo(AutofillType(CREDIT_CARD_TYPE))); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/sync/test/integration/
Dtwo_client_autofill_sync_test.cc19 using autofill::AutofillType;
190 AutofillType(autofill::NAME_FIRST), in IN_PROC_BROWSER_TEST_F()
310 AutofillType(autofill::NAME_FIRST), in IN_PROC_BROWSER_TEST_F()
314 AutofillType(autofill::EMAIL_ADDRESS), in IN_PROC_BROWSER_TEST_F()
334 AutofillType(autofill::NAME_FIRST), in IN_PROC_BROWSER_TEST_F()
339 AutofillType(autofill::NAME_FIRST), in IN_PROC_BROWSER_TEST_F()
409 AutofillType(autofill::NAME_FIRST), in IN_PROC_BROWSER_TEST_F()
413 AutofillType(autofill::NAME_LAST), in IN_PROC_BROWSER_TEST_F()
417 AutofillType(autofill::EMAIL_ADDRESS), in IN_PROC_BROWSER_TEST_F()
421 AutofillType(autofill::ADDRESS_HOME_LINE1), in IN_PROC_BROWSER_TEST_F()
[all …]

1234