#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/drag/drag.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/drag/drag.mojom-params-data.h"
#include "third_party/blink/public/mojom/drag/drag.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/drag/drag.mojom-import-headers.h"
#include "third_party/blink/public/mojom/drag/drag.mojom-test-utils.h"
namespace blink::mojom {
AllowedDragOperations::AllowedDragOperations()
: … { … }
AllowedDragOperations::AllowedDragOperations(
bool allow_copy_in,
bool allow_link_in,
bool allow_move_in)
: … { … }
AllowedDragOperations::~AllowedDragOperations() = default;
void AllowedDragOperations::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AllowedDragOperations::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DragItemString::DragItemString()
: … { … }
DragItemString::DragItemString(
const std::string& string_type_in,
const ::std::u16string& string_data_in,
const std::optional<::std::u16string>& title_in,
const std::optional<::GURL>& base_url_in)
: … { … }
DragItemString::~DragItemString() = default;
void DragItemString::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DragItemString::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DragItemBinary::DragItemBinary()
: … { … }
DragItemBinary::DragItemBinary(
::mojo_base::BigBuffer data_in,
bool is_image_accessible_in,
const ::GURL& source_url_in,
const ::base::FilePath& filename_extension_in,
const std::optional<std::string>& content_disposition_in)
: … { … }
DragItemBinary::~DragItemBinary() = default;
void DragItemBinary::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DragItemBinary::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DragItemFileSystemFile::DragItemFileSystemFile()
: … { … }
DragItemFileSystemFile::DragItemFileSystemFile(
const ::GURL& url_in,
int64_t size_in,
const std::optional<std::string>& file_system_id_in,
::blink::mojom::SerializedBlobPtr serialized_blob_in)
: … { … }
DragItemFileSystemFile::~DragItemFileSystemFile() = default;
void DragItemFileSystemFile::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DragItemFileSystemFile::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DragData::DragData()
: … { … }
DragData::DragData(
std::vector<DragItemPtr> items_in,
const std::optional<std::string>& file_system_id_in,
bool force_default_action_in,
::network::mojom::ReferrerPolicy referrer_policy_in)
: … { … }
DragData::~DragData() = default;
void DragData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DragData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DragEventSourceInfo::DragEventSourceInfo()
: … { … }
DragEventSourceInfo::DragEventSourceInfo(
const ::gfx::Point& location_in,
::ui::mojom::DragEventSource source_in)
: … { … }
DragEventSourceInfo::~DragEventSourceInfo() = default;
void DragEventSourceInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DragEventSourceInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DragItem::DragItem() : … { … }
DragItem::~DragItem() { … }
void DragItem::set_string(
DragItemStringPtr string) { … }
void DragItem::set_file(
::blink::mojom::DataTransferFilePtr file) { … }
void DragItem::set_binary(
DragItemBinaryPtr binary) { … }
void DragItem::set_file_system_file(
DragItemFileSystemFilePtr file_system_file) { … }
void DragItem::DestroyActive() { … }
bool DragItem::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::AllowedDragOperations::DataView, ::blink::mojom::AllowedDragOperationsPtr>::Read(
::blink::mojom::AllowedDragOperations::DataView input,
::blink::mojom::AllowedDragOperationsPtr* output) { … }
bool StructTraits<::blink::mojom::DragItemString::DataView, ::blink::mojom::DragItemStringPtr>::Read(
::blink::mojom::DragItemString::DataView input,
::blink::mojom::DragItemStringPtr* output) { … }
bool StructTraits<::blink::mojom::DragItemBinary::DataView, ::blink::mojom::DragItemBinaryPtr>::Read(
::blink::mojom::DragItemBinary::DataView input,
::blink::mojom::DragItemBinaryPtr* output) { … }
bool StructTraits<::blink::mojom::DragItemFileSystemFile::DataView, ::blink::mojom::DragItemFileSystemFilePtr>::Read(
::blink::mojom::DragItemFileSystemFile::DataView input,
::blink::mojom::DragItemFileSystemFilePtr* output) { … }
bool StructTraits<::blink::mojom::DragData::DataView, ::blink::mojom::DragDataPtr>::Read(
::blink::mojom::DragData::DataView input,
::blink::mojom::DragDataPtr* output) { … }
bool StructTraits<::blink::mojom::DragEventSourceInfo::DataView, ::blink::mojom::DragEventSourceInfoPtr>::Read(
::blink::mojom::DragEventSourceInfo::DataView input,
::blink::mojom::DragEventSourceInfoPtr* output) { … }
bool UnionTraits<::blink::mojom::DragItem::DataView, ::blink::mojom::DragItemPtr>::Read(
::blink::mojom::DragItem::DataView input,
::blink::mojom::DragItemPtr* output) { … }
}
namespace blink::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif