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

Side by Side 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: relative patchset 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_H_
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_H_ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 15 matching lines...) Expand all
26 // Comparison operator exposed for STL map. Uses label, then name to sort. 26 // Comparison operator exposed for STL map. Uses label, then name to sort.
27 bool operator<(const FormFieldData& field) const; 27 bool operator<(const FormFieldData& field) const;
28 28
29 // If you add more, be sure to update the comparison operator, SameFieldAs, 29 // If you add more, be sure to update the comparison operator, SameFieldAs,
30 // serializing functions (in the .cc file) and the constructor. 30 // serializing functions (in the .cc file) and the constructor.
31 base::string16 label; 31 base::string16 label;
32 base::string16 name; 32 base::string16 name;
33 base::string16 value; 33 base::string16 value;
34 std::string form_control_type; 34 std::string form_control_type;
35 std::string autocomplete_attribute; 35 std::string autocomplete_attribute;
36 std::string role;
36 size_t max_length; 37 size_t max_length;
37 bool is_autofilled; 38 bool is_autofilled;
38 bool is_checked; 39 bool is_checked;
39 bool is_checkable; 40 bool is_checkable;
40 bool is_focusable; 41 bool is_focusable;
41 bool should_autocomplete; 42 bool should_autocomplete;
42 base::i18n::TextDirection text_direction; 43 base::i18n::TextDirection text_direction;
43 44
44 // For the HTML snippet |<option value="US">United States</option>|, the 45 // For the HTML snippet |<option value="US">United States</option>|, the
45 // value is "US" and the contents are "United States". 46 // value is "US" and the contents are "United States".
(...skipping 22 matching lines...) Expand all
68 EXPECT_EQ(expected.autocomplete_attribute, actual.autocomplete_attribute); \ 69 EXPECT_EQ(expected.autocomplete_attribute, actual.autocomplete_attribute); \
69 EXPECT_EQ(expected.max_length, actual.max_length); \ 70 EXPECT_EQ(expected.max_length, actual.max_length); \
70 EXPECT_EQ(expected.is_autofilled, actual.is_autofilled); \ 71 EXPECT_EQ(expected.is_autofilled, actual.is_autofilled); \
71 EXPECT_EQ(expected.is_checked, actual.is_checked); \ 72 EXPECT_EQ(expected.is_checked, actual.is_checked); \
72 EXPECT_EQ(expected.is_checkable, actual.is_checkable); \ 73 EXPECT_EQ(expected.is_checkable, actual.is_checkable); \
73 } while (0) 74 } while (0)
74 75
75 } // namespace autofill 76 } // namespace autofill
76 77
77 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_H_ 78 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698