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

Unified Diff: components/autofill/content/renderer/form_autofill_util.h

Issue 140093005: Add supports that allow Autofill to be initiated from textarea field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Condition wrap correction Created 6 years, 9 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
Index: components/autofill/content/renderer/form_autofill_util.h
diff --git a/components/autofill/content/renderer/form_autofill_util.h b/components/autofill/content/renderer/form_autofill_util.h
index f3384f1d803b955c4759d6204b02db083b6257fc..0f0f6c2e134ba13cfde638658a9925f5056605d8 100644
--- a/components/autofill/content/renderer/form_autofill_util.h
+++ b/components/autofill/content/renderer/form_autofill_util.h
@@ -116,15 +116,16 @@ bool WebFormElementToFormData(
// Finds the form that contains |element| and returns it in |form|. Fills
// |field| with the |FormField| representation for element.
// Returns false if the form is not found or cannot be serialized.
-bool FindFormAndFieldForInputElement(const blink::WebInputElement& element,
- FormData* form,
- FormFieldData* field,
- RequirementsMask requirements);
+bool FindFormAndFieldForFormControlElement(
+ const blink::WebFormControlElement& element,
+ FormData* form,
+ FormFieldData* field,
+ RequirementsMask requirements);
// Fills the form represented by |form|. |element| is the input element that
// initiated the auto-fill process.
void FillForm(const FormData& form,
- const blink::WebInputElement& element);
+ const blink::WebFormControlElement& element);
// Fills focusable and non-focusable form control elements within |form_element|
// with field data from |form_data|.
@@ -141,13 +142,13 @@ void FillFormForAllElements(
// Previews the form represented by |form|. |element| is the input element that
// initiated the preview process.
void PreviewForm(const FormData& form,
- const blink::WebInputElement& element);
+ const blink::WebFormControlElement& element);
// Clears the placeholder values and the auto-filled background for any fields
// in the form containing |node| that have been previewed. Resets the
// autofilled state of |node| to |was_autofilled|. Returns false if the form is
// not found.
-bool ClearPreviewedFormWithElement(const blink::WebInputElement& element,
+bool ClearPreviewedFormWithElement(const blink::WebFormControlElement& element,
bool was_autofilled);
// Returns true if |form| has any auto-filled fields.
@@ -169,7 +170,8 @@ bool IsWebpageEmpty(const blink::WebFrame* frame);
bool IsWebElementEmpty(const blink::WebElement& element);
// Return a gfx::RectF that is the bounding box for |element| scaled by |scale|.
-gfx::RectF GetScaledBoundingBox(float scale, blink::WebInputElement* element);
+gfx::RectF GetScaledBoundingBox(float scale,
+ blink::WebFormControlElement* element);
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698