Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4000)

Unified Diff: chrome/browser/autofill/autofill_field.h

Issue 7613015: Add preliminary Autofill support for 'autocompletetype' sections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Line unwrapping Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_field.h
diff --git a/chrome/browser/autofill/autofill_field.h b/chrome/browser/autofill/autofill_field.h
index a875c9944bfe48823fd15d45c57ae9c8fd4cd12e..08ed126ad1d457b09099170ecd965319dfbeec7b 100644
--- a/chrome/browser/autofill/autofill_field.h
+++ b/chrome/browser/autofill/autofill_field.h
@@ -22,11 +22,13 @@ class AutofillField : public webkit_glue::FormField {
const string16& unique_name() const { return unique_name_; }
+ const string16& section() const { return section_; }
AutofillFieldType heuristic_type() const { return heuristic_type_; }
AutofillFieldType server_type() const { return server_type_; }
const FieldTypeSet& possible_types() const { return possible_types_; }
// Sets the heuristic type of this field, validating the input.
+ void set_section(const string16& section) { section_ = section; }
void set_heuristic_type(AutofillFieldType type);
void set_server_type(AutofillFieldType type) { server_type_ = type; }
void set_possible_types(const FieldTypeSet& possible_types) {
@@ -52,6 +54,10 @@ class AutofillField : public webkit_glue::FormField {
// The unique name of this field, generated by Autofill.
string16 unique_name_;
+ // The unique identifier for the section (e.g. billing vs. shipping address)
+ // that this field belongs to.
+ string16 section_;
+
// The type of the field, as determined by the Autofill server.
AutofillFieldType server_type_;
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698