chromium/third_party/blink/renderer/modules/device_orientation/device_sensor_entry.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/modules/device_orientation/device_sensor_entry.h"

#include "services/device/public/cpp/generic_sensor/sensor_reading.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading_shared_buffer.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading_shared_buffer_reader.h"
#include "services/device/public/mojom/sensor_provider.mojom-blink.h"
#include "third_party/blink/public/mojom/sensor/web_sensor_provider.mojom-blink.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/modules/device_orientation/device_sensor_event_pump.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"

namespace blink {

DeviceSensorEntry::DeviceSensorEntry(DeviceSensorEventPump* event_pump,
                                     ExecutionContext* context,
                                     device::mojom::blink::SensorType type)
    :{}

DeviceSensorEntry::~DeviceSensorEntry() = default;

void DeviceSensorEntry::Start(
    mojom::blink::WebSensorProvider* sensor_provider) {}

void DeviceSensorEntry::Stop() {}

bool DeviceSensorEntry::IsConnected() const {}

bool DeviceSensorEntry::ReadyOrErrored() const {}

bool DeviceSensorEntry::GetReading(device::SensorReading* reading) {}

void DeviceSensorEntry::Trace(Visitor* visitor) const {}

void DeviceSensorEntry::RaiseError() {}

void DeviceSensorEntry::SensorReadingChanged() {}

void DeviceSensorEntry::OnSensorCreated(
    device::mojom::blink::SensorCreationResult result,
    device::mojom::blink::SensorInitParamsPtr params) {}

void DeviceSensorEntry::OnSensorAddConfiguration(bool success) {}

void DeviceSensorEntry::HandleSensorError() {}

}  // namespace blink