| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |