#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/frame/find_in_page.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/frame/find_in_page.mojom-params-data.h"
#include "third_party/blink/public/mojom/frame/find_in_page.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/frame/find_in_page.mojom-import-headers.h"
#include "third_party/blink/public/mojom/frame/find_in_page.mojom-test-utils.h"
namespace blink::mojom {
FindOptions::FindOptions()
: … { … }
FindOptions::FindOptions(
bool forward_in,
bool match_case_in,
bool new_session_in,
bool find_match_in,
bool force_in,
bool run_synchronously_for_testing_in)
: … { … }
FindOptions::~FindOptions() = default;
size_t FindOptions::Hash(size_t seed) const { … }
void FindOptions::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FindOptions::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char FindInPage::Name_[] = …;
FindInPage::IPCStableHashFunction FindInPage::MessageToMethodInfo_(mojo::Message& message) { … }
const char* FindInPage::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FindInPage::Find_Sym::IPCStableHash() { … }
uint32_t FindInPage::StopFinding_Sym::IPCStableHash() { … }
uint32_t FindInPage::ClearActiveFindMatch_Sym::IPCStableHash() { … }
uint32_t FindInPage::SetClient_Sym::IPCStableHash() { … }
# endif
FindInPageProxy::FindInPageProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void FindInPageProxy::Find(
int32_t in_request_id, const std::string& in_search_text, FindOptionsPtr in_options) { … }
void FindInPageProxy::StopFinding(
StopFindAction in_action) { … }
void FindInPageProxy::ClearActiveFindMatch(
) { … }
void FindInPageProxy::SetClient(
::mojo::PendingRemote<FindInPageClient> in_client) { … }
bool FindInPageStubDispatch::Accept(
FindInPage* impl,
mojo::Message* message) { … }
bool FindInPageStubDispatch::AcceptWithResponder(
FindInPage* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFindInPageValidationInfo[] = …;
bool FindInPageRequestValidator::Accept(mojo::Message* message) { … }
const char FindInPageClient::Name_[] = …;
FindInPageClient::IPCStableHashFunction FindInPageClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* FindInPageClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t FindInPageClient::SetNumberOfMatches_Sym::IPCStableHash() { … }
uint32_t FindInPageClient::SetActiveMatch_Sym::IPCStableHash() { … }
# endif
FindInPageClientProxy::FindInPageClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void FindInPageClientProxy::SetNumberOfMatches(
int32_t in_request_id, uint32_t in_number_of_matches, FindMatchUpdateType in_update_type) { … }
void FindInPageClientProxy::SetActiveMatch(
int32_t in_request_id, const ::gfx::Rect& in_active_match_rect, int32_t in_active_match_ordinal, FindMatchUpdateType in_update_type) { … }
bool FindInPageClientStubDispatch::Accept(
FindInPageClient* impl,
mojo::Message* message) { … }
bool FindInPageClientStubDispatch::AcceptWithResponder(
FindInPageClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFindInPageClientValidationInfo[] = …;
bool FindInPageClientRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::FindOptions::DataView, ::blink::mojom::FindOptionsPtr>::Read(
::blink::mojom::FindOptions::DataView input,
::blink::mojom::FindOptionsPtr* output) { … }
}
namespace blink::mojom {
void FindInPageInterceptorForTesting::Find(int32_t request_id, const std::string& search_text, FindOptionsPtr options) { … }
void FindInPageInterceptorForTesting::StopFinding(StopFindAction action) { … }
void FindInPageInterceptorForTesting::ClearActiveFindMatch() { … }
void FindInPageInterceptorForTesting::SetClient(::mojo::PendingRemote<FindInPageClient> client) { … }
FindInPageAsyncWaiter::FindInPageAsyncWaiter(
FindInPage* proxy) : … { … }
FindInPageAsyncWaiter::~FindInPageAsyncWaiter() = default;
void FindInPageClientInterceptorForTesting::SetNumberOfMatches(int32_t request_id, uint32_t number_of_matches, FindMatchUpdateType update_type) { … }
void FindInPageClientInterceptorForTesting::SetActiveMatch(int32_t request_id, const ::gfx::Rect& active_match_rect, int32_t active_match_ordinal, FindMatchUpdateType update_type) { … }
FindInPageClientAsyncWaiter::FindInPageClientAsyncWaiter(
FindInPageClient* proxy) : … { … }
FindInPageClientAsyncWaiter::~FindInPageClientAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif