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

Unified Diff: tools/telemetry/telemetry/page/actions/swipe.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/swipe.py
diff --git a/tools/telemetry/telemetry/page/actions/swipe.py b/tools/telemetry/telemetry/page/actions/swipe.py
index e5e7d532f22822b60d5d49c6f42408fc41a5867c..aac9c75909434c65eae1631de2870564b55b7a08 100644
--- a/tools/telemetry/telemetry/page/actions/swipe.py
+++ b/tools/telemetry/telemetry/page/actions/swipe.py
@@ -10,7 +10,7 @@ class SwipeAction(GestureAction):
def __init__(self, attributes=None):
super(SwipeAction, self).__init__(attributes)
- def WillRunAction(self, page, tab):
+ def WillRunAction(self, tab):
for js_file in ['gesture_common.js', 'swipe.js']:
with open(os.path.join(os.path.dirname(__file__), js_file)) as f:
js = f.read()
@@ -36,7 +36,7 @@ class SwipeAction(GestureAction):
window.__swipeAction = new __SwipeAction(%s);"""
% (done_callback))
- def RunGesture(self, page, tab):
+ def RunGesture(self, tab):
left_start_percentage = 0.5
top_start_percentage = 0.5
direction = 'left'
« no previous file with comments | « tools/telemetry/telemetry/page/actions/seek_unittest.py ('k') | tools/telemetry/telemetry/page/actions/tap.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698