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

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

Issue 128073002: Telemetry: Add speed parameters to swipe and scroll actions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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
« no previous file with comments | « tools/telemetry/telemetry/page/actions/scroll.py ('k') | tools/telemetry/telemetry/page/actions/swipe.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/actions/swipe.js
diff --git a/tools/telemetry/telemetry/page/actions/swipe.js b/tools/telemetry/telemetry/page/actions/swipe.js
index d05b1ef30ab6924aef0ae56889e297cbefd2a8fb..023f7e729eb5a66f7763b1eb6409ad326ea2c55d 100644
--- a/tools/telemetry/telemetry/page/actions/swipe.js
+++ b/tools/telemetry/telemetry/page/actions/swipe.js
@@ -12,12 +12,14 @@
this.top_start_percentage_ = opt_options.top_start_percentage;
this.direction_ = opt_options.direction;
this.distance_ = opt_options.distance;
+ this.speed_ = opt_options.speed;
} else {
this.element_ = document.body;
this.left_start_percentage_ = 0.5;
this.top_start_percentage_ = 0.5;
this.direction_ = 'left';
this.distance_ = 0;
+ this.speed_ = 800;
}
}
@@ -56,7 +58,8 @@
chrome.gpuBenchmarking.swipe(this.options_.direction_,
this.options_.distance_,
this.onGestureComplete_.bind(this),
- start_left, start_top);
+ start_left, start_top,
+ this.options_.speed_);
};
SwipeAction.prototype.onGestureComplete_ = function() {
« no previous file with comments | « tools/telemetry/telemetry/page/actions/scroll.py ('k') | tools/telemetry/telemetry/page/actions/swipe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698