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

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

Powered by Google App Engine
This is Rietveld 408576698