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

Unified Diff: content/browser/renderer_host/synthetic_gesture_calculator.cc

Issue 62443007: Replace old with new synthetic gesture framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declare SyntheticGestureController. 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/synthetic_gesture_calculator.cc
diff --git a/content/browser/renderer_host/synthetic_gesture_calculator.cc b/content/browser/renderer_host/synthetic_gesture_calculator.cc
deleted file mode 100644
index 9816df93b48c6657f91251c5a9f9d81661f6105c..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/synthetic_gesture_calculator.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/renderer_host/synthetic_gesture_calculator.h"
-
-
-namespace {
-
-const float kDefaultPositionDelta = 10.0f;
-
-}
-
-
-namespace content {
-
-SyntheticGestureCalculator::SyntheticGestureCalculator() {
-}
-
-SyntheticGestureCalculator::~SyntheticGestureCalculator() {
-}
-
-float SyntheticGestureCalculator::GetDelta(
- base::TimeTicks now, base::TimeDelta desired_interval) {
- float position_delta = kDefaultPositionDelta;
- if (!last_tick_time_.is_null()) {
- float velocity = kDefaultPositionDelta /
- (float)desired_interval.InMillisecondsF();
- float time_delta = (now - last_tick_time_).InMillisecondsF();
- position_delta = velocity * time_delta;
- }
-
- last_tick_time_ = now;
- return position_delta;
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698