Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / tools / telemetry / telemetry / core / browser_options.py
index d192492..43bf7a9 100644 (file)
@@ -212,6 +212,8 @@ class BrowserOptions(object):
     self.browser_type = None
     self.show_stdout = False
 
+    self.warn_if_no_flash = True
+
     # When set to True, the browser will use the default profile.  Telemetry
     # will not provide an alternate profile directory.
     self.dont_override_profile = False
@@ -268,6 +270,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 +292,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)