#include "third_party/blink/renderer/modules/gamepad/gamepad_shared_memory_reader.h"
#include "base/metrics/histogram_macros.h"
#include "base/task/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "device/gamepad/public/cpp/gamepads.h"
#include "device/gamepad/public/mojom/gamepad_hardware_buffer.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/modules/gamepad/gamepad_listener.h"
namespace blink {
GamepadSharedMemoryReader::GamepadSharedMemoryReader(LocalDOMWindow& window)
: … { … }
void GamepadSharedMemoryReader::Trace(Visitor* visitor) const { … }
void GamepadSharedMemoryReader::SendStartMessage() { … }
void GamepadSharedMemoryReader::SendStopMessage() { … }
void GamepadSharedMemoryReader::Start(blink::GamepadListener* listener) { … }
void GamepadSharedMemoryReader::Stop() { … }
void GamepadSharedMemoryReader::SampleGamepads(device::Gamepads* gamepads) { … }
GamepadSharedMemoryReader::~GamepadSharedMemoryReader() { … }
void GamepadSharedMemoryReader::GamepadConnected(
uint32_t index,
const device::Gamepad& gamepad) { … }
void GamepadSharedMemoryReader::GamepadDisconnected(
uint32_t index,
const device::Gamepad& gamepad) { … }
void GamepadSharedMemoryReader::GamepadChanged(
device::mojom::blink::GamepadChangesPtr change) { … }
}