// 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. #ifndef UI_EVENTS_BLINK_FLING_BOOSTER_H_ #define UI_EVENTS_BLINK_FLING_BOOSTER_H_ #include "base/time/time.h" #include "third_party/blink/public/common/input/web_gesture_event.h" namespace ui { // This class is used to track fling state and provide "fling boosting". // Boosting is a feature where successive flings can repeatedly increase the // fling velocity so that users can scroll through long documents. This // boosting logic occurs only in certain circumstances so we track the state // and conditions in this class. The FlingController will request the velocity // for all flings from this class; if FlingBooster decides the fling should be // boosted it'll add the new fling's velocity to the previous one's. class FlingBooster { … }; } // namespace ui #endif // UI_EVENTS_BLINK_FLING_BOOSTER_H_