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

Unified Diff: components/autofill/core/common/form_field_data.h

Issue 734983006: Autofill - Fix Harry and David checkout: ignore role="presentation" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum Created 6 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
« no previous file with comments | « components/autofill/core/browser/form_field.cc ('k') | components/autofill/core/common/form_field_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/common/form_field_data.h
diff --git a/components/autofill/core/common/form_field_data.h b/components/autofill/core/common/form_field_data.h
index a443665653ddd3f74438a1539ace10eedad221e6..ef96b73a469473f268526d5f31566f7f938b5da1 100644
--- a/components/autofill/core/common/form_field_data.h
+++ b/components/autofill/core/common/form_field_data.h
@@ -17,6 +17,13 @@ namespace autofill {
// Stores information about a field in a form.
struct FormFieldData {
+ enum RoleAttribute {
+ // "presentation"
+ ROLE_ATTRIBUTE_PRESENTATION,
+ // Anything else.
+ ROLE_ATTRIBUTE_OTHER,
+ };
+
FormFieldData();
~FormFieldData();
@@ -39,6 +46,7 @@ struct FormFieldData {
bool is_checkable;
bool is_focusable;
bool should_autocomplete;
+ RoleAttribute role;
base::i18n::TextDirection text_direction;
// For the HTML snippet |<option value="US">United States</option>|, the
« no previous file with comments | « components/autofill/core/browser/form_field.cc ('k') | components/autofill/core/common/form_field_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698