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

Unified Diff: components/autofill/content/common/autofill_message_generator.h

Issue 2352533003: [Autofill] Migrate ChromePasswordManagerClient<-->PasswordGenerationAgent IPCs to mojo. (Closed)
Patch Set: Fix browser_tests Created 4 years, 3 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/common/autofill_message_generator.h
diff --git a/components/autofill/content/common/autofill_message_generator.h b/components/autofill/content/common/autofill_message_generator.h
index 2c428f1d646cb8b476561cc41e6b71e21edb87a2..46f0e0c01a2357db5e6957059382333206c6e654 100644
--- a/components/autofill/content/common/autofill_message_generator.h
+++ b/components/autofill/content/common/autofill_message_generator.h
@@ -4,4 +4,36 @@
// Multiply-included file, hence no include guard.
-#include "components/autofill/content/common/autofill_messages.h"
+#include "components/autofill/content/common/autofill_param_traits_macros.h"
+#include "components/autofill/core/common/form_field_data.h"
+#include "ipc/ipc_message_macros.h"
+#include "ipc/ipc_message_utils.h"
+
+IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::CheckStatus,
+ autofill::FormFieldData::CheckStatus::CHECKED)
+
+IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute,
+ autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER)
+
+IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection,
+ base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1)
+
+IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData)
+ IPC_STRUCT_TRAITS_MEMBER(label)
+ IPC_STRUCT_TRAITS_MEMBER(name)
+ IPC_STRUCT_TRAITS_MEMBER(value)
+ IPC_STRUCT_TRAITS_MEMBER(form_control_type)
+ IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute)
+ IPC_STRUCT_TRAITS_MEMBER(placeholder)
+ IPC_STRUCT_TRAITS_MEMBER(role)
+ IPC_STRUCT_TRAITS_MEMBER(max_length)
+ IPC_STRUCT_TRAITS_MEMBER(is_autofilled)
+ IPC_STRUCT_TRAITS_MEMBER(check_status)
+ IPC_STRUCT_TRAITS_MEMBER(is_focusable)
+ IPC_STRUCT_TRAITS_MEMBER(should_autocomplete)
+ IPC_STRUCT_TRAITS_MEMBER(text_direction)
+ IPC_STRUCT_TRAITS_MEMBER(option_values)
+ IPC_STRUCT_TRAITS_MEMBER(option_contents)
+ IPC_STRUCT_TRAITS_MEMBER(css_classes)
+ IPC_STRUCT_TRAITS_MEMBER(properties_mask)
+IPC_STRUCT_TRAITS_END()

Powered by Google App Engine
This is Rietveld 408576698