|
[Autofill] Add a separate enumeration for HTML field type hints.
The Autofill code currently uses a single enum AutofillFieldType to describe all
field types. However, several of the field type hints provided in the HTML
autocomplete specification do not map nicely onto the native (server-supported)
field types.
This CL adds two new enumerations corresponding to the exact types specified in
the HTML5 spec, and updates the relevant code to map from these types to the
native types that Autofill understands.
Implementing support for properly filling 'country' and 'street-address' types
will come in subsequent CLs (which should be much smaller, whew!).
BUG= 254682, 261978
R=estade@chromium.org
TBR=zea@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216149
Total comments: 24
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+837 lines, -409 lines) |
Patch |
 |
M |
chrome/browser/autofill/form_structure_browsertest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/autofill_helper.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+21 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+35 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/autofill/data_model_wrapper.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+15 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_basic.html
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/autofill/heuristics/output/01_autocomplete_attribute_advanced.out
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/autofill/heuristics/output/01_autocomplete_attribute_basic.out
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+33 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/autofill/heuristics/output/01_autocomplete_attribute_invalid.out
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/autofill/heuristics/output/01_autocomplete_attribute_malicious.out
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/autofill/content/browser/autocheckout_manager.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+14 lines, -11 lines |
0 comments
|
Download
|
 |
M |
components/autofill/content/browser/wallet/full_wallet.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/content/browser/wallet/wallet_address.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/content/browser/wallet/wallet_items.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/address.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+52 lines, -38 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_data_model.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_field.h
|
View
|
1
2
|
2 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_field.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_field_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_manager.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_manager_unittest.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_merge_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_profile.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+16 lines, -20 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_type.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+24 lines, -10 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_type.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+267 lines, -16 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_type_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+49 lines, -12 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/contact_info.cc
|
View
|
1
2
3
4
|
1 chunk |
+39 lines, -24 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/credit_card.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/field_types.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/form_group.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/form_structure.h
|
View
|
1
2
|
2 chunks |
+2 lines, -12 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/form_structure.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
12 chunks |
+98 lines, -108 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/form_structure_unittest.cc
|
View
|
1
2
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/personal_data_manager.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/phone_number.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+16 lines, -20 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|