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

Unified Diff: tools/telemetry/telemetry/page/actions/scroll_bounce.py

Issue 321583006: Remove CanBeBound & BindMeasurementJavaScript since they are not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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/scroll_bounce.py
diff --git a/tools/telemetry/telemetry/page/actions/scroll_bounce.py b/tools/telemetry/telemetry/page/actions/scroll_bounce.py
index 6bdd25f212fff3823aca1949b311f277fd16301f..5ca2f7217970cf2ed6451f654952f616ffe70976 100644
--- a/tools/telemetry/telemetry/page/actions/scroll_bounce.py
+++ b/tools/telemetry/telemetry/page/actions/scroll_bounce.py
@@ -109,13 +109,3 @@ class ScrollBounceAction(GestureAction):
speed))
tab.WaitForJavaScriptExpression('window.__scrollBounceActionDone', 60)
-
- def CanBeBound(self):
- return True
-
- def BindMeasurementJavaScript(self, tab, start_js, stop_js):
- # Make the scroll bounce action start and stop measurement automatically.
- tab.ExecuteJavaScript("""
- window.__scrollBounceAction.beginMeasuringHook = function() { %s };
- window.__scrollBounceAction.endMeasuringHook = function() { %s };
- """ % (start_js, stop_js))
« 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