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

Unified Diff: telemetry/telemetry/internal/actions/swipe.js

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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 | « telemetry/telemetry/internal/actions/seek.py ('k') | telemetry/telemetry/internal/actions/swipe.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/actions/swipe.js
diff --git a/telemetry/telemetry/internal/actions/swipe.js b/telemetry/telemetry/internal/actions/swipe.js
index cf97d5cbbc9c43ad4b1bceecb311b2b95f8999fa..517485c22118f0b4bc5180980929f6ffb8c58559 100644
--- a/telemetry/telemetry/internal/actions/swipe.js
+++ b/telemetry/telemetry/internal/actions/swipe.js
@@ -26,15 +26,17 @@
function supportedByBrowser() {
return !!(window.chrome &&
chrome.gpuBenchmarking &&
- chrome.gpuBenchmarking.swipe);
+ chrome.gpuBenchmarking.swipe &&
+ chrome.gpuBenchmarking.visualViewportHeight &&
+ chrome.gpuBenchmarking.visualViewportWidth);
}
// This class swipes a page for a specified distance.
function SwipeAction(opt_callback) {
var self = this;
- this.beginMeasuringHook = function() {}
- this.endMeasuringHook = function() {}
+ this.beginMeasuringHook = function() {};
+ this.endMeasuringHook = function() {};
this.callback_ = opt_callback;
}
« no previous file with comments | « telemetry/telemetry/internal/actions/seek.py ('k') | telemetry/telemetry/internal/actions/swipe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698