chromium/device/gamepad/gamepad_id_list.cc

// Copyright 2018 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_id_list.h"

#include <algorithm>
#include <iterator>

#include "base/containers/fixed_flat_map.h"
#include "base/containers/fixed_flat_set.h"

namespace device {

namespace {

static base::LazyInstance<GamepadIdList>::Leaky g_singleton =;

// Information about all game input devices known to Chrome, including
// unsupported devices. Must be sorted by vendor and product ID.
//
// When recording metrics for connected gamepads, vendor and product IDs will
// only be recorded for devices that are in kGamepadInfo.
constexpr auto kGamepadInfo =;

}  // namespace

// static
GamepadIdList& GamepadIdList::Get() {}

XInputType GamepadIdList::GetXInputType(uint16_t vendor_id,
                                        uint16_t product_id) const {}

GamepadId GamepadIdList::GetGamepadId(std::string_view product_name,
                                      uint16_t vendor_id,
                                      uint16_t product_id) const {}

std::pair<uint16_t, uint16_t> GamepadIdList::GetDeviceIdsFromGamepadId(
    GamepadId gamepad_id) const {}

bool GamepadIdList::HasTriggerRumbleSupport(GamepadId gamepad_id) const {}

std::vector<std::tuple<uint16_t, uint16_t, XInputType>>
GamepadIdList::GetGamepadListForTesting() const {}

}  // namespace device