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

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

Issue 11415221: Add support for autofilling radio buttons and checkboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More fixes Created 8 years 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 395f8ed90a0312b5dab18d377fbe16a100631b88..0174688cf3c5a92bafc3846f19d2d72e50c2bf64 100644
--- a/chrome/renderer/autofill/form_autofill_util.h
+++ b/chrome/renderer/autofill/form_autofill_util.h
@@ -52,6 +52,16 @@ bool IsTextInput(const WebKit::WebInputElement* element);
// Returns true if |element| is a select element.
bool IsSelectElement(const WebKit::WebFormControlElement& element);
+// Returns true if |element| is a radio button element.
+bool IsRadioButtonElement(const WebKit::WebInputElement* element);
+
+// Returns true if |element| is a checkbox element
+bool IsCheckboxElement(const WebKit::WebInputElement* element);
Ilya Sherman 2012/12/12 00:26:44 Optional nit: Since you always check these two fun
Raman Kakilate 2012/12/12 01:22:04 Done.
+
+// Returns true if |element| is one of the input element that can be autofilled.
+// {Text, Radiobutton, Checkbox}
+bool IsAutofillableInputElement(const WebKit::WebInputElement* element);
+
// Returns the form's |name| attribute if non-empty; otherwise the form's |id|
// attribute.
const string16 GetFormIdentifier(const WebKit::WebFormElement& form);

Powered by Google App Engine
This is Rietveld 408576698