diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-09 04:11:09 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-09 04:11:09 +0000 |
commit | 3347bab3eed62551354d0d49c5f1f185244a9bb1 (patch) | |
tree | 5754965971d9c1fa84616af38ffe35f354ddaebe /chrome/renderer/form_manager.h | |
parent | 70d38b09d6f504b6a47b4d0e8f0a9b2f5d615373 (diff) | |
download | chromium_src-3347bab3eed62551354d0d49c5f1f185244a9bb1.zip chromium_src-3347bab3eed62551354d0d49c5f1f185244a9bb1.tar.gz chromium_src-3347bab3eed62551354d0d49c5f1f185244a9bb1.tar.bz2 |
AutoFill: Delay sending the form field values to the AutoFillManager until they're needed.
BUG=40306
TEST=none
Review URL: http://codereview.chromium.org/1626009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44055 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/form_manager.h')
-rw-r--r-- | chrome/renderer/form_manager.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/renderer/form_manager.h b/chrome/renderer/form_manager.h index 3842450..e1176bc 100644 --- a/chrome/renderer/form_manager.h +++ b/chrome/renderer/form_manager.h @@ -35,18 +35,22 @@ class FormManager { virtual ~FormManager(); // Fills out a FormField object from a given WebFormControlElement. + // If |get_value| is true, |field| will have the value set from |element|. static void WebFormControlElementToFormField( const WebKit::WebFormControlElement& element, + bool get_value, webkit_glue::FormField* field); - // Fills out a FormData object from a given WebFormElement. Returns true if - // |form| is filled out; it's possible that |element| won't meet the + // Fills out a FormData object from a given WebFormElement. If |get_values| + // is true, the fields in |form| will have the values filled out. Returns + // true if |form| is filled out; it's possible that |element| won't meet the // requirements in |requirements|. This also returns false if there are no // fields in |form|. // TODO(jhawkins): Remove the user of this in RenderView and move this to // private. static bool WebFormElementToFormData(const WebKit::WebFormElement& element, RequirementsMask requirements, + bool get_values, webkit_glue::FormData* form); // Scans the DOM in |frame| extracting and storing forms. |