chromium/out/Default/gen/extensions/common/api/hid.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/hid.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "extensions/common/api/hid.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"

UTF8ToUTF16;

namespace extensions {
namespace api {
namespace hid {
//
// Types
//

HidCollectionInfo::HidCollectionInfo()
:{}

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

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

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

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

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

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


HidDeviceInfo::HidDeviceInfo()
:{}

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

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

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

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

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

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


HidConnectInfo::HidConnectInfo()
:{}

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

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

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

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

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

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


DeviceFilter::DeviceFilter()
 {}

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

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

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

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

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

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


GetDevicesOptions::GetDevicesOptions()
 {}

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

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

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

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

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

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



//
// Functions
//

namespace GetDevices {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const std::vector<HidDeviceInfo>& devices) {}
}  // namespace GetDevices

namespace Connect {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const HidConnectInfo& connection) {}
}  // namespace Connect

namespace Disconnect {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace Disconnect

namespace Receive {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(int report_id, const std::vector<uint8_t>& data) {}
}  // namespace Receive

namespace Send {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace Send

namespace ReceiveFeatureReport {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const std::vector<uint8_t>& data) {}
}  // namespace ReceiveFeatureReport

namespace SendFeatureReport {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace SendFeatureReport

//
// Events
//

namespace OnDeviceAdded {

const char kEventName[] =;

base::Value::List Create(const HidDeviceInfo& device) {}

}  // namespace OnDeviceAdded

namespace OnDeviceRemoved {

const char kEventName[] =;

base::Value::List Create(int device_id) {}

}  // namespace OnDeviceRemoved

}  // namespace hid
}  // namespace api
}  // namespace extensions