#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "cc/mojom/render_frame_metadata.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 "cc/mojom/render_frame_metadata.mojom-params-data.h"
#include "cc/mojom/render_frame_metadata.mojom-shared-message-ids.h"
#include "cc/mojom/render_frame_metadata.mojom-import-headers.h"
#include "cc/mojom/render_frame_metadata.mojom-test-utils.h"
namespace cc::mojom {
DelegatedInkBrowserMetadata::DelegatedInkBrowserMetadata()
: … { … }
DelegatedInkBrowserMetadata::DelegatedInkBrowserMetadata(
bool delegated_ink_is_hovering_in)
: … { … }
DelegatedInkBrowserMetadata::~DelegatedInkBrowserMetadata() = default;
size_t DelegatedInkBrowserMetadata::Hash(size_t seed) const { … }
void DelegatedInkBrowserMetadata::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DelegatedInkBrowserMetadata::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RenderFrameMetadata::RenderFrameMetadata()
: … { … }
RenderFrameMetadata::RenderFrameMetadata(
const ::SkColor4f& root_background_color_in,
const std::optional<::gfx::PointF>& root_scroll_offset_in,
bool is_scroll_offset_at_top_in,
const ::viz::Selection<::gfx::SelectionBound>& selection_in,
bool is_mobile_optimized_in,
DelegatedInkBrowserMetadataPtr delegated_ink_metadata_in,
float device_scale_factor_in,
const ::gfx::Size& viewport_size_in_pixels_in,
const std::optional<::viz::LocalSurfaceId>& local_surface_id_in,
float page_scale_factor_in,
float external_page_scale_factor_in,
float top_controls_height_in,
float top_controls_shown_ratio_in,
::viz::VerticalScrollDirection new_vertical_scroll_direction_in,
int64_t primary_main_frame_item_sequence_number_in)
: … { … }
RenderFrameMetadata::~RenderFrameMetadata() = default;
void RenderFrameMetadata::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RenderFrameMetadata::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char RenderFrameMetadataObserver::Name_[] = …;
RenderFrameMetadataObserver::IPCStableHashFunction RenderFrameMetadataObserver::MessageToMethodInfo_(mojo::Message& message) { … }
const char* RenderFrameMetadataObserver::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t RenderFrameMetadataObserver::ReportAllFrameSubmissionsForTesting_Sym::IPCStableHash() { … }
# endif
RenderFrameMetadataObserverProxy::RenderFrameMetadataObserverProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void RenderFrameMetadataObserverProxy::ReportAllFrameSubmissionsForTesting(
bool in_enabled) { … }
bool RenderFrameMetadataObserverStubDispatch::Accept(
RenderFrameMetadataObserver* impl,
mojo::Message* message) { … }
bool RenderFrameMetadataObserverStubDispatch::AcceptWithResponder(
RenderFrameMetadataObserver* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kRenderFrameMetadataObserverValidationInfo[] = …;
bool RenderFrameMetadataObserverRequestValidator::Accept(mojo::Message* message) { … }
const char RenderFrameMetadataObserverClient::Name_[] = …;
RenderFrameMetadataObserverClient::IPCStableHashFunction RenderFrameMetadataObserverClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* RenderFrameMetadataObserverClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t RenderFrameMetadataObserverClient::OnRenderFrameMetadataChanged_Sym::IPCStableHash() { … }
uint32_t RenderFrameMetadataObserverClient::OnFrameSubmissionForTesting_Sym::IPCStableHash() { … }
# endif
RenderFrameMetadataObserverClientProxy::RenderFrameMetadataObserverClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void RenderFrameMetadataObserverClientProxy::OnRenderFrameMetadataChanged(
uint32_t in_frame_token, const ::cc::RenderFrameMetadata& in_metadata) { … }
void RenderFrameMetadataObserverClientProxy::OnFrameSubmissionForTesting(
uint32_t in_frame_token) { … }
bool RenderFrameMetadataObserverClientStubDispatch::Accept(
RenderFrameMetadataObserverClient* impl,
mojo::Message* message) { … }
bool RenderFrameMetadataObserverClientStubDispatch::AcceptWithResponder(
RenderFrameMetadataObserverClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kRenderFrameMetadataObserverClientValidationInfo[] = …;
bool RenderFrameMetadataObserverClientRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::cc::mojom::DelegatedInkBrowserMetadata::DataView, ::cc::mojom::DelegatedInkBrowserMetadataPtr>::Read(
::cc::mojom::DelegatedInkBrowserMetadata::DataView input,
::cc::mojom::DelegatedInkBrowserMetadataPtr* output) { … }
bool StructTraits<::cc::mojom::RenderFrameMetadata::DataView, ::cc::mojom::RenderFrameMetadataPtr>::Read(
::cc::mojom::RenderFrameMetadata::DataView input,
::cc::mojom::RenderFrameMetadataPtr* output) { … }
}
namespace cc::mojom {
void RenderFrameMetadataObserverInterceptorForTesting::ReportAllFrameSubmissionsForTesting(bool enabled) { … }
RenderFrameMetadataObserverAsyncWaiter::RenderFrameMetadataObserverAsyncWaiter(
RenderFrameMetadataObserver* proxy) : … { … }
RenderFrameMetadataObserverAsyncWaiter::~RenderFrameMetadataObserverAsyncWaiter() = default;
void RenderFrameMetadataObserverClientInterceptorForTesting::OnRenderFrameMetadataChanged(uint32_t frame_token, const ::cc::RenderFrameMetadata& metadata) { … }
void RenderFrameMetadataObserverClientInterceptorForTesting::OnFrameSubmissionForTesting(uint32_t frame_token) { … }
RenderFrameMetadataObserverClientAsyncWaiter::RenderFrameMetadataObserverClientAsyncWaiter(
RenderFrameMetadataObserverClient* proxy) : … { … }
RenderFrameMetadataObserverClientAsyncWaiter::~RenderFrameMetadataObserverClientAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif