chromium/out/Default/gen/extensions/common/api/printer_provider.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// GENERATED FROM THE API DEFINITION IN
//   extensions/common/api/printer_provider.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "extensions/common/api/printer_provider.h"

#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
#include <string_view>
#include "extensions/common/api/usb.h"


UTF8ToUTF16;

namespace extensions {
namespace api {
namespace printer_provider {
//
// Types
//

const char* ToString(PrintError enum_param) {}

PrintError ParsePrintError(std::string_view enum_string) {}

std::u16string GetPrintErrorParseError(std::string_view enum_string) {}


PrinterInfo::PrinterInfo()
 {}

PrinterInfo::~PrinterInfo() = default;
PrinterInfo::PrinterInfo(PrinterInfo&& rhs) noexcept = default;
PrinterInfo& PrinterInfo::operator=(PrinterInfo&& rhs) noexcept = default;
PrinterInfo PrinterInfo::Clone() const {}

// static
bool PrinterInfo::Populate(
    const base::Value::Dict& dict, PrinterInfo& out) {}

// static
bool PrinterInfo::Populate(
    const base::Value& value, PrinterInfo& out) {}

// static
std::optional<PrinterInfo> PrinterInfo::FromValue(const base::Value::Dict& value) {}

// static
std::optional<PrinterInfo> PrinterInfo::FromValue(const base::Value& value) {}

base::Value::Dict PrinterInfo::ToValue() const {}


PrintJob::Ticket::Ticket()
 {}

PrintJob::Ticket::~Ticket() = default;
PrintJob::Ticket::Ticket(Ticket&& rhs) noexcept = default;
PrintJob::Ticket& PrintJob::Ticket::operator=(Ticket&& rhs) noexcept = default;
PrintJob::Ticket PrintJob::Ticket::Clone() const {}

// static
bool PrintJob::Ticket::Populate(
    const base::Value::Dict& dict, Ticket& out) {}

// static
bool PrintJob::Ticket::Populate(
    const base::Value& value, Ticket& out) {}

// static
std::optional<PrintJob::Ticket> PrintJob::Ticket::FromValue(const base::Value::Dict& value) {}

// static
std::optional<PrintJob::Ticket> PrintJob::Ticket::FromValue(const base::Value& value) {}

base::Value::Dict PrintJob::Ticket::ToValue() const {}


PrintJob::Document::Document()
 {}

PrintJob::Document::~Document() = default;
PrintJob::Document::Document(Document&& rhs) noexcept = default;
PrintJob::Document& PrintJob::Document::operator=(Document&& rhs) noexcept = default;
PrintJob::Document PrintJob::Document::Clone() const {}

// static
bool PrintJob::Document::Populate(
    const base::Value::Dict& dict, Document& out) {}

// static
bool PrintJob::Document::Populate(
    const base::Value& value, Document& out) {}

// static
std::optional<PrintJob::Document> PrintJob::Document::FromValue(const base::Value::Dict& value) {}

// static
std::optional<PrintJob::Document> PrintJob::Document::FromValue(const base::Value& value) {}

base::Value::Dict PrintJob::Document::ToValue() const {}



PrintJob::PrintJob()
 {}

PrintJob::~PrintJob() = default;
PrintJob::PrintJob(PrintJob&& rhs) noexcept = default;
PrintJob& PrintJob::operator=(PrintJob&& rhs) noexcept = default;
PrintJob PrintJob::Clone() const {}

// static
bool PrintJob::Populate(
    const base::Value::Dict& dict, PrintJob& out) {}

// static
bool PrintJob::Populate(
    const base::Value& value, PrintJob& out) {}

// static
std::optional<PrintJob> PrintJob::FromValue(const base::Value::Dict& value) {}

// static
std::optional<PrintJob> PrintJob::FromValue(const base::Value& value) {}

base::Value::Dict PrintJob::ToValue() const {}



//
// Events
//

namespace OnGetPrintersRequested {

const char kEventName[] =;

base::Value::List Create(base::Value::Dict result_callback) {}

}  // namespace OnGetPrintersRequested

namespace OnGetUsbPrinterInfoRequested {

const char kEventName[] =;

base::Value::List Create(const extensions::api::usb::Device& device, base::Value::Dict result_callback) {}

}  // namespace OnGetUsbPrinterInfoRequested

namespace OnGetCapabilityRequested {

const char kEventName[] =;

base::Value::List Create(const std::string& printer_id, base::Value::Dict result_callback) {}

}  // namespace OnGetCapabilityRequested

namespace OnPrintRequested {

const char kEventName[] =;

base::Value::List Create(const PrintJob& print_job, base::Value::Dict result_callback) {}

}  // namespace OnPrintRequested

}  // namespace printer_provider
}  // namespace api
}  // namespace extensions