chromium/out/Default/gen/services/device/public/mojom/pressure_manager.mojom-blink.h

// services/device/public/mojom/pressure_manager.mojom-blink.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SERVICES_DEVICE_PUBLIC_MOJOM_PRESSURE_MANAGER_MOJOM_BLINK_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_PRESSURE_MANAGER_MOJOM_BLINK_H_

#include <stdint.h>

#include <limits>
#include <optional>
#include <type_traits>
#include <utility>

#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"

#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"

#include "services/device/public/mojom/pressure_manager.mojom-features.h"  // IWYU pragma: export
#include "services/device/public/mojom/pressure_manager.mojom-shared.h"  // IWYU pragma: export
#include "services/device/public/mojom/pressure_manager.mojom-blink-forward.h"  // IWYU pragma: export
#include "mojo/public/mojom/base/unguessable_token.mojom-blink.h"
#include "services/device/public/mojom/pressure_update.mojom-blink-forward.h"

#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"


#include "third_party/blink/public/platform/web_common.h"




namespace device::mojom::blink {

class PressureManagerProxy;

template <typename ImplRefTraits>
class PressureManagerStub;

class PressureManagerRequestValidator;
class PressureManagerResponseValidator;


class BLINK_PLATFORM_EXPORT PressureManager
    : public PressureManagerInterfaceBase {};

class PressureClientProxy;

template <typename ImplRefTraits>
class PressureClientStub;

class PressureClientRequestValidator;


class BLINK_PLATFORM_EXPORT PressureClient
    : public PressureClientInterfaceBase {};



class BLINK_PLATFORM_EXPORT PressureManagerProxy
    : public PressureManager {};



class BLINK_PLATFORM_EXPORT PressureClientProxy
    : public PressureClient {};
class BLINK_PLATFORM_EXPORT PressureManagerStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<PressureManager>>
class PressureManagerStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  PressureManagerStub() = default;
  ~PressureManagerStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class BLINK_PLATFORM_EXPORT PressureClientStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<PressureClient>>
class PressureClientStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  PressureClientStub() = default;
  ~PressureClientStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class BLINK_PLATFORM_EXPORT PressureManagerRequestValidator : public mojo::MessageReceiver {};
class BLINK_PLATFORM_EXPORT PressureClientRequestValidator : public mojo::MessageReceiver {};
class BLINK_PLATFORM_EXPORT PressureManagerResponseValidator : public mojo::MessageReceiver {};





class BLINK_PLATFORM_EXPORT VirtualPressureSourceMetadata {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, VirtualPressureSourceMetadata::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, VirtualPressureSourceMetadata::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, VirtualPressureSourceMetadata::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, VirtualPressureSourceMetadata::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_PLATFORM_EXPORT PressureManagerAddClientResult {};


template <typename UnionPtrType>
PressureManagerAddClientResultPtr PressureManagerAddClientResult::Clone() const {}

template <typename T,
          typename std::enable_if<std::is_same<
              T, PressureManagerAddClientResult>::value>::type*>
bool PressureManagerAddClientResult::Equals(const T& other) const {}
template <typename StructPtrType>
VirtualPressureSourceMetadataPtr VirtualPressureSourceMetadata::Clone() const {}

template <typename T, VirtualPressureSourceMetadata::EnableIfSame<T>*>
bool VirtualPressureSourceMetadata::Equals(const T& other_struct) const {}

template <typename T, VirtualPressureSourceMetadata::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}


}  // device::mojom::blink

namespace mojo {


template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::device::mojom::blink::VirtualPressureSourceMetadata::DataView,
                                         ::device::mojom::blink::VirtualPressureSourceMetadataPtr> {};


template <>
struct BLINK_PLATFORM_EXPORT UnionTraits<::device::mojom::blink::PressureManagerAddClientResult::DataView,
                                        ::device::mojom::blink::PressureManagerAddClientResultPtr> {};

}  // namespace mojo

#endif  // SERVICES_DEVICE_PUBLIC_MOJOM_PRESSURE_MANAGER_MOJOM_BLINK_H_