| 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..0576473bcf346c3eeff76a0b8666cc34e3edadd8
|
| --- /dev/null
|
| +++ b/components/autofill/content/public/interfaces/autofill_types.mojom
|
| @@ -0,0 +1,57 @@
|
| +// 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::CheckStatus
|
| +enum CheckStatus {
|
| + NOT_CHECKABLE,
|
| + CHECKABLE_BUT_UNCHECKED,
|
| + CHECKED
|
| +};
|
| +
|
| +// 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;
|
| + CheckStatus check_status;
|
| + 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;
|
| +};
|
|
|