chromium/out/Default/gen/ui/gfx/mojom/color_space.mojom-shared.h

// ui/gfx/mojom/color_space.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_GFX_MOJOM_COLOR_SPACE_MOJOM_SHARED_H_
#define UI_GFX_MOJOM_COLOR_SPACE_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/gfx/mojom/color_space.mojom-shared-internal.h"







namespace gfx::mojom {
class ColorSpaceDataView;



}  // gfx::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::gfx::mojom::ColorSpaceDataView> {};

}  // namespace internal
}  // namespace mojo


namespace gfx::mojom {


enum class ColorSpacePrimaryID : int32_t {};

 std::ostream& operator<<(std::ostream& os, ColorSpacePrimaryID value);
inline bool IsKnownEnumValue(ColorSpacePrimaryID value) {}


enum class ColorSpaceTransferID : int32_t {};

 std::ostream& operator<<(std::ostream& os, ColorSpaceTransferID value);
inline bool IsKnownEnumValue(ColorSpaceTransferID value) {}


enum class ColorSpaceMatrixID : int32_t {};

 std::ostream& operator<<(std::ostream& os, ColorSpaceMatrixID value);
inline bool IsKnownEnumValue(ColorSpaceMatrixID value) {}


enum class ColorSpaceRangeID : int32_t {};

 std::ostream& operator<<(std::ostream& os, ColorSpaceRangeID value);
inline bool IsKnownEnumValue(ColorSpaceRangeID value) {}


class ColorSpaceDataView {};


}  // gfx::mojom

namespace std {

template <>
struct hash<::gfx::mojom::ColorSpacePrimaryID>
    : public mojo::internal::EnumHashImpl<::gfx::mojom::ColorSpacePrimaryID> {};

template <>
struct hash<::gfx::mojom::ColorSpaceTransferID>
    : public mojo::internal::EnumHashImpl<::gfx::mojom::ColorSpaceTransferID> {};

template <>
struct hash<::gfx::mojom::ColorSpaceMatrixID>
    : public mojo::internal::EnumHashImpl<::gfx::mojom::ColorSpaceMatrixID> {};

template <>
struct hash<::gfx::mojom::ColorSpaceRangeID>
    : public mojo::internal::EnumHashImpl<::gfx::mojom::ColorSpaceRangeID> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::gfx::mojom::ColorSpacePrimaryID, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gfx::mojom::ColorSpaceTransferID, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gfx::mojom::ColorSpaceMatrixID, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gfx::mojom::ColorSpaceRangeID, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gfx::mojom::ColorSpaceDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace gfx::mojom {

inline void ColorSpaceDataView::GetCustomPrimaryMatrixDataView(
    mojo::ArrayDataView<float>* output) {}
inline void ColorSpaceDataView::GetTransferParamsDataView(
    mojo::ArrayDataView<float>* output) {}



}  // gfx::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct  TraceFormatTraits<::gfx::mojom::ColorSpacePrimaryID> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::gfx::mojom::ColorSpaceTransferID> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::gfx::mojom::ColorSpaceMatrixID> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::gfx::mojom::ColorSpaceRangeID> {};

} // namespace perfetto

#endif  // UI_GFX_MOJOM_COLOR_SPACE_MOJOM_SHARED_H_