#include "extensions/common/api/printer_provider_internal.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/printer_provider.h"
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace printer_provider_internal {
const char* ToString(PrintError enum_param) { … }
PrintError ParsePrintError(std::string_view enum_string) { … }
std::u16string GetPrintErrorParseError(std::string_view enum_string) { … }
namespace ReportPrinters {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace ReportUsbPrinterInfo {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace ReportPrinterCapability {
Params::Capability::Capability()
{ … }
Params::Capability::~Capability() = default;
Params::Capability::Capability(Capability&& rhs) noexcept = default;
Params::Capability& Params::Capability::operator=(Capability&& rhs) noexcept = default;
Params::Capability Params::Capability::Clone() const { … }
bool Params::Capability::Populate(
const base::Value::Dict& dict, Capability& out) { … }
bool Params::Capability::Populate(
const base::Value& value, Capability& out) { … }
std::optional<Params::Capability> Params::Capability::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::Capability> Params::Capability::FromValue(const base::Value& value) { … }
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace ReportPrintResult {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace GetPrintData {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
Results::Blob::Blob()
{ … }
Results::Blob::~Blob() = default;
Results::Blob::Blob(Blob&& rhs) noexcept = default;
Results::Blob& Results::Blob::operator=(Blob&& rhs) noexcept = default;
base::Value::Dict Results::Blob::ToValue() const { … }
base::Value::List Results::Create(const Blob& blob) { … }
}
}
}
}