#include "third_party/blink/renderer/modules/device_orientation/device_motion_event_pump.h"
#include <cmath>
#include "base/numerics/angle_conversions.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading.h"
#include "services/device/public/mojom/sensor.mojom-blink.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/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/platform_event_controller.h"
#include "third_party/blink/renderer/modules/device_orientation/device_motion_data.h"
#include "third_party/blink/renderer/modules/device_orientation/device_motion_event_acceleration.h"
#include "third_party/blink/renderer/modules/device_orientation/device_motion_event_pump.h"
#include "third_party/blink/renderer/modules/device_orientation/device_motion_event_rotation_rate.h"
#include "third_party/blink/renderer/modules/device_orientation/device_sensor_entry.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace {
constexpr double kDefaultPumpDelayMilliseconds = …;
}
namespace blink {
DeviceMotionEventPump::DeviceMotionEventPump(LocalFrame& frame)
: … { … }
DeviceMotionEventPump::~DeviceMotionEventPump() = default;
void DeviceMotionEventPump::SetController(PlatformEventController* controller) { … }
void DeviceMotionEventPump::RemoveController() { … }
DeviceMotionData* DeviceMotionEventPump::LatestDeviceMotionData() { … }
void DeviceMotionEventPump::Trace(Visitor* visitor) const { … }
void DeviceMotionEventPump::StartListening(LocalFrame& frame) { … }
void DeviceMotionEventPump::SendStartMessage(LocalFrame& frame) { … }
void DeviceMotionEventPump::StopListening() { … }
void DeviceMotionEventPump::SendStopMessage() { … }
void DeviceMotionEventPump::NotifyController() { … }
void DeviceMotionEventPump::FireEvent(TimerBase*) { … }
bool DeviceMotionEventPump::SensorsReadyOrErrored() const { … }
DeviceMotionData* DeviceMotionEventPump::GetDataFromSharedMemory() { … }
}