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

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

Issue 11539003: Pop up requestAutocomplete UI when autofill server hints chrome client that it is in a multipage au… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resolve with AutofillDialogController refactoring. Created 7 years, 11 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 | « chrome/browser/autofill/autofill_xml_parser_unittest.cc ('k') | chrome/browser/autofill/form_structure.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/form_structure.h
diff --git a/chrome/browser/autofill/form_structure.h b/chrome/browser/autofill/form_structure.h
index 45cf2bbcc365e51c6ed7d834dd741a4181d81d3c..2b47756a0d936fad7e196883a6e7fd42822e1b0e 100644
--- a/chrome/browser/autofill/form_structure.h
+++ b/chrome/browser/autofill/form_structure.h
@@ -124,6 +124,14 @@ class FormStructure {
void ParseFieldTypesFromAutocompleteAttributes(bool* found_types,
bool* found_sections);
+ // Returns true if the autofill server says that the current page is start of
+ // the autofillable flow.
+ bool IsStartOfAutofillableFlow() const;
+
+ // Returns true if the autofill server says that the current page is in the
+ // autofillable flow.
+ bool IsInAutofillableFlow() const;
+
const AutofillField* field(size_t index) const;
AutofillField* field(size_t index);
size_t field_count() const;
@@ -208,6 +216,14 @@ class FormStructure {
// GET or POST.
RequestMethod method_;
+ // Page number of the autofill flow this form belongs to (zero-indexed).
+ // If this form doesn't belong to any autofill flow, it is set to -1.
+ int current_page_number_;
+
+ // Total number of pages in the autofill flow. If this form doesn't belong
+ // to any autofill flow, it is set to -1.
+ int total_pages_;
+
// Whether the form includes any field types explicitly specified by the site
// author, via the |autocompletetype| attribute.
bool has_author_specified_types_;
« no previous file with comments | « chrome/browser/autofill/autofill_xml_parser_unittest.cc ('k') | chrome/browser/autofill/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698