#include "extensions/common/api/offscreen.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>
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace offscreen {
const char* ToString(Reason enum_param) { … }
Reason ParseReason(std::string_view enum_string) { … }
std::u16string GetReasonParseError(std::string_view enum_string) { … }
CreateParameters::CreateParameters()
{ … }
CreateParameters::~CreateParameters() = default;
CreateParameters::CreateParameters(CreateParameters&& rhs) noexcept = default;
CreateParameters& CreateParameters::operator=(CreateParameters&& rhs) noexcept = default;
CreateParameters CreateParameters::Clone() const { … }
bool CreateParameters::Populate(
const base::Value::Dict& dict, CreateParameters& out) { … }
bool CreateParameters::Populate(
const base::Value& value, CreateParameters& out) { … }
std::optional<CreateParameters> CreateParameters::FromValue(const base::Value::Dict& value) { … }
std::optional<CreateParameters> CreateParameters::FromValue(const base::Value& value) { … }
base::Value::Dict CreateParameters::ToValue() const { … }
namespace CreateDocument {
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) { … }
base::Value::List Results::Create() { … }
}
namespace CloseDocument {
base::Value::List Results::Create() { … }
}
namespace HasDocument {
base::Value::List Results::Create(bool result) { … }
}
}
}
}