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

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

Issue 214963004: Support for figuring out the number of contexts in a page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: max_context_id Created 6 years, 6 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/backends/chrome/oobe.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/web_contents.py
diff --git a/tools/telemetry/telemetry/core/web_contents.py b/tools/telemetry/telemetry/core/web_contents.py
index c5137679de7a383edfe192a8c4eb1089f242cba7..e4360179947e673500499461e736c07f61e66626 100644
--- a/tools/telemetry/telemetry/core/web_contents.py
+++ b/tools/telemetry/telemetry/core/web_contents.py
@@ -123,6 +123,11 @@ class WebContents(object):
return self._inspector_backend.EvaluateJavaScript(
expr, context_id=context_id, timeout=timeout)
+ def EnableAllContexts(self):
+ """Enable all contexts in a page. Returns the number of available contexts.
+ """
+ return self._inspector_backend.EnableAllContexts()
+
@property
def message_output_stream(self):
return self._inspector_backend.message_output_stream
« no previous file with comments | « tools/telemetry/telemetry/core/backends/chrome/oobe.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698