1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_
8 #include "base/time/time.h"
12 // A utility class to calculate the delta for synthetic gesture events.
13 class SyntheticGestureCalculator {
15 SyntheticGestureCalculator();
16 ~SyntheticGestureCalculator();
18 float GetDelta(base::TimeTicks now, base::TimeDelta desired_interval);
21 base::TimeTicks last_tick_time_;
23 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureCalculator);
26 } // namespace content
28 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_