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

Unified Diff: tools/telemetry/telemetry/page/actions/scroll.js

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: tools/telemetry/telemetry/page/actions/scroll.js
diff --git a/tools/telemetry/telemetry/page/actions/scroll.js b/tools/telemetry/telemetry/page/actions/scroll.js
index e68d91a12597311e0b4b3d7192d8f38fc72a1375..218fae05161fe629e663c510bf7e6a2208771338 100644
--- a/tools/telemetry/telemetry/page/actions/scroll.js
+++ b/tools/telemetry/telemetry/page/actions/scroll.js
@@ -16,10 +16,12 @@
this.element_ = opt_options.element;
this.left_start_percentage_ = opt_options.left_start_percentage;
this.top_start_percentage_ = opt_options.top_start_percentage;
+ this.gesture_source_type = opt_options.gesture_source_type;
} else {
this.element_ = document.body;
this.left_start_percentage_ = 0.5;
this.top_start_percentage_ = 0.5;
+ this.gesture_source_type = chrome.gpuBenchmarking.DEFAULT_INPUT;
}
}
@@ -73,7 +75,7 @@
rect.top + rect.height * this.options_.top_start_percentage_;
chrome.gpuBenchmarking.smoothScrollBy(distance, function() {
callback();
- }, start_left, start_top);
+ }, start_left, start_top, this.options_.gesture_source_type);
};
// This class scrolls a page from the top to the bottom once.

Powered by Google App Engine
This is Rietveld 408576698