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/pinch.py

Issue 277143003: Add NavigateToPage API for action_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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 b7085c5622b710f7ece677882041446e3775bc76..5a1f7e4d7418b8954e20c6486468a91b9247e3fd 100644
--- a/tools/telemetry/telemetry/page/actions/pinch.py
+++ b/tools/telemetry/telemetry/page/actions/pinch.py
@@ -10,7 +10,7 @@ class PinchAction(GestureAction):
def __init__(self, attributes=None):
super(PinchAction, self).__init__(attributes)
- def WillRunAction(self, page, tab):
+ def WillRunAction(self, tab):
for js_file in ['gesture_common.js', 'pinch.js']:
with open(os.path.join(os.path.dirname(__file__), js_file)) as f:
js = f.read()
@@ -36,7 +36,7 @@ class PinchAction(GestureAction):
window.__pinchAction = new __PinchAction(%s);"""
% done_callback)
- def RunGesture(self, page, tab):
+ def RunGesture(self, tab):
left_anchor_percentage = getattr(self, 'left_anchor_percentage', 0.5)
top_anchor_percentage = getattr(self, 'top_anchor_percentage', 0.5)
zoom_in = getattr(self, 'zoom_in', True)
« no previous file with comments | « tools/telemetry/telemetry/page/actions/page_action.py ('k') | tools/telemetry/telemetry/page/actions/play.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698