Chromium Code Reviews| Index: tools/telemetry/telemetry/extension_page.py |
| =================================================================== |
| --- tools/telemetry/telemetry/extension_page.py (revision 0) |
| +++ tools/telemetry/telemetry/extension_page.py (revision 0) |
| @@ -0,0 +1,21 @@ |
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +DEFAULT_EXTENSION_TIMEOUT = 60 |
| + |
| +class ExtensionPage(object): |
|
nduca
2013/02/01 00:25:50
Do we need a followup crbug for using a base class
achuithb
2013/02/06 00:23:03
Done.
|
| + """Represents a an extension page in the browser""" |
| + def __init__(self, inspector_backend): |
| + self._inspector_backend = inspector_backend |
| + |
| + def WaitForDocumentReadyStateToBeInteractiveOrBetter(self, |
|
nduca
2013/02/01 00:25:50
You dont have docstrings on this. Bad. Followup bu
achuithb
2013/02/06 00:23:03
Done.
|
| + timeout=DEFAULT_EXTENSION_TIMEOUT): |
| + self._inspector_backend.WaitForDocumentReadyStateToBeInteractiveOrBetter( |
| + timeout) |
| + |
| + def ExecuteJavaScript(self, expr, timeout=DEFAULT_EXTENSION_TIMEOUT): |
|
nduca
2013/02/01 00:25:50
yeah i really would like a base class. I'm sorry.
achuithb
2013/02/06 00:23:03
Done.
|
| + self._inspector_backend.ExecuteJavaScript(expr, timeout) |
| + |
| + def EvaluateJavaScript(self, expr, timeout=DEFAULT_EXTENSION_TIMEOUT): |
| + return self._inspector_backend.EvaluateJavaScript(expr, timeout) |
| Property changes on: tools/telemetry/telemetry/extension_page.py |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |