// 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. #ifndef UI_BASE_PREDICTION_LINEAR_PREDICTOR_H_ #define UI_BASE_PREDICTION_LINEAR_PREDICTOR_H_ #include <deque> #include "base/component_export.h" #include "ui/base/prediction/input_predictor.h" namespace ui { // This class use a linear model for prediction // You can choose between a first order equation: // pred_p = last_p + velocity*pred_time // and a second order equation: // pred_p = last_p + velocity*pred_dt + 0.5*acceleration*pred_dt^2 class COMPONENT_EXPORT(UI_BASE_PREDICTION) LinearPredictor : public InputPredictor { … }; } // namespace ui #endif // UI_BASE_PREDICTION_LINEAR_PREDICTOR_H_