1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 * This file contains the list of field names that are used in @autocomplete
9 * attribute for <input>, <select> and <textarea> controls. It is designed
10 * to be used as inline input through the magic of C preprocessing.
12 * The first argument to AUTOCOMPLETE_* macro is the identifier for the token
13 * The second argument is the string value of the token
16 #ifndef AUTOCOMPLETE_FIELD_NAME
17 #define AUTOCOMPLETE_FIELD_NAME(name_, value_)
18 #define DEFINED_AUTOCOMPLETE_FIELD_NAME
21 #ifndef AUTOCOMPLETE_NO_PERSIST_FIELD_NAME
22 #define AUTOCOMPLETE_NO_PERSIST_FIELD_NAME(name_, value_)
23 #define DEFINED_AUTOCOMPLETE_NO_PERSIST_FIELD_NAME
26 #ifndef AUTOCOMPLETE_CONTACT_FIELD_NAME
27 #define AUTOCOMPLETE_CONTACT_FIELD_NAME(name_, value_)
28 #define DEFINED_AUTOCOMPLETE_CONTACT_FIELD_NAME
31 #ifndef AUTOCOMPLETE_FIELD_HINT
32 #define AUTOCOMPLETE_FIELD_HINT(name_, value_)
33 #define DEFINED_AUTOCOMPLETE_FIELD_HINT
36 #ifndef AUTOCOMPLETE_FIELD_CONTACT_HINT
37 #define AUTOCOMPLETE_FIELD_CONTACT_HINT(name_, value_)
38 #define DEFINED_AUTOCOMPLETE_FIELD_CONTACT_HINT
41 #ifndef AUTOCOMPLETE_CATEGORY
42 #define AUTOCOMPLETE_CATEGORY(name_, value_)
43 #define DEFINED_AUTOCOMPLETE_CATEGORY
46 #ifndef AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME
47 #define AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(name_, value_)
48 #define DEFINED_AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME
51 #ifndef AUTOCOMPLETE_UNSUPPORTED_FIELD_CONTACT_HINT
52 #define AUTOCOMPLETE_UNSUPPORTED_FIELD_CONTACT_HINT(name_, value_)
53 #define DEFINED_AUTOCOMPLETE_UNSUPPORTED_FIELD_CONTACT_HINT
56 //-----------------------------------------------------
59 // Unsupported field names
60 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(HONORIFIX_PREFIX
, "honorifix-prefix")
61 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(HONORIFIX_SUFFIX
, "honorifix-suffix")
62 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(NICKNAME
, "nickname")
63 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(ORGANIZATION_TITLE
, "organization-title")
64 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(USERNAME
, "username")
65 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(NEW_PASSWORD
, "new-password")
66 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(CURRENT_PASSWORD
, "current-password")
67 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(ADDRESS_LEVEL4
, "address-level4")
68 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(CC_GIVEN_NAME
, "cc-given-name")
69 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(CC_ADDITIONAL_NAME
, "cc-additional-name")
70 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(CC_FAMILY_NAME
, "cc-family-name")
71 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(CC_CSC
, "cc-csc")
72 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(CC_TYPE
, "cc-type")
73 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(TRANSACTION_CURRENCY
,
74 "transaction-currency")
75 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(TRANSACTION_AMOUNT
, "transaction-amount")
76 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(LANGUAGE
, "language")
77 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(BDAY
, "bday")
78 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(BDAY_DAY
, "bday-day")
79 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(BDAY_MONTH
, "bday-month")
80 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(BDAY_YEAR
, "bday-year")
81 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(SEX
, "sex")
82 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(URL
, "url")
83 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(PHOTO
, "photo")
84 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(TEL_EXTENSION
, "tel-extension")
85 AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME(IMPP
, "impp")
87 // Unsupported contact types
88 AUTOCOMPLETE_UNSUPPORTED_FIELD_CONTACT_HINT(FAX
, "fax")
89 AUTOCOMPLETE_UNSUPPORTED_FIELD_CONTACT_HINT(PAGER
, "pager")
91 //-----------------------------------------------------
94 AUTOCOMPLETE_FIELD_NAME(OFF
, "off")
95 AUTOCOMPLETE_FIELD_NAME(ON
, "on")
98 AUTOCOMPLETE_FIELD_NAME(NAME
, "name")
99 AUTOCOMPLETE_FIELD_NAME(HONORIFIX_PREFIX
, "honorifix-prefix")
100 AUTOCOMPLETE_FIELD_NAME(GIVEN_NAME
, "given-name")
101 AUTOCOMPLETE_FIELD_NAME(ADDITIONAL_NAME
, "additional-name")
102 AUTOCOMPLETE_FIELD_NAME(FAMILY_NAME
, "family-name")
103 AUTOCOMPLETE_FIELD_NAME(HONORIFIX_SUFFIX
, "honorifix-suffix")
104 AUTOCOMPLETE_FIELD_NAME(NICKNAME
, "nickname")
105 AUTOCOMPLETE_FIELD_NAME(ORGANIZATION_TITLE
, "organization-title")
108 AUTOCOMPLETE_FIELD_NAME(USERNAME
, "username")
109 AUTOCOMPLETE_FIELD_NAME(NEW_PASSWORD
, "new-password")
110 AUTOCOMPLETE_FIELD_NAME(CURRENT_PASSWORD
, "current-password")
113 AUTOCOMPLETE_FIELD_NAME(ORGANIZATION
, "organization")
114 AUTOCOMPLETE_FIELD_NAME(STREET_ADDRESS
, "street-address")
115 AUTOCOMPLETE_FIELD_NAME(ADDRESS_LINE1
, "address-line1")
116 AUTOCOMPLETE_FIELD_NAME(ADDRESS_LINE2
, "address-line2")
117 AUTOCOMPLETE_FIELD_NAME(ADDRESS_LINE3
, "address-line3")
118 AUTOCOMPLETE_FIELD_NAME(ADDRESS_LEVEL4
, "address-level4")
119 AUTOCOMPLETE_FIELD_NAME(ADDRESS_LEVEL3
, "address-level3")
120 AUTOCOMPLETE_FIELD_NAME(ADDRESS_LEVEL2
, "address-level2")
121 AUTOCOMPLETE_FIELD_NAME(ADDRESS_LEVEL1
, "address-level1")
122 AUTOCOMPLETE_FIELD_NAME(COUNTRY
, "country")
123 AUTOCOMPLETE_FIELD_NAME(COUNTRY_NAME
, "country-name")
124 AUTOCOMPLETE_FIELD_NAME(POSTAL_CODE
, "postal-code")
127 AUTOCOMPLETE_FIELD_NAME(CC_NAME
, "cc-name")
128 AUTOCOMPLETE_FIELD_NAME(CC_GIVEN_NAME
, "cc-given-name")
129 AUTOCOMPLETE_FIELD_NAME(CC_ADDITIONAL_NAME
, "cc-additional-name")
130 AUTOCOMPLETE_FIELD_NAME(CC_FAMILY_NAME
, "cc-family-name")
131 AUTOCOMPLETE_FIELD_NAME(CC_NUMBER
, "cc-number")
132 AUTOCOMPLETE_FIELD_NAME(CC_EXP
, "cc-exp")
133 AUTOCOMPLETE_FIELD_NAME(CC_EXP_MONTH
, "cc-exp-month")
134 AUTOCOMPLETE_FIELD_NAME(CC_EXP_YEAR
, "cc-exp-year")
135 AUTOCOMPLETE_FIELD_NAME(CC_CSC
, "cc-csc")
136 AUTOCOMPLETE_FIELD_NAME(CC_TYPE
, "cc-type")
139 AUTOCOMPLETE_FIELD_NAME(TRANSACTION_CURRENCY
, "transaction-currency")
140 AUTOCOMPLETE_FIELD_NAME(TRANSACTION_AMOUNT
, "transaction-amount")
142 // Additional field types
143 AUTOCOMPLETE_FIELD_NAME(LANGUAGE
, "language")
144 AUTOCOMPLETE_FIELD_NAME(BDAY
, "bday")
145 AUTOCOMPLETE_FIELD_NAME(BDAY_DAY
, "bday-day")
146 AUTOCOMPLETE_FIELD_NAME(BDAY_MONTH
, "bday-month")
147 AUTOCOMPLETE_FIELD_NAME(BDAY_YEAR
, "bday-year")
148 AUTOCOMPLETE_FIELD_NAME(SEX
, "sex")
149 AUTOCOMPLETE_FIELD_NAME(URL
, "url")
150 AUTOCOMPLETE_FIELD_NAME(PHOTO
, "photo")
152 // Field for which we don't want to automatically persist the value e.g. in
153 // session/form history.
154 AUTOCOMPLETE_NO_PERSIST_FIELD_NAME(OFF
, "off")
156 AUTOCOMPLETE_NO_PERSIST_FIELD_NAME(CURRENT_PASSWORD
, "current-password")
157 AUTOCOMPLETE_NO_PERSIST_FIELD_NAME(NEW_PASSWORD
, "new-password")
158 // credit card numbers
159 AUTOCOMPLETE_NO_PERSIST_FIELD_NAME(CC_NUMBER
, "cc-number")
160 AUTOCOMPLETE_NO_PERSIST_FIELD_NAME(CC_CSC
, "cc-csc")
162 // Contact category types
163 AUTOCOMPLETE_CONTACT_FIELD_NAME(TEL
, "tel")
164 AUTOCOMPLETE_CONTACT_FIELD_NAME(TEL_COUNTRY_CODE
, "tel-country-code")
165 AUTOCOMPLETE_CONTACT_FIELD_NAME(TEL_NATIONAL
, "tel-national")
166 AUTOCOMPLETE_CONTACT_FIELD_NAME(TEL_AREA_CODE
, "tel-area-code")
167 AUTOCOMPLETE_CONTACT_FIELD_NAME(TEL_LOCAL
, "tel-local")
168 AUTOCOMPLETE_CONTACT_FIELD_NAME(TEL_LOCAL_PREFIX
, "tel-local-prefix")
169 AUTOCOMPLETE_CONTACT_FIELD_NAME(TEL_LOCAL_SUFFIX
, "tel-local-suffix")
170 AUTOCOMPLETE_CONTACT_FIELD_NAME(TEL_EXTENSION
, "tel-extension")
171 AUTOCOMPLETE_CONTACT_FIELD_NAME(EMAIL
, "email")
172 AUTOCOMPLETE_CONTACT_FIELD_NAME(IMPP
, "impp")
174 AUTOCOMPLETE_FIELD_HINT(SHIPPING
, "shipping")
175 AUTOCOMPLETE_FIELD_HINT(BILLING
, "billing")
177 AUTOCOMPLETE_FIELD_CONTACT_HINT(HOME
, "home")
178 AUTOCOMPLETE_FIELD_CONTACT_HINT(WORK
, "work")
179 AUTOCOMPLETE_FIELD_CONTACT_HINT(MOBILE
, "mobile")
180 AUTOCOMPLETE_FIELD_CONTACT_HINT(FAX
, "fax")
181 AUTOCOMPLETE_FIELD_CONTACT_HINT(PAGER
, "pager")
183 AUTOCOMPLETE_CATEGORY(NORMAL
, "normal")
184 AUTOCOMPLETE_CATEGORY(CONTACT
, "contact")
185 //-----------------------------------------------------
187 #ifdef DEFINED_AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME
188 #undef AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME
189 #undef DEFINED_AUTOCOMPLETE_UNSUPPORTED_FIELD_NAME
192 #ifdef DEFINED_AUTOCOMPLETE_UNSUPPORTED_FIELD_CONTACT_HINT
193 #undef AUTOCOMPLETE_UNSUPPORTED_FIELD_CONTACT_HINT
194 #undef DEFINED_AUTOCOMPLETE_UNSUPPORTED_FIELD_CONTACT_HINT
197 #ifdef DEFINED_AUTOCOMPLETE_FIELD_NAME
198 #undef AUTOCOMPLETE_FIELD_NAME
199 #undef DEFINED_AUTOCOMPLETE_FIELD_NAME
202 #ifdef DEFINED_AUTOCOMPLETE_NO_PERSIST_FIELD_NAME
203 #undef AUTOCOMPLETE_NO_PERSIST_FIELD_NAME
204 #undef DEFINED_AUTOCOMPLETE_NO_PERSIST_FIELD_NAME
207 #ifdef DEFINED_AUTOCOMPLETE_CONTACT_FIELD_NAME
208 #undef AUTOCOMPLETE_CONTACT_FIELD_NAME
209 #undef DEFINED_AUTOCOMPLETE_CONTACT_FIELD_NAME
212 #ifdef DEFINED_AUTOCOMPLETE_FIELD_HINT
213 #undef AUTOCOMPLETE_FIELD_HINT
214 #undef DEFINED_AUTOCOMPLETE_FIELD_HINT
217 #ifdef DEFINED_AUTOCOMPLETE_FIELD_CONTACT_HINT
218 #undef AUTOCOMPLETE_FIELD_CONTACT_HINT
219 #undef DEFINED_AUTOCOMPLETE_FIELD_CONTACT_HINT
222 #ifdef DEFINED_AUTOCOMPLETE_CATEGORY
223 #undef AUTOCOMPLETE_CATEGORY
224 #undef DEFINED_AUTOCOMPLETE_CATEGORY