chromium/ui/events/velocity_tracker/velocity_tracker_state.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.

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

#include "ui/events/velocity_tracker/velocity_tracker_state.h"

#include "base/check_op.h"
#include "ui/events/velocity_tracker/motion_event.h"

namespace ui {
namespace {
// Special constant to request the velocity of the active pointer.
const int ACTIVE_POINTER_ID =;
}

VelocityTrackerState::VelocityTrackerState(VelocityTracker::Strategy strategy)
    :{}

VelocityTrackerState::~VelocityTrackerState() {}

void VelocityTrackerState::Clear() {}

void VelocityTrackerState::AddMovement(const MotionEvent& event) {}

void VelocityTrackerState::ComputeCurrentVelocity(int32_t units,
                                                  float max_velocity) {}

float VelocityTrackerState::GetXVelocity(int32_t id) const {}

float VelocityTrackerState::GetYVelocity(int32_t id) const {}

void VelocityTrackerState::GetVelocity(int32_t id,
                                       float* out_vx,
                                       float* out_vy) const {}

}  // namespace ui