#include "device/gamepad/nintendo_data_fetcher.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/task/sequenced_task_runner.h"
#include "device/gamepad/gamepad_service.h"
#include "device/gamepad/gamepad_uma.h"
namespace device {
NintendoDataFetcher::NintendoDataFetcher() = default;
NintendoDataFetcher::~NintendoDataFetcher() { … }
GamepadSource NintendoDataFetcher::source() { … }
void NintendoDataFetcher::OnAddedToProvider() { … }
void NintendoDataFetcher::OnGetDevices(
std::vector<mojom::HidDeviceInfoPtr> device_infos) { … }
void NintendoDataFetcher::OnDeviceReady(int source_id) { … }
void NintendoDataFetcher::DeviceAdded(mojom::HidDeviceInfoPtr device_info) { … }
void NintendoDataFetcher::DeviceRemoved(mojom::HidDeviceInfoPtr device_info) { … }
void NintendoDataFetcher::DeviceChanged(mojom::HidDeviceInfoPtr device_info) { … }
bool NintendoDataFetcher::AddDevice(mojom::HidDeviceInfoPtr device_info) { … }
bool NintendoDataFetcher::RemoveDevice(const std::string& guid) { … }
std::unique_ptr<NintendoController>
NintendoDataFetcher::ExtractAssociatedDevice(const NintendoController* device) { … }
void NintendoDataFetcher::GetGamepadData(bool) { … }
NintendoController* NintendoDataFetcher::GetControllerFromGuid(
const std::string& guid) { … }
NintendoController* NintendoDataFetcher::GetControllerFromSourceId(
int source_id) { … }
void NintendoDataFetcher::PlayEffect(
int source_id,
mojom::GamepadHapticEffectType type,
mojom::GamepadEffectParametersPtr params,
mojom::GamepadHapticsManager::PlayVibrationEffectOnceCallback callback,
scoped_refptr<base::SequencedTaskRunner> callback_runner) { … }
void NintendoDataFetcher::ResetVibration(
int source_id,
mojom::GamepadHapticsManager::ResetVibrationActuatorCallback callback,
scoped_refptr<base::SequencedTaskRunner> callback_runner) { … }
}