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

Unified Diff: telemetry/telemetry/internal/actions/scroll_bounce.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
Index: telemetry/telemetry/internal/actions/scroll_bounce.js
diff --git a/telemetry/telemetry/internal/actions/scroll_bounce.js b/telemetry/telemetry/internal/actions/scroll_bounce.js
index b41383c096ddd859695f487cd89308371e55134f..ec0fc7ff81f4d88902da0c8525b2de4449160524 100644
--- a/telemetry/telemetry/internal/actions/scroll_bounce.js
+++ b/telemetry/telemetry/internal/actions/scroll_bounce.js
@@ -8,14 +8,16 @@
function supportedByBrowser() {
return !!(window.chrome &&
chrome.gpuBenchmarking &&
- chrome.gpuBenchmarking.scrollBounce);
+ chrome.gpuBenchmarking.scrollBounce &&
+ chrome.gpuBenchmarking.visualViewportHeight &&
+ chrome.gpuBenchmarking.visualViewportWidth);
}
function ScrollBounceAction(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/scroll.py ('k') | telemetry/telemetry/internal/actions/scroll_bounce.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698