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

Unified Diff: tools/telemetry/telemetry/page/actions/swipe.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
Index: tools/telemetry/telemetry/page/actions/swipe.py
diff --git a/tools/telemetry/telemetry/page/actions/swipe.py b/tools/telemetry/telemetry/page/actions/swipe.py
index aac9c75909434c65eae1631de2870564b55b7a08..c8f85880a617b8a64ce11f2d0b7c45f02c695ea5 100644
--- a/tools/telemetry/telemetry/page/actions/swipe.py
+++ b/tools/telemetry/telemetry/page/actions/swipe.py
@@ -86,13 +86,3 @@ class SwipeAction(GestureAction):
speed))
tab.WaitForJavaScriptExpression('window.__swipeActionDone', 60)
-
- def CanBeBound(self):
- return True
-
- def BindMeasurementJavaScript(self, tab, start_js, stop_js):
- # Make the swipe action start and stop measurement automatically.
- tab.ExecuteJavaScript("""
- window.__swipeAction.beginMeasuringHook = function() { %s };
- window.__swipeAction.endMeasuringHook = function() { %s };
- """ % (start_js, stop_js))
« no previous file with comments | « tools/telemetry/telemetry/page/actions/scroll_bounce.py ('k') | tools/telemetry/telemetry/page/actions/tap.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698