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

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

Issue 14185002: Move browser and url to WebContents from Tab. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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/tab.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
===================================================================
--- tools/telemetry/telemetry/core/web_contents.py (revision 192364)
+++ tools/telemetry/telemetry/core/web_contents.py (working copy)
@@ -24,6 +24,15 @@
Be sure to check browser.supports_tab_control."""
self._inspector_backend.Close()
+ @property
+ def browser(self):
+ """The browser in which this WebContents resides."""
+ return self._inspector_backend.browser
+
+ @property
+ def url(self):
+ return self._inspector_backend.url
+
def WaitForDocumentReadyStateToBeComplete(self,
timeout=DEFAULT_WEB_CONTENTS_TIMEOUT):
self._inspector_backend.WaitForDocumentReadyStateToBeComplete(timeout)
« no previous file with comments | « tools/telemetry/telemetry/core/tab.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698