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

Unified Diff: tools/telemetry/telemetry/page/actions/scroll.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/scroll.py
diff --git a/tools/telemetry/telemetry/page/actions/scroll.py b/tools/telemetry/telemetry/page/actions/scroll.py
index eddc535363085274728a506c7f545844c8e971c0..1d7aeb83a65a85f29fbe322ba4c8c2919b3fc433 100644
--- a/tools/telemetry/telemetry/page/actions/scroll.py
+++ b/tools/telemetry/telemetry/page/actions/scroll.py
@@ -10,7 +10,7 @@ class ScrollAction(GestureAction):
def __init__(self, attributes=None):
super(ScrollAction, self).__init__(attributes)
- def WillRunAction(self, page, tab):
+ def WillRunAction(self, tab):
for js_file in ['gesture_common.js', 'scroll.js']:
with open(os.path.join(os.path.dirname(__file__), js_file)) as f:
js = f.read()
@@ -43,7 +43,7 @@ class ScrollAction(GestureAction):
window.__scrollAction = new __ScrollAction(%s, %s);"""
% (done_callback, distance_func))
- def RunGesture(self, page, tab):
+ def RunGesture(self, tab):
# scrollable_element_function is a function that passes the scrollable
# element on the page to a callback. For example:
# function (callback) {

Powered by Google App Engine
This is Rietveld 408576698