summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/web_application_info_provider_param_traits.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/common/web_application_info_provider_param_traits.h')
-rw-r--r--chromium/chrome/common/web_application_info_provider_param_traits.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/chrome/common/web_application_info_provider_param_traits.h b/chromium/chrome/common/web_application_info_provider_param_traits.h
new file mode 100644
index 00000000000..f23ff915a9e
--- /dev/null
+++ b/chromium/chrome/common/web_application_info_provider_param_traits.h
@@ -0,0 +1,27 @@
+// Copyright 2017 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.
+
+// NOLINT(build/header_guard)
+// no-include-guard-because-multiply-included
+
+#include "chrome/common/web_application_info.h"
+#include "ipc/ipc_message_macros.h"
+
+IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable,
+ WebApplicationInfo::MOBILE_CAPABLE_APPLE)
+
+IPC_STRUCT_TRAITS_BEGIN(WebApplicationIconInfo)
+ IPC_STRUCT_TRAITS_MEMBER(url)
+ IPC_STRUCT_TRAITS_MEMBER(width)
+ IPC_STRUCT_TRAITS_MEMBER(height)
+ IPC_STRUCT_TRAITS_MEMBER(data)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo)
+ IPC_STRUCT_TRAITS_MEMBER(title)
+ IPC_STRUCT_TRAITS_MEMBER(description)
+ IPC_STRUCT_TRAITS_MEMBER(app_url)
+ IPC_STRUCT_TRAITS_MEMBER(icons)
+ IPC_STRUCT_TRAITS_MEMBER(mobile_capable)
+IPC_STRUCT_TRAITS_END()