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

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

Issue 134243004: Telemetry: allow user to specify source type for synthetic gestures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload 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/swipe.py ('k') | tools/telemetry/telemetry/page/actions/tap.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/actions/tap.js
diff --git a/tools/telemetry/telemetry/page/actions/tap.js b/tools/telemetry/telemetry/page/actions/tap.js
index 4bc03e90e231f01815fbc2f5eb82c7b29bfda5b0..83d3493311bb9c6f2e4e97bfed13891b44f981b5 100644
--- a/tools/telemetry/telemetry/page/actions/tap.js
+++ b/tools/telemetry/telemetry/page/actions/tap.js
@@ -12,11 +12,13 @@
this.left_position_percentage_ = opt_options.left_position_percentage;
this.top_position_percentage_ = opt_options.top_position_percentage;
this.duration_ms_ = opt_options.duration_ms;
+ this.gesture_source_type_ = opt_options.gesture_source_type;
} else {
this.element_ = document.body;
this.left_position_percentage_ = 0.5;
this.top_position_percentage_ = 0.5;
this.duration_ms_ = 0;
+ this.gesture_source_type_ = chrome.gpuBenchmarking.DEFAULT_INPUT;
}
}
@@ -54,7 +56,8 @@
rect.top + rect.height * this.options_.top_position_percentage_;
chrome.gpuBenchmarking.tap(position_left, position_top,
this.onGestureComplete_.bind(this),
- this.options_.duration_ms_);
+ this.options_.duration_ms_,
+ this.options_.gesture_source_type_);
};
TapAction.prototype.onGestureComplete_ = function() {
« no previous file with comments | « tools/telemetry/telemetry/page/actions/swipe.py ('k') | tools/telemetry/telemetry/page/actions/tap.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698