Chromium Code Reviews| Index: content/browser/renderer_host/input/synthetic_gesture.cc |
| diff --git a/content/browser/renderer_host/input/synthetic_gesture.cc b/content/browser/renderer_host/input/synthetic_gesture.cc |
| index 8b2b3bedbe63ca9166056987e68b7a47e6e70646..190ff4a5e0b143dc7ae6799304b0e6624d375eae 100644 |
| --- a/content/browser/renderer_host/input/synthetic_gesture.cc |
| +++ b/content/browser/renderer_host/input/synthetic_gesture.cc |
| @@ -43,4 +43,10 @@ scoped_ptr<SyntheticGesture> SyntheticGesture::Create( |
| return scoped_ptr<SyntheticGesture>(); |
| } |
| +// static |
| +double SyntheticGesture::ConvertTimestampToSeconds( |
| + const base::TimeTicks& timestamp) { |
| + return (timestamp - base::TimeTicks::UnixEpoch()).InSecondsF(); |
|
jdduke (slow)
2014/01/03 18:24:30
The documentation for WebInputEvent is somewhat mi
Dominik Grewe
2014/01/06 11:46:07
Done.
|
| +} |
| + |
| } // namespace content |