chromium/third_party/blink/renderer/modules/sensor/orientation_sensor.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/modules/sensor/orientation_sensor.h"

#include "third_party/blink/renderer/bindings/core/v8/v8_union_dommatrix_float32array_float64array.h"
#include "third_party/blink/renderer/core/geometry/dom_matrix.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"

SensorType;

namespace blink {

std::optional<Vector<double>> OrientationSensor::quaternion() {}

template <typename T>
void DoPopulateMatrix(T* target_matrix,
                      double x,
                      double y,
                      double z,
                      double w) {}

template <>
void DoPopulateMatrix(DOMMatrix* target_matrix,
                      double x,
                      double y,
                      double z,
                      double w) {}

template <typename T>
bool CheckBufferLength(T* buffer) {}

template <>
bool CheckBufferLength(DOMMatrix*) {}

template <typename Matrix>
void OrientationSensor::PopulateMatrixInternal(
    Matrix* target_matrix,
    ExceptionState& exception_state) {}

void OrientationSensor::populateMatrix(
    const V8RotationMatrixType* target_buffer,
    ExceptionState& exception_state) {}

bool OrientationSensor::isReadingDirty() const {}

OrientationSensor::OrientationSensor(
    ExecutionContext* execution_context,
    const SpatialSensorOptions* options,
    ExceptionState& exception_state,
    device::mojom::blink::SensorType type,
    const Vector<mojom::blink::PermissionsPolicyFeature>& features)
    :{}

void OrientationSensor::OnSensorReadingChanged() {}

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

}  // namespace blink