| Index: components/autofill/content/public/interfaces/autofill_types.mojom
|
| diff --git a/components/autofill/content/public/interfaces/autofill_types.mojom b/components/autofill/content/public/interfaces/autofill_types.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..37a1e22105f6c82aabc00a6020cf82a5b8910b1a
|
| --- /dev/null
|
| +++ b/components/autofill/content/public/interfaces/autofill_types.mojom
|
| @@ -0,0 +1,51 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +module autofill.mojom;
|
| +
|
| +import "url/mojo/url.mojom";
|
| +
|
| +// autofill::FormFieldData::RoleAttribute
|
| +enum RoleAttribute {
|
| + ROLE_ATTRIBUTE_PRESENTATION,
|
| + ROLE_ATTRIBUTE_OTHER
|
| +};
|
| +
|
| +// base::i18n::TextDirection
|
| +enum TextDirection {
|
| + UNKNOWN_DIRECTION = 0,
|
| + RIGHT_TO_LEFT = 1,
|
| + LEFT_TO_RIGHT = 2,
|
| + TEXT_DIRECTION_NUM_DIRECTIONS = 3
|
| +};
|
| +
|
| +struct FormFieldData {
|
| + string label;
|
| + string name;
|
| + string value;
|
| + string form_control_type;
|
| + string autocomplete_attribute;
|
| + string placeholder;
|
| +
|
| + uint64 max_length;
|
| + bool is_autofilled;
|
| + bool is_checked;
|
| + bool is_checkable;
|
| + bool is_focusable;
|
| + bool should_autocomplete;
|
| + RoleAttribute role;
|
| + TextDirection text_direction;
|
| +
|
| + array<string> option_values;
|
| + array<string> option_contents;
|
| +};
|
| +
|
| +struct FormData {
|
| + string name;
|
| + url.mojom.Url origin;
|
| + url.mojom.Url action;
|
| + bool is_form_tag;
|
| + bool is_formless_checkout;
|
| + array<FormFieldData> fields;
|
| +};
|
|
|