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

Unified Diff: content/renderer/input/input_scroll_elasticity_controller.cc

Issue 783373002: Add argument to pass elastic overscroll delta to Blink (Chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remote TODOs Created 6 years 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/renderer/input/input_scroll_elasticity_controller.cc
diff --git a/content/renderer/input/input_scroll_elasticity_controller.cc b/content/renderer/input/input_scroll_elasticity_controller.cc
index ca0258eaaef417997f2431e425b15e87f0dce96e..9babcd7c6f1499c9d1d9e9796722e9cdcd4625fc 100644
--- a/content/renderer/input/input_scroll_elasticity_controller.cc
+++ b/content/renderer/input/input_scroll_elasticity_controller.cc
@@ -41,7 +41,7 @@ namespace {
// deltas against the event timestamps, which are in seconds since epoch. Find
// out which is right. Also, avoid querying time, and use frame time instead.
double SystemUptime() {
- return base::Time::Now().ToDoubleT();
+ return base::TimeTicks::Now().ToInternalValue() / 1.0e6;
}
const float kScrollVelocityZeroingTimeout = 0.10f;
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/test/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698