#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom-params-data.h"
#include "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom-import-headers.h"
#include "third_party/blink/public/mojom/picture_in_picture/picture_in_picture.mojom-test-utils.h"
namespace blink::mojom {
const char PictureInPictureSessionObserver::Name_[] = …;
PictureInPictureSessionObserver::IPCStableHashFunction PictureInPictureSessionObserver::MessageToMethodInfo_(mojo::Message& message) { … }
const char* PictureInPictureSessionObserver::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PictureInPictureSessionObserver::OnWindowSizeChanged_Sym::IPCStableHash() { … }
uint32_t PictureInPictureSessionObserver::OnStopped_Sym::IPCStableHash() { … }
# endif
PictureInPictureSessionObserverProxy::PictureInPictureSessionObserverProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void PictureInPictureSessionObserverProxy::OnWindowSizeChanged(
const ::gfx::Size& in_size) { … }
void PictureInPictureSessionObserverProxy::OnStopped(
) { … }
bool PictureInPictureSessionObserverStubDispatch::Accept(
PictureInPictureSessionObserver* impl,
mojo::Message* message) { … }
bool PictureInPictureSessionObserverStubDispatch::AcceptWithResponder(
PictureInPictureSessionObserver* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kPictureInPictureSessionObserverValidationInfo[] = …;
bool PictureInPictureSessionObserverRequestValidator::Accept(mojo::Message* message) { … }
const char PictureInPictureSession::Name_[] = …;
PictureInPictureSession::IPCStableHashFunction PictureInPictureSession::MessageToMethodInfo_(mojo::Message& message) { … }
const char* PictureInPictureSession::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PictureInPictureSession::Update_Sym::IPCStableHash() { … }
uint32_t PictureInPictureSession::Stop_Sym::IPCStableHash() { … }
# endif
class PictureInPictureSession_Stop_ForwardToCallback
: public mojo::MessageReceiver { … };
PictureInPictureSessionProxy::PictureInPictureSessionProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void PictureInPictureSessionProxy::Update(
uint32_t in_player_id, ::mojo::PendingAssociatedRemote<::media::mojom::MediaPlayer> in_player_remote, const ::viz::SurfaceId& in_surface_id, const ::gfx::Size& in_natural_size, bool in_show_play_pause_button) { … }
void PictureInPictureSessionProxy::Stop(
StopCallback callback) { … }
class PictureInPictureSession_Stop_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool PictureInPictureSession_Stop_ForwardToCallback::Accept(
mojo::Message* message) { … }
void PictureInPictureSession_Stop_ProxyToResponder::Run(
) { … }
bool PictureInPictureSessionStubDispatch::Accept(
PictureInPictureSession* impl,
mojo::Message* message) { … }
bool PictureInPictureSessionStubDispatch::AcceptWithResponder(
PictureInPictureSession* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kPictureInPictureSessionValidationInfo[] = …;
bool PictureInPictureSessionRequestValidator::Accept(mojo::Message* message) { … }
bool PictureInPictureSessionResponseValidator::Accept(mojo::Message* message) { … }
const char PictureInPictureService::Name_[] = …;
PictureInPictureService::IPCStableHashFunction PictureInPictureService::MessageToMethodInfo_(mojo::Message& message) { … }
const char* PictureInPictureService::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PictureInPictureService::StartSession_Sym::IPCStableHash() { … }
# endif
class PictureInPictureService_StartSession_ForwardToCallback
: public mojo::MessageReceiver { … };
PictureInPictureServiceProxy::PictureInPictureServiceProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void PictureInPictureServiceProxy::StartSession(
uint32_t in_player_id, ::mojo::PendingAssociatedRemote<::media::mojom::MediaPlayer> in_player_remote, const ::viz::SurfaceId& in_surface_id, const ::gfx::Size& in_natural_size, bool in_show_play_pause_button, ::mojo::PendingRemote<PictureInPictureSessionObserver> in_observer, const ::gfx::Rect& in_source_bounds, StartSessionCallback callback) { … }
class PictureInPictureService_StartSession_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool PictureInPictureService_StartSession_ForwardToCallback::Accept(
mojo::Message* message) { … }
void PictureInPictureService_StartSession_ProxyToResponder::Run(
::mojo::PendingRemote<PictureInPictureSession> in_session, const ::gfx::Size& in_size) { … }
bool PictureInPictureServiceStubDispatch::Accept(
PictureInPictureService* impl,
mojo::Message* message) { … }
bool PictureInPictureServiceStubDispatch::AcceptWithResponder(
PictureInPictureService* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kPictureInPictureServiceValidationInfo[] = …;
bool PictureInPictureServiceRequestValidator::Accept(mojo::Message* message) { … }
bool PictureInPictureServiceResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace blink::mojom {
void PictureInPictureSessionObserverInterceptorForTesting::OnWindowSizeChanged(const ::gfx::Size& size) { … }
void PictureInPictureSessionObserverInterceptorForTesting::OnStopped() { … }
PictureInPictureSessionObserverAsyncWaiter::PictureInPictureSessionObserverAsyncWaiter(
PictureInPictureSessionObserver* proxy) : … { … }
PictureInPictureSessionObserverAsyncWaiter::~PictureInPictureSessionObserverAsyncWaiter() = default;
void PictureInPictureSessionInterceptorForTesting::Update(uint32_t player_id, ::mojo::PendingAssociatedRemote<::media::mojom::MediaPlayer> player_remote, const ::viz::SurfaceId& surface_id, const ::gfx::Size& natural_size, bool show_play_pause_button) { … }
void PictureInPictureSessionInterceptorForTesting::Stop(StopCallback callback) { … }
PictureInPictureSessionAsyncWaiter::PictureInPictureSessionAsyncWaiter(
PictureInPictureSession* proxy) : … { … }
PictureInPictureSessionAsyncWaiter::~PictureInPictureSessionAsyncWaiter() = default;
void PictureInPictureSessionAsyncWaiter::Stop(
) { … }
void PictureInPictureServiceInterceptorForTesting::StartSession(uint32_t player_id, ::mojo::PendingAssociatedRemote<::media::mojom::MediaPlayer> player_remote, const ::viz::SurfaceId& surface_id, const ::gfx::Size& natural_size, bool show_play_pause_button, ::mojo::PendingRemote<PictureInPictureSessionObserver> observer, const ::gfx::Rect& source_bounds, StartSessionCallback callback) { … }
PictureInPictureServiceAsyncWaiter::PictureInPictureServiceAsyncWaiter(
PictureInPictureService* proxy) : … { … }
PictureInPictureServiceAsyncWaiter::~PictureInPictureServiceAsyncWaiter() = default;
void PictureInPictureServiceAsyncWaiter::StartSession(
uint32_t player_id, ::mojo::PendingAssociatedRemote<::media::mojom::MediaPlayer> player_remote, const ::viz::SurfaceId& surface_id, const ::gfx::Size& natural_size, bool show_play_pause_button, ::mojo::PendingRemote<PictureInPictureSessionObserver> observer, const ::gfx::Rect& source_bounds, ::mojo::PendingRemote<PictureInPictureSession>* out_session, ::gfx::Size* out_size) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif