chromium/out/Default/gen/services/screen_ai/public/mojom/screen_ai_service.mojom.h

// services/screen_ai/public/mojom/screen_ai_service.mojom.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_SCREEN_AI_PUBLIC_MOJOM_SCREEN_AI_SERVICE_MOJOM_H_
#define SERVICES_SCREEN_AI_PUBLIC_MOJOM_SCREEN_AI_SERVICE_MOJOM_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/screen_ai/public/mojom/screen_ai_service.mojom-features.h"  // IWYU pragma: export
#include "services/screen_ai/public/mojom/screen_ai_service.mojom-shared.h"  // IWYU pragma: export
#include "services/screen_ai/public/mojom/screen_ai_service.mojom-forward.h"  // IWYU pragma: export
#include "skia/public/mojom/bitmap.mojom.h"
#include "ui/accessibility/ax_features.mojom-forward.h"
#include "ui/accessibility/mojom/ax_tree_id.mojom-forward.h"
#include "ui/accessibility/mojom/ax_tree_update.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.mojom.h"
#include <string>
#include <vector>

#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"






namespace screen_ai::mojom {

class ScreenAIAnnotatorProxy;

template <typename ImplRefTraits>
class ScreenAIAnnotatorStub;

class ScreenAIAnnotatorRequestValidator;
class ScreenAIAnnotatorResponseValidator;


class ScreenAIAnnotator
    : public ScreenAIAnnotatorInterfaceBase {};

class Screen2xMainContentExtractorProxy;

template <typename ImplRefTraits>
class Screen2xMainContentExtractorStub;

class Screen2xMainContentExtractorRequestValidator;
class Screen2xMainContentExtractorResponseValidator;


class Screen2xMainContentExtractor
    : public Screen2xMainContentExtractorInterfaceBase {};

class OCRServiceProxy;

template <typename ImplRefTraits>
class OCRServiceStub;

class OCRServiceRequestValidator;


class OCRService
    : public OCRServiceInterfaceBase {};

class MainContentExtractionServiceProxy;

template <typename ImplRefTraits>
class MainContentExtractionServiceStub;

class MainContentExtractionServiceRequestValidator;


class MainContentExtractionService
    : public MainContentExtractionServiceInterfaceBase {};



class  ScreenAIAnnotatorProxy
    : public ScreenAIAnnotator {};



class  Screen2xMainContentExtractorProxy
    : public Screen2xMainContentExtractor {};



class  OCRServiceProxy
    : public OCRService {};



class  MainContentExtractionServiceProxy
    : public MainContentExtractionService {};
class  ScreenAIAnnotatorStubDispatch {};

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

  ScreenAIAnnotatorStub() = default;
  ~ScreenAIAnnotatorStub() 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  Screen2xMainContentExtractorStubDispatch {};

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

  Screen2xMainContentExtractorStub() = default;
  ~Screen2xMainContentExtractorStub() 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  OCRServiceStubDispatch {};

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

  OCRServiceStub() = default;
  ~OCRServiceStub() 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  MainContentExtractionServiceStubDispatch {};

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

  MainContentExtractionServiceStub() = default;
  ~MainContentExtractionServiceStub() 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  ScreenAIAnnotatorRequestValidator : public mojo::MessageReceiver {};
class  Screen2xMainContentExtractorRequestValidator : public mojo::MessageReceiver {};
class  OCRServiceRequestValidator : public mojo::MessageReceiver {};
class  MainContentExtractionServiceRequestValidator : public mojo::MessageReceiver {};
class  ScreenAIAnnotatorResponseValidator : public mojo::MessageReceiver {};
class  Screen2xMainContentExtractorResponseValidator : public mojo::MessageReceiver {};










class  VisualAnnotation {};

// 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, VisualAnnotation::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

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

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

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





class  LineBox {};

// 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, LineBox::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

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

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

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





class  WordBox {};

// 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, WordBox::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

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

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

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

template <typename StructPtrType>
VisualAnnotationPtr VisualAnnotation::Clone() const {}

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

template <typename T, VisualAnnotation::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
LineBoxPtr LineBox::Clone() const {}

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

template <typename T, LineBox::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
WordBoxPtr WordBox::Clone() const {}

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

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


}  // screen_ai::mojom

namespace mojo {


template <>
struct  StructTraits<::screen_ai::mojom::VisualAnnotation::DataView,
                                         ::screen_ai::mojom::VisualAnnotationPtr> {};


template <>
struct  StructTraits<::screen_ai::mojom::LineBox::DataView,
                                         ::screen_ai::mojom::LineBoxPtr> {};


template <>
struct  StructTraits<::screen_ai::mojom::WordBox::DataView,
                                         ::screen_ai::mojom::WordBoxPtr> {};
namespace internal {
template <>
inline bool GetRuntimeFeature_IsEnabled<::screen_ai::mojom::ScreenAIAnnotator>() {}
template <>
inline bool GetRuntimeFeature_ExpectEnabled<::screen_ai::mojom::ScreenAIAnnotator>() {
  return ::screen_ai::mojom::ScreenAIAnnotator::RuntimeFeature_IsEnabled_(true);
}kIsRuntimeFeatureGuarded;
template <>
inline bool GetRuntimeFeature_IsEnabled<::screen_ai::mojom::OCRService>() {}
template <>
inline bool GetRuntimeFeature_ExpectEnabled<::screen_ai::mojom::OCRService>() {
  return ::screen_ai::mojom::OCRService::RuntimeFeature_IsEnabled_(true);
}kIsRuntimeFeatureGuarded;
template <>
inline bool GetRuntimeFeature_IsEnabled<::screen_ai::mojom::MainContentExtractionService>() {}
template <>
inline bool GetRuntimeFeature_ExpectEnabled<::screen_ai::mojom::MainContentExtractionService>() {
  return ::screen_ai::mojom::MainContentExtractionService::RuntimeFeature_IsEnabled_(true);
}kIsRuntimeFeatureGuarded;
}  // namespace internal

}  // namespace mojo

#endif  // SERVICES_SCREEN_AI_PUBLIC_MOJOM_SCREEN_AI_SERVICE_MOJOM_H_