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

Unified Diff: tools/telemetry/telemetry/core/browser_options.py

Issue 134243004: Telemetry: allow user to specify source type for synthetic gestures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload Created 6 years, 11 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
« no previous file with comments | « tools/telemetry/telemetry/core/browser.py ('k') | tools/telemetry/telemetry/page/actions/gesture_action.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/browser_options.py
diff --git a/tools/telemetry/telemetry/core/browser_options.py b/tools/telemetry/telemetry/core/browser_options.py
index d1924924c050744069fd632dce0fe21f9fceb52b..9089f859406cacffc8b6e897e81745e0ab71ad0e 100644
--- a/tools/telemetry/telemetry/core/browser_options.py
+++ b/tools/telemetry/telemetry/core/browser_options.py
@@ -268,6 +268,18 @@ class BrowserOptions(object):
help='Ignored argument for compatibility with runtest.py harness')
parser.add_option_group(group)
+ group = optparse.OptionGroup(parser, 'Synthetic gesture options')
+ synthetic_gesture_source_type_choices = [ 'default', 'mouse', 'touch' ]
+ group.add_option('--synthetic-gesture-source-type',
+ dest='synthetic_gesture_source_type',
+ default='default', type='choice',
+ choices=synthetic_gesture_source_type_choices,
+ help='Specify the source type for synthetic gestures. Note that some ' +
+ 'actions only support a specific source type. ' +
+ 'Supported values: ' +
+ ', '.join(synthetic_gesture_source_type_choices))
+ parser.add_option_group(group)
+
def UpdateFromParseResults(self, finder_options):
"""Copies our options from finder_options"""
@@ -278,6 +290,7 @@ class BrowserOptions(object):
'profile_dir',
'profile_type',
'show_stdout',
+ 'synthetic_gesture_source_type',
]
for o in browser_options_list:
a = getattr(finder_options, o, None)
« no previous file with comments | « tools/telemetry/telemetry/core/browser.py ('k') | tools/telemetry/telemetry/page/actions/gesture_action.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698