chromium/device/gamepad/gamepad_blocklist.cc

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

#include "device/gamepad/gamepad_blocklist.h"

#include <stddef.h>

#include <iterator>

#include "base/containers/contains.h"
#include "base/ranges/algorithm.h"

namespace device {
namespace {

constexpr uint16_t kVendorAlps =;
constexpr uint16_t kVendorApple =;
constexpr uint16_t kVendorAtmel =;
constexpr uint16_t kVendorAwardSoftware =;
constexpr uint16_t kVendorBlue =;
constexpr uint16_t kVendorCorsair =;
constexpr uint16_t kVendorCypressSemiconductor =;
constexpr uint16_t kVendorDarfonElectronics =;
constexpr uint16_t kVendorDWav =;
constexpr uint16_t kVendorElanMicroelectronics =;
constexpr uint16_t kVendorEloTouchSystems =;
constexpr uint16_t kVendorHoltekSemiconductor =;
constexpr uint16_t kVendorLenovo =;
constexpr uint16_t kVendorLgd =;
constexpr uint16_t kVendorMicrosoft =;
constexpr uint16_t kVendorOculus =;
constexpr uint16_t kVendorQuantaComputer =;
constexpr uint16_t kVendorSiliconIntegratedSystems =;
constexpr uint16_t kVendorSunMicrosystems =;
constexpr uint16_t kVendorSynaptics =;
constexpr uint16_t kVendorWacom =;

constexpr struct VendorProductPair {} kBlockedDevices[] =;

// Devices from these vendors are always blocked.
constexpr uint16_t kBlockedVendors[] =;

}  // namespace

bool GamepadIsExcluded(uint16_t vendor_id, uint16_t product_id) {}

}  // namespace device