Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: trunk/src/content/browser/renderer_host/synthetic_gesture_calculator.h

Issue 79143002: Revert 236254 "Replace old with new synthetic gesture framework." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // A utility class to calculate the delta for synthetic gesture events. 12 // A utility class to calculate the delta for synthetic gesture events.
13 class SyntheticGestureCalculator { 13 class SyntheticGestureCalculator {
14 public: 14 public:
15 SyntheticGestureCalculator(); 15 SyntheticGestureCalculator();
16 ~SyntheticGestureCalculator(); 16 ~SyntheticGestureCalculator();
17 17
18 float GetDelta(base::TimeTicks now, base::TimeDelta desired_interval); 18 float GetDelta(base::TimeTicks now, base::TimeDelta desired_interval);
19 19
20 private: 20 private:
21 base::TimeTicks last_tick_time_; 21 base::TimeTicks last_tick_time_;
22 22
23 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureCalculator); 23 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureCalculator);
24 }; 24 };
25 25
26 } // namespace content 26 } // namespace content
27 27
28 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_ 28 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNTHETIC_GESTURE_CALCULATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698