#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "printing/mojom/printing_context.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 "printing/mojom/printing_context.mojom-params-data.h"
#include "printing/mojom/printing_context.mojom-shared-message-ids.h"
#include "printing/mojom/printing_context.mojom-import-headers.h"
#include "printing/mojom/printing_context.mojom-test-utils.h"
namespace printing::mojom {
PageMargins::PageMargins()
: … { … }
PageMargins::PageMargins(
int32_t header_in,
int32_t footer_in,
int32_t left_in,
int32_t right_in,
int32_t top_in,
int32_t bottom_in)
: … { … }
PageMargins::~PageMargins() = default;
void PageMargins::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PageMargins::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PageSetup::PageSetup()
: … { … }
PageSetup::PageSetup(
const ::gfx::Size& physical_size_in,
const ::gfx::Rect& printable_area_in,
const ::gfx::Rect& overlay_area_in,
const ::gfx::Rect& content_area_in,
const ::printing::PageMargins& effective_margins_in,
const ::printing::PageMargins& requested_margins_in,
bool forced_margins_in,
int32_t text_height_in)
: … { … }
PageSetup::~PageSetup() = default;
void PageSetup::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PageSetup::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RequestedMedia::RequestedMedia()
: … { … }
RequestedMedia::RequestedMedia(
const ::gfx::Size& size_microns_in,
const std::string& vendor_id_in)
: … { … }
RequestedMedia::~RequestedMedia() = default;
void RequestedMedia::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RequestedMedia::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintSettings::PrintSettings()
: … { … }
PrintSettings::PrintSettings(
std::vector<::printing::PageRange> ranges_in,
bool selection_only_in,
::printing::mojom::MarginType margin_type_in,
const ::std::u16string& title_in,
const ::std::u16string& url_in,
bool display_header_footer_in,
bool should_print_backgrounds_in,
bool collate_in,
::printing::mojom::ColorModel color_in,
int32_t copies_in,
::printing::mojom::DuplexMode duplex_mode_in,
const ::std::u16string& device_name_in,
const ::printing::PrintSettings::RequestedMedia& requested_media_in,
const ::printing::PageSetup& page_setup_device_units_in,
bool borderless_in,
const std::string& media_type_in,
const ::gfx::Size& dpi_in,
double scale_factor_in,
bool rasterize_pdf_in,
bool landscape_in,
bool is_modifiable_in,
const ::printing::PageMargins& requested_custom_margins_in_points_in,
int32_t pages_per_sheet_in,
base::flat_map<std::string, ::base::Value> advanced_settings_in,
::base::Value::Dict system_print_dialog_data_in)
: … { … }
PrintSettings::~PrintSettings() = default;
void PrintSettings::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PrintSettings::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::printing::mojom::PageMargins::DataView, ::printing::mojom::PageMarginsPtr>::Read(
::printing::mojom::PageMargins::DataView input,
::printing::mojom::PageMarginsPtr* output) { … }
bool StructTraits<::printing::mojom::PageSetup::DataView, ::printing::mojom::PageSetupPtr>::Read(
::printing::mojom::PageSetup::DataView input,
::printing::mojom::PageSetupPtr* output) { … }
bool StructTraits<::printing::mojom::RequestedMedia::DataView, ::printing::mojom::RequestedMediaPtr>::Read(
::printing::mojom::RequestedMedia::DataView input,
::printing::mojom::RequestedMediaPtr* output) { … }
bool StructTraits<::printing::mojom::PrintSettings::DataView, ::printing::mojom::PrintSettingsPtr>::Read(
::printing::mojom::PrintSettings::DataView input,
::printing::mojom::PrintSettingsPtr* output) { … }
}
namespace printing::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif