#include "device/gamepad/gamepad_monitor.h"
#include <utility>
#include "base/memory/ptr_util.h"
#include "device/gamepad/gamepad_service.h"
#include "device/gamepad/gamepad_shared_buffer.h"
#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
namespace device {
GamepadMonitor::GamepadMonitor() = default;
GamepadMonitor::~GamepadMonitor() { … }
void GamepadMonitor::Create(
mojo::PendingReceiver<mojom::GamepadMonitor> receiver) { … }
void GamepadMonitor::OnGamepadConnected(uint32_t index,
const Gamepad& gamepad) { … }
void GamepadMonitor::OnGamepadDisconnected(uint32_t index,
const Gamepad& gamepad) { … }
void GamepadMonitor::OnGamepadChanged(const mojom::GamepadChanges& changes) { … }
void GamepadMonitor::GamepadStartPolling(GamepadStartPollingCallback callback) { … }
void GamepadMonitor::GamepadStopPolling(GamepadStopPollingCallback callback) { … }
void GamepadMonitor::SetObserver(
mojo::PendingRemote<mojom::GamepadObserver> gamepad_observer) { … }
}