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

Unified Diff: tools/telemetry/telemetry/tab.py

Issue 11663011: Adds function for activating a tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated per Dave's comments. Created 7 years, 12 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
Index: tools/telemetry/telemetry/tab.py
diff --git a/tools/telemetry/telemetry/tab.py b/tools/telemetry/telemetry/tab.py
index 7f3730fa8e8b246947126299582b2d5ca7a986a6..43a509a4a282975a3cc5620774addb8c711c999d 100644
--- a/tools/telemetry/telemetry/tab.py
+++ b/tools/telemetry/telemetry/tab.py
@@ -1,6 +1,7 @@
# 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.
+
from telemetry import inspector_backend
from telemetry import inspector_console
from telemetry import inspector_page
@@ -68,6 +69,10 @@ class Tab(object):
self.Disconnect()
self._tab_controller.CloseTab(self._debugger_url)
+ def Activate(self):
+ """Brings this tab to the foreground."""
+ self._tab_controller.ActivateTab(self._debugger_url)
+
@property
def browser(self):
"""The browser in which this tab resides."""

Powered by Google App Engine
This is Rietveld 408576698