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

// Copyright 2014 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_orientation_event_pump.h"

#include <cmath>

#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_orientation_data.h"
#include "third_party/blink/renderer/modules/device_orientation/device_sensor_entry.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"

namespace {

bool IsAngleDifferentThreshold(double angle1, double angle2) {}

bool IsSignificantlyDifferent(const blink::DeviceOrientationData* data1,
                              const blink::DeviceOrientationData* data2) {}

}  // namespace

namespace blink {

const double DeviceOrientationEventPump::kOrientationThreshold =;

DeviceOrientationEventPump::DeviceOrientationEventPump(LocalFrame& frame,
                                                       bool absolute)
    :{}

DeviceOrientationEventPump::~DeviceOrientationEventPump() = default;

void DeviceOrientationEventPump::SetController(
    PlatformEventController* controller) {}

void DeviceOrientationEventPump::RemoveController() {}

DeviceOrientationData*
DeviceOrientationEventPump::LatestDeviceOrientationData() {}

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

void DeviceOrientationEventPump::SendStartMessage(LocalFrame& frame) {}

void DeviceOrientationEventPump::SendStopMessage() {}

void DeviceOrientationEventPump::NotifyController() {}

void DeviceOrientationEventPump::FireEvent(TimerBase*) {}

void DeviceOrientationEventPump::DidStartIfPossible() {}

bool DeviceOrientationEventPump::SensorsReadyOrErrored() const {}

DeviceOrientationData* DeviceOrientationEventPump::GetDataFromSharedMemory() {}

bool DeviceOrientationEventPump::ShouldFireEvent(
    const DeviceOrientationData* data) const {}

}  // namespace blink