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

Unified Diff: chrome/renderer/autofill/form_autofill_util.h

Issue 11348273: [autofill] Fill in values on a successful run of interactive autocomplete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: isherman@ review Created 8 years, 1 month 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
Index: chrome/renderer/autofill/form_autofill_util.h
diff --git a/chrome/renderer/autofill/form_autofill_util.h b/chrome/renderer/autofill/form_autofill_util.h
index b63424f502b2d247904dc38f6327f75404d64046..ff3ce18d7bd8d8105435c9f653c678c46181db47 100644
--- a/chrome/renderer/autofill/form_autofill_util.h
+++ b/chrome/renderer/autofill/form_autofill_util.h
@@ -20,10 +20,11 @@ class WebInputElement;
namespace autofill {
-// A bit field mask for form requirements.
+// A bit field mask for form or form element requirements.
enum RequirementsMask {
- REQUIRE_NONE = 0, // No requirements.
- REQUIRE_AUTOCOMPLETE = 1, // Require that autocomplete != off.
+ REQUIRE_NONE = 0, // No requirements.
+ REQUIRE_AUTOCOMPLETE = 1 << 0, // Require that autocomplete != off.
+ REQUIRE_FOCUSABLE = 1 << 1, // Require that a form element be focusable.
Ilya Sherman 2012/11/30 04:04:54 Please add this to a separate enum, as it doesn't
Dan Beam 2012/11/30 04:13:33 changed to bool
};
// A bit field mask to extract data from WebFormControlElement.
@@ -98,6 +99,12 @@ bool FindFormAndFieldForInputElement(const WebKit::WebInputElement& element,
void FillForm(const FormData& form,
const WebKit::WebInputElement& element);
+// Fills focusable and non-focusable form control elements within |form_element|
+// with field data from |form_data|.
+void FillFormAndNonFocusableElements(
Ilya Sherman 2012/11/30 04:04:54 nit: Perhaps "including" rather than "and"? The n
Dan Beam 2012/11/30 04:13:33 Done.
+ const FormData& form_data,
+ const WebKit::WebFormElement& form_element);
+
// Previews the form represented by |form|. |element| is the input element that
// initiated the preview process.
void PreviewForm(const FormData& form,

Powered by Google App Engine
This is Rietveld 408576698