#include "third_party/blink/renderer/modules/sensor/sensor_proxy_impl.h"
#include "services/device/public/cpp/generic_sensor/sensor_traits.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/modules/sensor/sensor_provider_proxy.h"
#include "third_party/blink/renderer/modules/sensor/sensor_reading_remapper.h"
SensorCreationResult;
namespace blink {
SensorProxyImpl::SensorProxyImpl(device::mojom::blink::SensorType sensor_type,
SensorProviderProxy* provider,
Page* page)
: … { … }
SensorProxyImpl::~SensorProxyImpl() { … }
void SensorProxyImpl::Trace(Visitor* visitor) const { … }
void SensorProxyImpl::Initialize() { … }
void SensorProxyImpl::AddConfiguration(
device::mojom::blink::SensorConfigurationPtr configuration,
base::OnceCallback<void(bool)> callback) { … }
void SensorProxyImpl::RemoveConfiguration(
device::mojom::blink::SensorConfigurationPtr configuration) { … }
double SensorProxyImpl::GetDefaultFrequency() const { … }
std::pair<double, double> SensorProxyImpl::GetFrequencyLimits() const { … }
void SensorProxyImpl::Suspend() { … }
void SensorProxyImpl::Resume() { … }
void SensorProxyImpl::UpdateSensorReading() { … }
void SensorProxyImpl::RaiseError() { … }
void SensorProxyImpl::SensorReadingChanged() { … }
void SensorProxyImpl::ReportError(DOMExceptionCode code,
const String& message) { … }
void SensorProxyImpl::HandleSensorError(SensorCreationResult error) { … }
void SensorProxyImpl::OnSensorCreated(
SensorCreationResult result,
device::mojom::blink::SensorInitParamsPtr params) { … }
void SensorProxyImpl::OnPollingTimer(TimerBase*) { … }
bool SensorProxyImpl::ShouldProcessReadings() const { … }
void SensorProxyImpl::UpdatePollingStatus() { … }
void SensorProxyImpl::RemoveActiveFrequency(double frequency) { … }
void SensorProxyImpl::AddActiveFrequency(double frequency) { … }
}