// chrome/common/readaloud/read_aloud.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 CHROME_COMMON_READALOUD_READ_ALOUD_MOJOM_H_
#define CHROME_COMMON_READALOUD_READ_ALOUD_MOJOM_H_

#include <stdint.h>

#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.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 "mojo/public/cpp/bindings/lib/serialization.h"

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

#include "chrome/common/readaloud/read_aloud.mojom-features.h"  // IWYU pragma: export
#include "chrome/common/readaloud/read_aloud.mojom-shared.h"  // IWYU pragma: export
#include "chrome/common/readaloud/read_aloud.mojom-forward.h"  // IWYU pragma: export
#include "media/mojo/mojom/audio_data_pipe.mojom-forward.h"
#include "media/mojo/mojom/audio_output_stream.mojom-forward.h"
#include "media/mojo/mojom/audio_parameters.mojom.h"
#include "mojo/public/mojom/base/big_buffer.mojom.h"
#include "mojo/public/mojom/base/string16.mojom.h"
#include "mojo/public/mojom/base/time.mojom.h"
#include "mojo/public/mojom/base/work_in_progress.mojom-forward.h"
#include "sandbox/policy/mojom/sandbox.mojom-forward.h"
#include <string>
#include <vector>

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






namespace read_aloud::mojom {

class ReadAloudPlaybackControllerProxy;

template <typename ImplRefTraits>
class ReadAloudPlaybackControllerStub;

class ReadAloudPlaybackControllerRequestValidator;


class ReadAloudPlaybackController
    : public ReadAloudPlaybackControllerInterfaceBase {
 public:
  using IPCStableHashFunction = uint32_t(*)();
  static constexpr const char* Name_ = "read_aloud.mojom.ReadAloudPlaybackController";
  static IPCStableHashFunction MessageToMethodInfo_(mojo::Message& message);
  static const char* MessageToMethodName_(mojo::Message& message);
  static bool RuntimeFeature_IsEnabled_(bool expected);
  static constexpr uint32_t Version_ = 0;
  static constexpr bool PassesAssociatedKinds_ = false;
  static constexpr bool HasUninterruptableMethods_ = false;

  using Base_ = ReadAloudPlaybackControllerInterfaceBase;
  using Proxy_ = ReadAloudPlaybackControllerProxy;

  template <typename ImplRefTraits>
  using Stub_ = ReadAloudPlaybackControllerStub<ImplRefTraits>;

  using RequestValidator_ = ReadAloudPlaybackControllerRequestValidator;
  using ResponseValidator_ = mojo::PassThroughFilter;
  enum MethodMinVersions : uint32_t {
    kInitializeAudioMinVersion = 0,
    kSetTextContentMinVersion = 0,
    kPlayMinVersion = 0,
    kPauseMinVersion = 0,
    kSeekToWordMinVersion = 0,
    kSeekToTimeMinVersion = 0,
    kSetVoiceMinVersion = 0,
    kSetPlaybackRateMinVersion = 0,
    kFlushBuffersMinVersion = 0,
  };

// crbug.com/1340245 - this causes binary size bloat on Fuchsia, and we're OK
// with not having this data in traces there.
#if !BUILDFLAG(IS_FUCHSIA)
  struct InitializeAudio_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct SetTextContent_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct Play_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct Pause_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct SeekToWord_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct SeekToTime_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct SetVoice_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct SetPlaybackRate_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct FlushBuffers_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
#endif // !BUILDFLAG(IS_FUCHSIA)
  virtual ~ReadAloudPlaybackController() = default;

  virtual void InitializeAudio(::mojo::PendingRemote<::media::mojom::AudioOutputStream> stream, ::media::mojom::ReadWriteAudioDataPipePtr data_pipe, const ::media::AudioParameters& params) = 0;

  virtual void SetTextContent(std::vector<TextSegmentPtr> segments) = 0;

  virtual void Play() = 0;

  virtual void Pause() = 0;

  virtual void SeekToWord(uint32_t segment_index, uint32_t character_offset) = 0;

  virtual void SeekToTime(::base::TimeDelta position) = 0;

  virtual void SetVoice(const std::string& voice_id) = 0;

  virtual void SetPlaybackRate(float rate) = 0;

  virtual void FlushBuffers() = 0;
};

class ReadAloudPlaybackControllerClientProxy;

template <typename ImplRefTraits>
class ReadAloudPlaybackControllerClientStub;

class ReadAloudPlaybackControllerClientRequestValidator;
class ReadAloudPlaybackControllerClientResponseValidator;


class ReadAloudPlaybackControllerClient
    : public ReadAloudPlaybackControllerClientInterfaceBase {
 public:
  using IPCStableHashFunction = uint32_t(*)();
  static constexpr const char* Name_ = "read_aloud.mojom.ReadAloudPlaybackControllerClient";
  static IPCStableHashFunction MessageToMethodInfo_(mojo::Message& message);
  static const char* MessageToMethodName_(mojo::Message& message);
  static bool RuntimeFeature_IsEnabled_(bool expected);
  static constexpr uint32_t Version_ = 0;
  static constexpr bool PassesAssociatedKinds_ = false;
  static constexpr bool HasUninterruptableMethods_ = false;

  using Base_ = ReadAloudPlaybackControllerClientInterfaceBase;
  using Proxy_ = ReadAloudPlaybackControllerClientProxy;

  template <typename ImplRefTraits>
  using Stub_ = ReadAloudPlaybackControllerClientStub<ImplRefTraits>;

  using RequestValidator_ = ReadAloudPlaybackControllerClientRequestValidator;
  using ResponseValidator_ = ReadAloudPlaybackControllerClientResponseValidator;
  enum MethodMinVersions : uint32_t {
    kOnPlaybackStateChangedMinVersion = 0,
    kOnPlaybackDurationChangedMinVersion = 0,
    kOnWordBoundaryReachedMinVersion = 0,
    kRequestSpeechSynthesisMinVersion = 0,
  };

// crbug.com/1340245 - this causes binary size bloat on Fuchsia, and we're OK
// with not having this data in traces there.
#if !BUILDFLAG(IS_FUCHSIA)
  struct OnPlaybackStateChanged_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct OnPlaybackDurationChanged_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct OnWordBoundaryReached_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
  struct RequestSpeechSynthesis_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
#endif // !BUILDFLAG(IS_FUCHSIA)
  virtual ~ReadAloudPlaybackControllerClient() = default;

  virtual void OnPlaybackStateChanged(PlaybackState state) = 0;

  virtual void OnPlaybackDurationChanged(::base::TimeDelta duration) = 0;

  virtual void OnWordBoundaryReached(uint32_t segment_index, uint32_t character_offset, ::base::TimeDelta audio_timestamp) = 0;

  using RequestSpeechSynthesisCallback = base::OnceCallback<void(::mojo_base::BigBuffer, bool)>;
  using RequestSpeechSynthesisMojoCallback = base::OnceCallback<void(::mojo_base::BigBuffer, bool)>;

  virtual void RequestSpeechSynthesis(const ::std::u16string& text_chunk, uint64_t sequence_id, RequestSpeechSynthesisCallback callback) = 0;
};

class ReadAloudPlaybackControllerFactoryProxy;

template <typename ImplRefTraits>
class ReadAloudPlaybackControllerFactoryStub;

class ReadAloudPlaybackControllerFactoryRequestValidator;


class ReadAloudPlaybackControllerFactory
    : public ReadAloudPlaybackControllerFactoryInterfaceBase {
 public:
  using IPCStableHashFunction = uint32_t(*)();
  static constexpr const char* Name_ = "read_aloud.mojom.ReadAloudPlaybackControllerFactory";
  static IPCStableHashFunction MessageToMethodInfo_(mojo::Message& message);
  static const char* MessageToMethodName_(mojo::Message& message);
  static constexpr auto kServiceSandbox = sandbox::mojom::Sandbox::kUtility;
  static constexpr uint32_t Version_ = 0;
  static constexpr bool PassesAssociatedKinds_ = false;
  static constexpr bool HasUninterruptableMethods_ = false;

  using Base_ = ReadAloudPlaybackControllerFactoryInterfaceBase;
  using Proxy_ = ReadAloudPlaybackControllerFactoryProxy;

  template <typename ImplRefTraits>
  using Stub_ = ReadAloudPlaybackControllerFactoryStub<ImplRefTraits>;

  using RequestValidator_ = ReadAloudPlaybackControllerFactoryRequestValidator;
  using ResponseValidator_ = mojo::PassThroughFilter;
  enum MethodMinVersions : uint32_t {
    kCreateControllerMinVersion = 0,
  };

// crbug.com/1340245 - this causes binary size bloat on Fuchsia, and we're OK
// with not having this data in traces there.
#if !BUILDFLAG(IS_FUCHSIA)
  struct CreateController_Sym {
    NOINLINE static uint32_t IPCStableHash();
  };
#endif // !BUILDFLAG(IS_FUCHSIA)
  virtual ~ReadAloudPlaybackControllerFactory() = default;

  virtual void CreateController(::mojo::PendingReceiver<ReadAloudPlaybackController> controller, ::mojo::PendingRemote<ReadAloudPlaybackControllerClient> client) = 0;
};



class  ReadAloudPlaybackControllerProxy
    : public ReadAloudPlaybackController {
 public:
  using InterfaceType = ReadAloudPlaybackController;

  explicit ReadAloudPlaybackControllerProxy(mojo::MessageReceiverWithResponder* receiver);
  
  void InitializeAudio(::mojo::PendingRemote<::media::mojom::AudioOutputStream> stream, ::media::mojom::ReadWriteAudioDataPipePtr data_pipe, const ::media::AudioParameters& params) final;
  
  void SetTextContent(std::vector<TextSegmentPtr> segments) final;
  
  void Play() final;
  
  void Pause() final;
  
  void SeekToWord(uint32_t segment_index, uint32_t character_offset) final;
  
  void SeekToTime(::base::TimeDelta position) final;
  
  void SetVoice(const std::string& voice_id) final;
  
  void SetPlaybackRate(float rate) final;
  
  void FlushBuffers() final;

 private:
  mojo::MessageReceiverWithResponder* receiver_;
};



class  ReadAloudPlaybackControllerClientProxy
    : public ReadAloudPlaybackControllerClient {
 public:
  using InterfaceType = ReadAloudPlaybackControllerClient;

  explicit ReadAloudPlaybackControllerClientProxy(mojo::MessageReceiverWithResponder* receiver);
  
  void OnPlaybackStateChanged(PlaybackState state) final;
  
  void OnPlaybackDurationChanged(::base::TimeDelta duration) final;
  
  void OnWordBoundaryReached(uint32_t segment_index, uint32_t character_offset, ::base::TimeDelta audio_timestamp) final;
  
  void RequestSpeechSynthesis(const ::std::u16string& text_chunk, uint64_t sequence_id, RequestSpeechSynthesisCallback callback) final;

 private:
  mojo::MessageReceiverWithResponder* receiver_;
};



class  ReadAloudPlaybackControllerFactoryProxy
    : public ReadAloudPlaybackControllerFactory {
 public:
  using InterfaceType = ReadAloudPlaybackControllerFactory;

  explicit ReadAloudPlaybackControllerFactoryProxy(mojo::MessageReceiverWithResponder* receiver);
  
  void CreateController(::mojo::PendingReceiver<ReadAloudPlaybackController> controller, ::mojo::PendingRemote<ReadAloudPlaybackControllerClient> client) final;

 private:
  mojo::MessageReceiverWithResponder* receiver_;
};
class  ReadAloudPlaybackControllerStubDispatch {
 public:
  static bool Accept(ReadAloudPlaybackController* impl, mojo::Message* message);
  static bool AcceptWithResponder(
      ReadAloudPlaybackController* impl,
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};

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

  ReadAloudPlaybackControllerStub() = default;
  ~ReadAloudPlaybackControllerStub() override = default;

  void set_sink(ImplPointerType sink) { sink_ = std::move(sink); }
  ImplPointerType& sink() { return sink_; }

  bool Accept(mojo::Message* message) override {
    if (ImplRefTraits::IsNull(sink_))
      return false;
    return ReadAloudPlaybackControllerStubDispatch::Accept(
        ImplRefTraits::GetRawPointer(&sink_), message);
  }

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
    if (ImplRefTraits::IsNull(sink_))
      return false;
    return ReadAloudPlaybackControllerStubDispatch::AcceptWithResponder(
        ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
  }

 private:
  ImplPointerType sink_;
};
class  ReadAloudPlaybackControllerClientStubDispatch {
 public:
  static bool Accept(ReadAloudPlaybackControllerClient* impl, mojo::Message* message);
  static bool AcceptWithResponder(
      ReadAloudPlaybackControllerClient* impl,
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};

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

  ReadAloudPlaybackControllerClientStub() = default;
  ~ReadAloudPlaybackControllerClientStub() override = default;

  void set_sink(ImplPointerType sink) { sink_ = std::move(sink); }
  ImplPointerType& sink() { return sink_; }

  bool Accept(mojo::Message* message) override {
    if (ImplRefTraits::IsNull(sink_))
      return false;
    return ReadAloudPlaybackControllerClientStubDispatch::Accept(
        ImplRefTraits::GetRawPointer(&sink_), message);
  }

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
    if (ImplRefTraits::IsNull(sink_))
      return false;
    return ReadAloudPlaybackControllerClientStubDispatch::AcceptWithResponder(
        ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
  }

 private:
  ImplPointerType sink_;
};
class  ReadAloudPlaybackControllerFactoryStubDispatch {
 public:
  static bool Accept(ReadAloudPlaybackControllerFactory* impl, mojo::Message* message);
  static bool AcceptWithResponder(
      ReadAloudPlaybackControllerFactory* impl,
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};

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

  ReadAloudPlaybackControllerFactoryStub() = default;
  ~ReadAloudPlaybackControllerFactoryStub() override = default;

  void set_sink(ImplPointerType sink) { sink_ = std::move(sink); }
  ImplPointerType& sink() { return sink_; }

  bool Accept(mojo::Message* message) override {
    if (ImplRefTraits::IsNull(sink_))
      return false;
    return ReadAloudPlaybackControllerFactoryStubDispatch::Accept(
        ImplRefTraits::GetRawPointer(&sink_), message);
  }

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
    if (ImplRefTraits::IsNull(sink_))
      return false;
    return ReadAloudPlaybackControllerFactoryStubDispatch::AcceptWithResponder(
        ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
  }

 private:
  ImplPointerType sink_;
};
class  ReadAloudPlaybackControllerRequestValidator : public mojo::MessageReceiver {
 public:
  bool Accept(mojo::Message* message) override;
};
class  ReadAloudPlaybackControllerClientRequestValidator : public mojo::MessageReceiver {
 public:
  bool Accept(mojo::Message* message) override;
};
class  ReadAloudPlaybackControllerFactoryRequestValidator : public mojo::MessageReceiver {
 public:
  bool Accept(mojo::Message* message) override;
};
class  ReadAloudPlaybackControllerClientResponseValidator : public mojo::MessageReceiver {
 public:
  bool Accept(mojo::Message* message) override;
};








class  TextSegment {
 public:
  template <typename T>
  using EnableIfSame = std::enable_if_t<std::is_same<TextSegment, T>::value>;
  using DataView = TextSegmentDataView;
  using Data_ = internal::TextSegment_Data;

  template <typename... Args>
  static TextSegmentPtr New(Args&&... args) {
    return TextSegmentPtr(
        std::in_place, std::forward<Args>(args)...);
  }

  template <typename U>
  static TextSegmentPtr From(const U& u) {
    return mojo::TypeConverter<TextSegmentPtr, U>::Convert(u);
  }

  template <typename U>
  U To() const {
    return mojo::TypeConverter<U, TextSegment>::Convert(*this);
  }


  TextSegment();

  TextSegment(
      uint32_t segment_index,
      const ::std::u16string& text);


  ~TextSegment();

  // Clone() is a template so it is only instantiated if it is used. Thus, the
  // bindings generator does not need to know whether Clone() or copy
  // constructor/assignment are available for members.
  template <typename StructPtrType = TextSegmentPtr>
  TextSegmentPtr Clone() const;

  // Equals() is a template so it is only instantiated if it is used. Thus, the
  // bindings generator does not need to know whether Equals() or == operator
  // are available for members.
  template <typename T, TextSegment::EnableIfSame<T>* = nullptr>
  bool Equals(const T& other) const;

  template <typename T, TextSegment::EnableIfSame<T>* = nullptr>
  bool operator==(const T& rhs) const { return Equals(rhs); }

  template <typename T, TextSegment::EnableIfSame<T>* = nullptr>
  bool operator!=(const T& rhs) const { return !operator==(rhs); }

  template <mojo::internal::SendValidation send_validation, typename UserType>
  static std::vector<uint8_t> Serialize(UserType* input) {
    return mojo::internal::SerializeImpl<
        TextSegment::DataView, std::vector<uint8_t>, send_validation>(input);
  }

  template <typename UserType>
  static std::vector<uint8_t> Serialize(UserType* input) {
    return mojo::internal::SerializeImpl<
        TextSegment::DataView, std::vector<uint8_t>>(input);
  }

  template <typename UserType>
  static mojo::Message SerializeAsMessage(UserType* input) {
    return mojo::internal::SerializeAsMessageImpl<
        TextSegment::DataView>(input);
  }

  // The returned Message is serialized only if the message is moved
  // cross-process or cross-language. Otherwise if the message is Deserialized
  // as the same UserType |input| will just be moved to |output| in
  // DeserializeFromMessage.
  template <typename UserType>
  static mojo::Message WrapAsMessage(UserType input) {
    return mojo::Message(std::make_unique<
        internal::TextSegment_UnserializedMessageContext<
            UserType, TextSegment::DataView>>(0, 0, std::move(input)),
        MOJO_CREATE_MESSAGE_FLAG_NONE);
  }

  template <typename UserType>
  static bool Deserialize(const void* data,
                          size_t data_num_bytes,
                          UserType* output) {
    mojo::Message message;
    return mojo::internal::DeserializeImpl<TextSegment::DataView>(
        message, data, data_num_bytes, output, Validate);
  }

  template <typename UserType>
  static bool Deserialize(base::span<const uint8_t> input,
                          UserType* output) {
    return TextSegment::Deserialize(
        input.empty() ? nullptr : input.data(), input.size(), output);
  }

  template <typename UserType>
  static bool DeserializeFromMessage(mojo::Message input,
                                     UserType* output) {
    auto context = input.TakeUnserializedContext<
        internal::TextSegment_UnserializedMessageContext<
            UserType, TextSegment::DataView>>();
    if (context) {
      *output = std::move(context->TakeData());
      return true;
    }
    input.SerializeIfNecessary();
    return mojo::internal::DeserializeImpl<TextSegment::DataView>(
        input, input.payload(), input.payload_num_bytes(), output, Validate);
  }

  
  uint32_t segment_index;
  
  ::std::u16string text;

  // Serialise this struct into a trace.
  void WriteIntoTrace(perfetto::TracedValue traced_context) const;

 private:
  static bool Validate(const void* data,
                       mojo::internal::ValidationContext* validation_context);
};

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

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

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

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

template <typename StructPtrType>
TextSegmentPtr TextSegment::Clone() const {
  return New(
      mojo::Clone(segment_index),
      mojo::Clone(text)
  );
}

template <typename T, TextSegment::EnableIfSame<T>*>
bool TextSegment::Equals(const T& other_struct) const {
  if (!mojo::Equals(this->segment_index, other_struct.segment_index))
    return false;
  if (!mojo::Equals(this->text, other_struct.text))
    return false;
  return true;
}

template <typename T, TextSegment::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {
  if (lhs.segment_index < rhs.segment_index)
    return true;
  if (rhs.segment_index < lhs.segment_index)
    return false;
  if (lhs.text < rhs.text)
    return true;
  if (rhs.text < lhs.text)
    return false;
  return false;
}


}  // read_aloud::mojom

namespace mojo {


template <>
struct  StructTraits<::read_aloud::mojom::TextSegment::DataView,
                                         ::read_aloud::mojom::TextSegmentPtr> {
  static bool IsNull(const ::read_aloud::mojom::TextSegmentPtr& input) { return !input; }
  static void SetToNull(::read_aloud::mojom::TextSegmentPtr* output) { output->reset(); }

  static decltype(::read_aloud::mojom::TextSegment::segment_index) segment_index(
      const ::read_aloud::mojom::TextSegmentPtr& input) {
    return input->segment_index;
  }

  static const decltype(::read_aloud::mojom::TextSegment::text)& text(
      const ::read_aloud::mojom::TextSegmentPtr& input) {
    return input->text;
  }

  static bool Read(::read_aloud::mojom::TextSegment::DataView input, ::read_aloud::mojom::TextSegmentPtr* output);
};
namespace internal {
template <>
inline bool GetRuntimeFeature_IsEnabled<::read_aloud::mojom::ReadAloudPlaybackController>() {
  return ::read_aloud::mojom::ReadAloudPlaybackController::RuntimeFeature_IsEnabled_(false);
}
template <>
inline bool GetRuntimeFeature_ExpectEnabled<::read_aloud::mojom::ReadAloudPlaybackController>() {
  return ::read_aloud::mojom::ReadAloudPlaybackController::RuntimeFeature_IsEnabled_(true);
}template <>
inline constexpr bool kIsRuntimeFeatureGuarded<::read_aloud::mojom::ReadAloudPlaybackController> = true;
template <>
inline bool GetRuntimeFeature_IsEnabled<::read_aloud::mojom::ReadAloudPlaybackControllerClient>() {
  return ::read_aloud::mojom::ReadAloudPlaybackControllerClient::RuntimeFeature_IsEnabled_(false);
}
template <>
inline bool GetRuntimeFeature_ExpectEnabled<::read_aloud::mojom::ReadAloudPlaybackControllerClient>() {
  return ::read_aloud::mojom::ReadAloudPlaybackControllerClient::RuntimeFeature_IsEnabled_(true);
}template <>
inline constexpr bool kIsRuntimeFeatureGuarded<::read_aloud::mojom::ReadAloudPlaybackControllerClient> = true;
}  // namespace internal

}  // namespace mojo

#endif  // CHROME_COMMON_READALOUD_READ_ALOUD_MOJOM_H_