#include "components/printing/common/print.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "components/printing/common/print.mojom-params-data.h"
namespace printing {
namespace mojom {
NOINLINE static const char* PrintFailureReasonToStringHelper(PrintFailureReason value) { … }
std::string PrintFailureReasonToString(PrintFailureReason value) { … }
std::ostream& operator<<(std::ostream& os, PrintFailureReason value) { … }
namespace internal {
bool PrintWithParamsResult_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context,
bool inlined) { … }
bool PreviewIds_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PreviewIds_Data::PreviewIds_Data()
: … { … }
bool RequestPrintPreviewParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RequestPrintPreviewParams_Data::RequestPrintPreviewParams_Data()
: … { … }
bool PrintFrameContentParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintFrameContentParams_Data::PrintFrameContentParams_Data()
: … { … }
bool OptionsFromDocumentParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OptionsFromDocumentParams_Data::OptionsFromDocumentParams_Data()
: … { … }
bool DidPrintContentParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DidPrintContentParams_Data::DidPrintContentParams_Data()
: … { … }
bool DidStartPreviewParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DidStartPreviewParams_Data::DidStartPreviewParams_Data()
: … { … }
bool DidPreviewPageParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DidPreviewPageParams_Data::DidPreviewPageParams_Data()
: … { … }
bool DidPreviewDocumentParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DidPreviewDocumentParams_Data::DidPreviewDocumentParams_Data()
: … { … }
bool PrintParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintParams_Data::PrintParams_Data()
: … { … }
bool PrintPagesParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPagesParams_Data::PrintPagesParams_Data()
: … { … }
bool DidPrintDocumentParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DidPrintDocumentParams_Data::DidPrintDocumentParams_Data()
: … { … }
bool ScriptedPrintParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ScriptedPrintParams_Data::ScriptedPrintParams_Data()
: … { … }
bool PrintWithParamsResultData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintWithParamsResultData_Data::PrintWithParamsResultData_Data()
: … { … }
bool PrintPreviewUI_SetOptionsFromDocument_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_SetOptionsFromDocument_Params_Data::PrintPreviewUI_SetOptionsFromDocument_Params_Data()
: … { … }
bool PrintPreviewUI_DidPrepareDocumentForPreview_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_DidPrepareDocumentForPreview_Params_Data::PrintPreviewUI_DidPrepareDocumentForPreview_Params_Data()
: … { … }
bool PrintPreviewUI_DidPreviewPage_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_DidPreviewPage_Params_Data::PrintPreviewUI_DidPreviewPage_Params_Data()
: … { … }
bool PrintPreviewUI_MetafileReadyForPrinting_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_MetafileReadyForPrinting_Params_Data::PrintPreviewUI_MetafileReadyForPrinting_Params_Data()
: … { … }
bool PrintPreviewUI_PrintPreviewFailed_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_PrintPreviewFailed_Params_Data::PrintPreviewUI_PrintPreviewFailed_Params_Data()
: … { … }
bool PrintPreviewUI_PrintPreviewCancelled_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_PrintPreviewCancelled_Params_Data::PrintPreviewUI_PrintPreviewCancelled_Params_Data()
: … { … }
bool PrintPreviewUI_PrinterSettingsInvalid_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_PrinterSettingsInvalid_Params_Data::PrintPreviewUI_PrinterSettingsInvalid_Params_Data()
: … { … }
bool PrintPreviewUI_DidGetDefaultPageLayout_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_DidGetDefaultPageLayout_Params_Data::PrintPreviewUI_DidGetDefaultPageLayout_Params_Data()
: … { … }
bool PrintPreviewUI_DidStartPreview_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintPreviewUI_DidStartPreview_Params_Data::PrintPreviewUI_DidStartPreview_Params_Data()
: … { … }
bool PrintRenderFrame_PrintRequestedPages_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintRequestedPages_Params_Data::PrintRenderFrame_PrintRequestedPages_Params_Data()
: … { … }
bool PrintRenderFrame_PrintWithParams_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintWithParams_Params_Data::PrintRenderFrame_PrintWithParams_Params_Data()
: … { … }
bool PrintRenderFrame_PrintWithParams_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintWithParams_ResponseParams_Data::PrintRenderFrame_PrintWithParams_ResponseParams_Data()
: … { … }
bool PrintRenderFrame_PrintForSystemDialog_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintForSystemDialog_Params_Data::PrintRenderFrame_PrintForSystemDialog_Params_Data()
: … { … }
bool PrintRenderFrame_InitiatePrintPreview_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_InitiatePrintPreview_Params_Data::PrintRenderFrame_InitiatePrintPreview_Params_Data()
: … { … }
bool PrintRenderFrame_SetPrintPreviewUI_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_SetPrintPreviewUI_Params_Data::PrintRenderFrame_SetPrintPreviewUI_Params_Data()
: … { … }
bool PrintRenderFrame_PrintPreview_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintPreview_Params_Data::PrintRenderFrame_PrintPreview_Params_Data()
: … { … }
bool PrintRenderFrame_OnPrintPreviewDialogClosed_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_OnPrintPreviewDialogClosed_Params_Data::PrintRenderFrame_OnPrintPreviewDialogClosed_Params_Data()
: … { … }
bool PrintRenderFrame_PrintFrameContent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintFrameContent_Params_Data::PrintRenderFrame_PrintFrameContent_Params_Data()
: … { … }
bool PrintRenderFrame_PrintFrameContent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintFrameContent_ResponseParams_Data::PrintRenderFrame_PrintFrameContent_ResponseParams_Data()
: … { … }
bool PrintRenderFrame_ConnectToPdfRenderer_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_ConnectToPdfRenderer_Params_Data::PrintRenderFrame_ConnectToPdfRenderer_Params_Data()
: … { … }
bool PrintRenderFrame_PrintingDone_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintingDone_Params_Data::PrintRenderFrame_PrintingDone_Params_Data()
: … { … }
bool PrintRenderFrame_PrintNodeUnderContextMenu_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintRenderFrame_PrintNodeUnderContextMenu_Params_Data::PrintRenderFrame_PrintNodeUnderContextMenu_Params_Data()
: … { … }
bool PrintManagerHost_DidGetPrintedPagesCount_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_DidGetPrintedPagesCount_Params_Data::PrintManagerHost_DidGetPrintedPagesCount_Params_Data()
: … { … }
bool PrintManagerHost_GetDefaultPrintSettings_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_GetDefaultPrintSettings_Params_Data::PrintManagerHost_GetDefaultPrintSettings_Params_Data()
: … { … }
bool PrintManagerHost_GetDefaultPrintSettings_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_GetDefaultPrintSettings_ResponseParams_Data::PrintManagerHost_GetDefaultPrintSettings_ResponseParams_Data()
: … { … }
bool PrintManagerHost_DidShowPrintDialog_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_DidShowPrintDialog_Params_Data::PrintManagerHost_DidShowPrintDialog_Params_Data()
: … { … }
bool PrintManagerHost_DidPrintDocument_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_DidPrintDocument_Params_Data::PrintManagerHost_DidPrintDocument_Params_Data()
: … { … }
bool PrintManagerHost_DidPrintDocument_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_DidPrintDocument_ResponseParams_Data::PrintManagerHost_DidPrintDocument_ResponseParams_Data()
: … { … }
bool PrintManagerHost_IsPrintingEnabled_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_IsPrintingEnabled_Params_Data::PrintManagerHost_IsPrintingEnabled_Params_Data()
: … { … }
bool PrintManagerHost_IsPrintingEnabled_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_IsPrintingEnabled_ResponseParams_Data::PrintManagerHost_IsPrintingEnabled_ResponseParams_Data()
: … { … }
bool PrintManagerHost_ScriptedPrint_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_ScriptedPrint_Params_Data::PrintManagerHost_ScriptedPrint_Params_Data()
: … { … }
bool PrintManagerHost_ScriptedPrint_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_ScriptedPrint_ResponseParams_Data::PrintManagerHost_ScriptedPrint_ResponseParams_Data()
: … { … }
bool PrintManagerHost_PrintingFailed_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_PrintingFailed_Params_Data::PrintManagerHost_PrintingFailed_Params_Data()
: … { … }
bool PrintManagerHost_UpdatePrintSettings_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_UpdatePrintSettings_Params_Data::PrintManagerHost_UpdatePrintSettings_Params_Data()
: … { … }
bool PrintManagerHost_UpdatePrintSettings_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_UpdatePrintSettings_ResponseParams_Data::PrintManagerHost_UpdatePrintSettings_ResponseParams_Data()
: … { … }
bool PrintManagerHost_SetupScriptedPrintPreview_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_SetupScriptedPrintPreview_Params_Data::PrintManagerHost_SetupScriptedPrintPreview_Params_Data()
: … { … }
bool PrintManagerHost_SetupScriptedPrintPreview_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_SetupScriptedPrintPreview_ResponseParams_Data::PrintManagerHost_SetupScriptedPrintPreview_ResponseParams_Data()
: … { … }
bool PrintManagerHost_ShowScriptedPrintPreview_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_ShowScriptedPrintPreview_Params_Data::PrintManagerHost_ShowScriptedPrintPreview_Params_Data()
: … { … }
bool PrintManagerHost_RequestPrintPreview_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_RequestPrintPreview_Params_Data::PrintManagerHost_RequestPrintPreview_Params_Data()
: … { … }
bool PrintManagerHost_CheckForCancel_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_CheckForCancel_Params_Data::PrintManagerHost_CheckForCancel_Params_Data()
: … { … }
bool PrintManagerHost_CheckForCancel_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_CheckForCancel_ResponseParams_Data::PrintManagerHost_CheckForCancel_ResponseParams_Data()
: … { … }
bool PrintManagerHost_SetAccessibilityTree_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PrintManagerHost_SetAccessibilityTree_Params_Data::PrintManagerHost_SetAccessibilityTree_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::printing::mojom::PrintFailureReason>::WriteIntoTrace(
perfetto::TracedValue context, ::printing::mojom::PrintFailureReason value) { … }
}