#ifndef EXTENSIONS_COMMON_API_HID_H__
#define EXTENSIONS_COMMON_API_HID_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
namespace extensions {
namespace api {
namespace hid {
struct HidCollectionInfo { … };
struct HidDeviceInfo { … };
struct HidConnectInfo { … };
struct DeviceFilter { … };
struct GetDevicesOptions { … };
namespace GetDevices {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<HidDeviceInfo>& devices);
}
}
namespace Connect {
struct Params { … };
namespace Results {
base::Value::List Create(const HidConnectInfo& connection);
}
}
namespace Disconnect {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace Receive {
struct Params { … };
namespace Results {
base::Value::List Create(int report_id, const std::vector<uint8_t>& data);
}
}
namespace Send {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace ReceiveFeatureReport {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<uint8_t>& data);
}
}
namespace SendFeatureReport {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace OnDeviceAdded {
extern const char kEventName[];
base::Value::List Create(const HidDeviceInfo& device);
}
namespace OnDeviceRemoved {
extern const char kEventName[];
base::Value::List Create(int device_id);
}
}
}
}
#endif