OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module autofill.mojom; | 5 module autofill.mojom; |
6 | 6 |
| 7 import "mojo/common/text_direction.mojom"; |
7 import "mojo/common/time.mojom"; | 8 import "mojo/common/time.mojom"; |
8 import "url/mojo/origin.mojom"; | 9 import "url/mojo/origin.mojom"; |
9 import "url/mojo/url.mojom"; | 10 import "url/mojo/url.mojom"; |
10 | 11 |
11 // autofill::FormFieldData::CheckStatus | 12 // autofill::FormFieldData::CheckStatus |
12 enum CheckStatus { | 13 enum CheckStatus { |
13 NOT_CHECKABLE, | 14 NOT_CHECKABLE, |
14 CHECKABLE_BUT_UNCHECKED, | 15 CHECKABLE_BUT_UNCHECKED, |
15 CHECKED | 16 CHECKED |
16 }; | 17 }; |
17 | 18 |
18 // autofill::FormFieldData::RoleAttribute | 19 // autofill::FormFieldData::RoleAttribute |
19 enum RoleAttribute { | 20 enum RoleAttribute { |
20 ROLE_ATTRIBUTE_PRESENTATION, | 21 ROLE_ATTRIBUTE_PRESENTATION, |
21 ROLE_ATTRIBUTE_OTHER | 22 ROLE_ATTRIBUTE_OTHER |
22 }; | 23 }; |
23 | 24 |
24 // base::i18n::TextDirection | |
25 enum TextDirection { | |
26 UNKNOWN_DIRECTION = 0, | |
27 RIGHT_TO_LEFT = 1, | |
28 LEFT_TO_RIGHT = 2, | |
29 TEXT_DIRECTION_NUM_DIRECTIONS = 3 | |
30 }; | |
31 | |
32 // autofill::PasswordForm::GenerationUploadStatus | 25 // autofill::PasswordForm::GenerationUploadStatus |
33 enum GenerationUploadStatus { | 26 enum GenerationUploadStatus { |
34 NO_SIGNAL_SENT, | 27 NO_SIGNAL_SENT, |
35 POSITIVE_SIGNAL_SENT, | 28 POSITIVE_SIGNAL_SENT, |
36 NEGATIVE_SIGNAL_SENT, | 29 NEGATIVE_SIGNAL_SENT, |
37 UNKNOWN_STATUS = 10 | 30 UNKNOWN_STATUS = 10 |
38 }; | 31 }; |
39 | 32 |
40 // autofill::PasswordForm::Layout | 33 // autofill::PasswordForm::Layout |
41 enum PasswordFormLayout { | 34 enum PasswordFormLayout { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 string placeholder; | 70 string placeholder; |
78 string css_classes; | 71 string css_classes; |
79 uint32 properties_mask; | 72 uint32 properties_mask; |
80 | 73 |
81 uint64 max_length; | 74 uint64 max_length; |
82 bool is_autofilled; | 75 bool is_autofilled; |
83 CheckStatus check_status; | 76 CheckStatus check_status; |
84 bool is_focusable; | 77 bool is_focusable; |
85 bool should_autocomplete; | 78 bool should_autocomplete; |
86 RoleAttribute role; | 79 RoleAttribute role; |
87 TextDirection text_direction; | 80 mojo.common.mojom.TextDirection text_direction; |
88 | 81 |
89 array<string> option_values; | 82 array<string> option_values; |
90 array<string> option_contents; | 83 array<string> option_contents; |
91 }; | 84 }; |
92 | 85 |
93 // autofill::FormData | 86 // autofill::FormData |
94 struct FormData { | 87 struct FormData { |
95 string name; | 88 string name; |
96 url.mojom.Url origin; | 89 url.mojom.Url origin; |
97 url.mojom.Url action; | 90 url.mojom.Url action; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 array<PasswordFormFieldPredictionType> values; | 194 array<PasswordFormFieldPredictionType> values; |
202 }; | 195 }; |
203 | 196 |
204 // TODO(leonhsl): Use map directly after http://crbug.com/628104 solved. | 197 // TODO(leonhsl): Use map directly after http://crbug.com/628104 solved. |
205 // autofill::FormsPredictionsMap | 198 // autofill::FormsPredictionsMap |
206 // --> std::map<FormData, PasswordFormFieldPredictionMap> | 199 // --> std::map<FormData, PasswordFormFieldPredictionMap> |
207 struct FormsPredictionsMap { | 200 struct FormsPredictionsMap { |
208 array<FormData> keys; | 201 array<FormData> keys; |
209 array<PasswordFormFieldPredictionMap> values; | 202 array<PasswordFormFieldPredictionMap> values; |
210 }; | 203 }; |
OLD | NEW |