diff options
author | ramankk@chromium.org <ramankk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 10:08:45 +0000 |
---|---|---|
committer | ramankk@chromium.org <ramankk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 10:08:45 +0000 |
commit | b32c7e7452dd53a9907083ae6a09523400197419 (patch) | |
tree | 41d272ec478ea77374ce7d06ae088c30f236383f /chrome/browser/autofill/field_types.h | |
parent | 8f3119100192dff88fb3e4e563a4852349c00e7b (diff) | |
download | chromium_src-b32c7e7452dd53a9907083ae6a09523400197419.zip chromium_src-b32c7e7452dd53a9907083ae6a09523400197419.tar.gz chromium_src-b32c7e7452dd53a9907083ae6a09523400197419.tar.bz2 |
Add support for autofilling radio buttons and checkboxes.
Autofill server is equiped with provision to say a field type as
FIELD_WITH_DEFAULT_VALUE and specify what value to use by default it
client wants to fill it. For radio buttons, if the default value
specified by the autofill server is same as its value, Chrome checks that
input element.
all changes are behind switch.
BUG=157636
Review URL: https://chromiumcodereview.appspot.com/11415221
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/field_types.h')
-rw-r--r-- | chrome/browser/autofill/field_types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/autofill/field_types.h b/chrome/browser/autofill/field_types.h index 832b94a..d45f1aa 100644 --- a/chrome/browser/autofill/field_types.h +++ b/chrome/browser/autofill/field_types.h @@ -6,6 +6,7 @@ #define CHROME_BROWSER_AUTOFILL_FIELD_TYPES_H_ #include <set> +#include <string> // NOTE: This list MUST not be modified. The server aggregates and stores these // types over several versions, so we must remain fully compatible with the @@ -77,9 +78,12 @@ enum AutofillFieldType { COMPANY_NAME = 60, + // Generic type whose default value is known. + FIELD_WITH_DEFAULT_VALUE = 61, + // No new types can be added. - MAX_VALID_FIELD_TYPE = 61, + MAX_VALID_FIELD_TYPE = 62, }; typedef std::set<AutofillFieldType> FieldTypeSet; |