blob: 81914e1a96c94432a00802ae47a0aef7b1ca4dfe [file] [log] [blame]
// ui/accessibility/mojom/ax_node_id.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_MOJOM_AX_NODE_ID_MOJOM_SHARED_H_
#define UI_ACCESSIBILITY_MOJOM_AX_NODE_ID_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "ui/accessibility/mojom/ax_node_id.mojom-shared-internal.h"
#include "ui/accessibility/mojom/ax_node_id.mojom-data-view.h"
#ifdef KYTHE_IS_RUNNING
#pragma kythe_inline_metadata "Metadata comment"
#endif
namespace std {
} // namespace std
namespace mojo {
namespace internal {
template <typename MaybeConstUserType>
struct Serializer<::ax::mojom::AXNodeIDDataView, MaybeConstUserType> {
using UserType = typename std::remove_const<MaybeConstUserType>::type;
using Traits = StructTraits<::ax::mojom::AXNodeIDDataView, UserType>;
static void Serialize(
MaybeConstUserType& input,
mojo::internal::MessageFragment<::ax::mojom::internal::AXNodeID_Data>& fragment) {
if (CallIsNullIfExists<Traits>(input))
return;
fragment.Allocate();
fragment->value = Traits::value(input);
}
static bool Deserialize(::ax::mojom::internal::AXNodeID_Data* input,
UserType* output,
Message* message) {
if (!input)
return CallSetToNullIfExists<Traits>(output);
::ax::mojom::AXNodeIDDataView data_view(input, message);
return Traits::Read(data_view, output);
}
};
} // namespace internal
} // namespace mojo
namespace ax::mojom {
} // ax::mojom
// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.
#endif // UI_ACCESSIBILITY_MOJOM_AX_NODE_ID_MOJOM_SHARED_H_
/* Metadata comment
eyJ0eXBlIjogImt5dGhlMCIsICJtZXRhIjogW119
*/