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

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

Issue 11858007: Splits SmoothGestureController from RenderWidgetHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds missing ifdef for aura Created 7 years, 9 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 | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2ccfecee77acb68e13964f6cc248150cdbad8207..32952cc5d2c79993bcd68d8a145a744f76d7d3bc 100644
--- a/tools/telemetry/telemetry/page/actions/scroll.js
+++ b/tools/telemetry/telemetry/page/actions/scroll.js
@@ -73,9 +73,13 @@
chrome.gpuBenchmarking &&
chrome.gpuBenchmarking.smoothScrollBy) {
var rect = getBoundingVisibleRect(this.element_);
- chrome.gpuBenchmarking.smoothScrollBy(distance, function() {
- callback();
- }, rect.left + rect.width / 2, rect.top + rect.height / 2);
+ var scrolled = chrome.gpuBenchmarking.smoothScrollBy(
+ distance, function() {
+ callback();
+ },
+ rect.left + rect.width / 2, rect.top + rect.height / 2);
+ if (!scrolled)
+ console.log('Unable to start smooth scrolling');
return;
}
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698