OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | 5 import os |
6 | 6 |
7 from telemetry.core import browser_credentials | 7 from telemetry.core import browser_credentials |
8 from telemetry.core import exceptions | 8 from telemetry.core import exceptions |
9 from telemetry.core import extension_dict | 9 from telemetry.core import extension_dict |
10 from telemetry.core import platform | 10 from telemetry.core import platform |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 @property | 66 @property |
67 def supports_extensions(self): | 67 def supports_extensions(self): |
68 return self._browser_backend.supports_extensions | 68 return self._browser_backend.supports_extensions |
69 | 69 |
70 @property | 70 @property |
71 def supports_tab_control(self): | 71 def supports_tab_control(self): |
72 return self._browser_backend.supports_tab_control | 72 return self._browser_backend.supports_tab_control |
73 | 73 |
74 @property | 74 @property |
| 75 def synthetic_gesture_source_type(self): |
| 76 return self._browser_backend.browser_options.synthetic_gesture_source_type |
| 77 |
| 78 @property |
75 def tabs(self): | 79 def tabs(self): |
76 return self._tabs | 80 return self._tabs |
77 | 81 |
78 @property | 82 @property |
79 def extensions(self): | 83 def extensions(self): |
80 """Returns the extension dictionary if it exists.""" | 84 """Returns the extension dictionary if it exists.""" |
81 if not self.supports_extensions: | 85 if not self.supports_extensions: |
82 raise browser_backend.ExtensionsNotSupportedException( | 86 raise browser_backend.ExtensionsNotSupportedException( |
83 'Extensions not supported') | 87 'Extensions not supported') |
84 return self._extensions | 88 return self._extensions |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 365 |
362 @property | 366 @property |
363 def supports_system_info(self): | 367 def supports_system_info(self): |
364 return self._browser_backend.supports_system_info | 368 return self._browser_backend.supports_system_info |
365 | 369 |
366 def GetSystemInfo(self): | 370 def GetSystemInfo(self): |
367 """Returns low-level information about the system, if available. | 371 """Returns low-level information about the system, if available. |
368 | 372 |
369 See the documentation of the SystemInfo class for more details.""" | 373 See the documentation of the SystemInfo class for more details.""" |
370 return self._browser_backend.GetSystemInfo() | 374 return self._browser_backend.GetSystemInfo() |
OLD | NEW |