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

Unified Diff: components/autofill/content/public/interfaces/autofill_types.mojom

Issue 1999623002: [Autofill] Add typemap for autofill:FormFieldData and autofill::FormData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from dcheng Created 4 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 side-by-side diff with in-line comments
Download patch
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;
+};

Powered by Google App Engine
This is Rietveld 408576698