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

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

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 #include "content/browser/renderer_host/synthetic_gesture_calculator.h" 5 #include "content/browser/renderer_host/synthetic_gesture_calculator.h"
6 6
7 7
8 namespace { 8 namespace {
9 9
10 const float kDefaultPositionDelta = 10.0f; 10 const float kDefaultPositionDelta = 10.0f;
(...skipping 17 matching lines...) Expand all
28 (float)desired_interval.InMillisecondsF(); 28 (float)desired_interval.InMillisecondsF();
29 float time_delta = (now - last_tick_time_).InMillisecondsF(); 29 float time_delta = (now - last_tick_time_).InMillisecondsF();
30 position_delta = velocity * time_delta; 30 position_delta = velocity * time_delta;
31 } 31 }
32 32
33 last_tick_time_ = now; 33 last_tick_time_ = now;
34 return position_delta; 34 return position_delta;
35 } 35 }
36 36
37 } // namespace content 37 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698