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

Side by Side Diff: components/autofill/common/form_field_data.h

Issue 15769018: [Autofill] Determine Popup RTLness from page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compile Created 7 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_FORM_FIELD_DATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_COMMON_FORM_FIELD_DATA_H_
6 #define COMPONENTS_AUTOFILL_COMMON_FORM_FIELD_DATA_H_ 6 #define COMPONENTS_AUTOFILL_COMMON_FORM_FIELD_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 17 matching lines...) Expand all
28 base::string16 label; 28 base::string16 label;
29 base::string16 name; 29 base::string16 name;
30 base::string16 value; 30 base::string16 value;
31 std::string form_control_type; 31 std::string form_control_type;
32 std::string autocomplete_attribute; 32 std::string autocomplete_attribute;
33 size_t max_length; 33 size_t max_length;
34 bool is_autofilled; 34 bool is_autofilled;
35 bool is_checked; 35 bool is_checked;
36 bool is_checkable; 36 bool is_checkable;
37 bool is_focusable; 37 bool is_focusable;
38 bool is_rtl;
38 bool should_autocomplete; 39 bool should_autocomplete;
39 40
40 // For the HTML snippet |<option value="US">United States</option>|, the 41 // For the HTML snippet |<option value="US">United States</option>|, the
41 // value is "US" and the contents are "United States". 42 // value is "US" and the contents are "United States".
42 std::vector<base::string16> option_values; 43 std::vector<base::string16> option_values;
43 std::vector<base::string16> option_contents; 44 std::vector<base::string16> option_contents;
44 }; 45 };
45 46
46 // So we can compare FormFieldDatas with EXPECT_EQ(). 47 // So we can compare FormFieldDatas with EXPECT_EQ().
47 std::ostream& operator<<(std::ostream& os, const FormFieldData& field); 48 std::ostream& operator<<(std::ostream& os, const FormFieldData& field);
(...skipping 10 matching lines...) Expand all
58 EXPECT_EQ(expected.max_length, actual.max_length); \ 59 EXPECT_EQ(expected.max_length, actual.max_length); \
59 EXPECT_EQ(expected.is_autofilled, actual.is_autofilled); \ 60 EXPECT_EQ(expected.is_autofilled, actual.is_autofilled); \
60 EXPECT_EQ(expected.is_checked, actual.is_checked); \ 61 EXPECT_EQ(expected.is_checked, actual.is_checked); \
61 EXPECT_EQ(expected.is_checkable, actual.is_checkable); \ 62 EXPECT_EQ(expected.is_checkable, actual.is_checkable); \
62 } while (0) 63 } while (0)
63 64
64 } // namespace autofill 65 } // namespace autofill
65 66
66 #endif // COMPONENTS_AUTOFILL_COMMON_FORM_FIELD_DATA_H_ 67 #endif // COMPONENTS_AUTOFILL_COMMON_FORM_FIELD_DATA_H_
67 68
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698