1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.backends.chrome.tab_list_backend</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.backends.html"><font color="#ffffff">backends</font></a>.<a href="telemetry.internal.backends.chrome.html"><font color="#ffffff">chrome</font></a>.tab_list_backend</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/backends/chrome/tab_list_backend.py">telemetry/internal/backends/chrome/tab_list_backend.py</a></font></td></tr></table> 13 <p><tt># Copyright 2013 The Chromium Authors. All rights reserved.<br> 14# Use of this source code is governed by a BSD-style license that can be<br> 15# found in the LICENSE file.</tt></p> 16<p> 17<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18<tr bgcolor="#aa55cc"> 19<td colspan=3 valign=bottom> <br> 20<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br> 24<a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html">telemetry.internal.backends.chrome_inspector.inspector_backend_list</a><br> 25</td><td width="25%" valign=top><a href="json.html">json</a><br> 26<a href="telemetry.internal.browser.tab.html">telemetry.internal.browser.tab</a><br> 27</td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.core.util</a><br> 28</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 29<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 30<tr bgcolor="#ee77aa"> 31<td colspan=3 valign=bottom> <br> 32<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 33 34<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 35<td width="100%"><dl> 36<dt><font face="helvetica, arial"><a href="telemetry.core.exceptions.html#Error">telemetry.core.exceptions.Error</a>(<a href="exceptions.html#Exception">exceptions.Exception</a>) 37</font></dt><dd> 38<dl> 39<dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome.tab_list_backend.html#TabUnexpectedResponseException">TabUnexpectedResponseException</a> 40</font></dt></dl> 41</dd> 42<dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a>(<a href="_abcoll.html#Sequence">_abcoll.Sequence</a>) 43</font></dt><dd> 44<dl> 45<dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome.tab_list_backend.html#TabListBackend">TabListBackend</a> 46</font></dt></dl> 47</dd> 48</dl> 49 <p> 50<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 51<tr bgcolor="#ffc8d8"> 52<td colspan=3 valign=bottom> <br> 53<font color="#000000" face="helvetica, arial"><a name="TabListBackend">class <strong>TabListBackend</strong></a>(<a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a>)</font></td></tr> 54 55<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 56<td colspan=2><tt>A dynamic sequence of tab.Tabs in UI order.<br> </tt></td></tr> 57<tr><td> </td> 58<td width="100%"><dl><dt>Method resolution order:</dt> 59<dd><a href="telemetry.internal.backends.chrome.tab_list_backend.html#TabListBackend">TabListBackend</a></dd> 60<dd><a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a></dd> 61<dd><a href="_abcoll.html#Sequence">_abcoll.Sequence</a></dd> 62<dd><a href="_abcoll.html#Sized">_abcoll.Sized</a></dd> 63<dd><a href="_abcoll.html#Iterable">_abcoll.Iterable</a></dd> 64<dd><a href="_abcoll.html#Container">_abcoll.Container</a></dd> 65<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 66</dl> 67<hr> 68Methods defined here:<br> 69<dl><dt><a name="TabListBackend-ActivateTab"><strong>ActivateTab</strong></a>(self, tab_id, timeout<font color="#909090">=30</font>)</dt><dd><tt>Activates the tab with the given debugger_url.<br> 70 <br> 71Raises:<br> 72 devtools_http.DevToolsClientConnectionError<br> 73 devtools_client_backend.TabNotFoundError<br> 74 <a href="#TabUnexpectedResponseException">TabUnexpectedResponseException</a></tt></dd></dl> 75 76<dl><dt><a name="TabListBackend-CloseTab"><strong>CloseTab</strong></a>(self, tab_id, timeout<font color="#909090">=300</font>)</dt><dd><tt>Closes the tab with the given debugger_url.<br> 77 <br> 78Raises:<br> 79 devtools_http.DevToolsClientConnectionError<br> 80 devtools_client_backend.TabNotFoundError<br> 81 <a href="#TabUnexpectedResponseException">TabUnexpectedResponseException</a><br> 82 exceptions.TimeoutException</tt></dd></dl> 83 84<dl><dt><a name="TabListBackend-CreateWrapper"><strong>CreateWrapper</strong></a>(self, inspector_backend)</dt></dl> 85 86<dl><dt><a name="TabListBackend-Get"><strong>Get</strong></a>(self, index, ret)</dt><dd><tt>Returns self[index] if it exists, or ret if index is out of bounds.</tt></dd></dl> 87 88<dl><dt><a name="TabListBackend-New"><strong>New</strong></a>(self, timeout)</dt><dd><tt>Makes a new tab.<br> 89 <br> 90Returns:<br> 91 A Tab object.<br> 92 <br> 93Raises:<br> 94 devtools_http.DevToolsClientConnectionError</tt></dd></dl> 95 96<dl><dt><a name="TabListBackend-ShouldIncludeContext"><strong>ShouldIncludeContext</strong></a>(self, context)</dt></dl> 97 98<dl><dt><a name="TabListBackend-__init__"><strong>__init__</strong></a>(self, browser_backend)</dt></dl> 99 100<hr> 101Data and other attributes defined here:<br> 102<dl><dt><strong>__abstractmethods__</strong> = frozenset([])</dl> 103 104<hr> 105Methods inherited from <a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a>:<br> 106<dl><dt><a name="TabListBackend-GetBackendFromContextId"><strong>GetBackendFromContextId</strong></a>(self, context_id)</dt></dl> 107 108<dl><dt><a name="TabListBackend-GetContextInfo"><strong>GetContextInfo</strong></a>(self, context_id)</dt></dl> 109 110<dl><dt><a name="TabListBackend-GetTabById"><strong>GetTabById</strong></a>(self, identifier)</dt></dl> 111 112<dl><dt><a name="TabListBackend-IterContextIds"><strong>IterContextIds</strong></a>(self)</dt></dl> 113 114<dl><dt><a name="TabListBackend-__getitem__"><strong>__getitem__</strong></a>(self, index)</dt><dd><tt># TODO(nednguyen): Remove this method and turn inspector_backend_list API to<br> 115# dictionary-like API (crbug.com/398467)</tt></dd></dl> 116 117<dl><dt><a name="TabListBackend-__iter__"><strong>__iter__</strong></a>(self)</dt></dl> 118 119<dl><dt><a name="TabListBackend-__len__"><strong>__len__</strong></a>(self)</dt></dl> 120 121<hr> 122Data descriptors inherited from <a href="telemetry.internal.backends.chrome_inspector.inspector_backend_list.html#InspectorBackendList">telemetry.internal.backends.chrome_inspector.inspector_backend_list.InspectorBackendList</a>:<br> 123<dl><dt><strong>app</strong></dt> 124</dl> 125<hr> 126Methods inherited from <a href="_abcoll.html#Sequence">_abcoll.Sequence</a>:<br> 127<dl><dt><a name="TabListBackend-__contains__"><strong>__contains__</strong></a>(self, value)</dt></dl> 128 129<dl><dt><a name="TabListBackend-__reversed__"><strong>__reversed__</strong></a>(self)</dt></dl> 130 131<dl><dt><a name="TabListBackend-count"><strong>count</strong></a>(self, value)</dt><dd><tt>S.<a href="#TabListBackend-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl> 132 133<dl><dt><a name="TabListBackend-index"><strong>index</strong></a>(self, value)</dt><dd><tt>S.<a href="#TabListBackend-index">index</a>(value) -> integer -- return first index of value.<br> 134Raises ValueError if the value is not present.</tt></dd></dl> 135 136<hr> 137Class methods inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 138<dl><dt><a name="TabListBackend-__subclasshook__"><strong>__subclasshook__</strong></a>(cls, C)<font color="#909090"><font face="helvetica, arial"> from <a href="abc.html#ABCMeta">abc.ABCMeta</a></font></font></dt></dl> 139 140<hr> 141Data descriptors inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 142<dl><dt><strong>__dict__</strong></dt> 143<dd><tt>dictionary for instance variables (if defined)</tt></dd> 144</dl> 145<dl><dt><strong>__weakref__</strong></dt> 146<dd><tt>list of weak references to the object (if defined)</tt></dd> 147</dl> 148<hr> 149Data and other attributes inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 150<dl><dt><strong>__metaclass__</strong> = <class 'abc.ABCMeta'><dd><tt>Metaclass for defining Abstract Base Classes (ABCs).<br> 151 <br> 152Use this metaclass to create an ABC. An ABC can be subclassed<br> 153directly, and then acts as a mix-in class. You can also register<br> 154unrelated concrete classes (even built-in classes) and unrelated<br> 155ABCs as 'virtual subclasses' -- these and their descendants will<br> 156be considered subclasses of the registering ABC by the built-in<br> 157issubclass() function, but the registering ABC won't show up in<br> 158their MRO (Method Resolution Order) nor will method<br> 159implementations defined by the registering ABC be callable (not<br> 160even via super()).</tt></dl> 161 162</td></tr></table> <p> 163<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 164<tr bgcolor="#ffc8d8"> 165<td colspan=3 valign=bottom> <br> 166<font color="#000000" face="helvetica, arial"><a name="TabUnexpectedResponseException">class <strong>TabUnexpectedResponseException</strong></a>(<a href="telemetry.core.exceptions.html#Error">telemetry.core.exceptions.Error</a>)</font></td></tr> 167 168<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 169<td width="100%"><dl><dt>Method resolution order:</dt> 170<dd><a href="telemetry.internal.backends.chrome.tab_list_backend.html#TabUnexpectedResponseException">TabUnexpectedResponseException</a></dd> 171<dd><a href="telemetry.core.exceptions.html#Error">telemetry.core.exceptions.Error</a></dd> 172<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> 173<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> 174<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 175</dl> 176<hr> 177Methods inherited from <a href="telemetry.core.exceptions.html#Error">telemetry.core.exceptions.Error</a>:<br> 178<dl><dt><a name="TabUnexpectedResponseException-AddDebuggingMessage"><strong>AddDebuggingMessage</strong></a>(self, msg)</dt><dd><tt>Adds a message to the description of the exception.<br> 179 <br> 180Many Telemetry exceptions arise from failures in another application. These<br> 181failures are difficult to pinpoint. This method allows Telemetry classes to<br> 182append useful debugging information to the exception. This method also logs<br> 183information about the location from where it was called.</tt></dd></dl> 184 185<dl><dt><a name="TabUnexpectedResponseException-__init__"><strong>__init__</strong></a>(self, msg<font color="#909090">=''</font>)</dt></dl> 186 187<dl><dt><a name="TabUnexpectedResponseException-__str__"><strong>__str__</strong></a>(self)</dt></dl> 188 189<hr> 190Data descriptors inherited from <a href="telemetry.core.exceptions.html#Error">telemetry.core.exceptions.Error</a>:<br> 191<dl><dt><strong>__weakref__</strong></dt> 192<dd><tt>list of weak references to the object (if defined)</tt></dd> 193</dl> 194<hr> 195Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 196<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#TabUnexpectedResponseException-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> 197 198<hr> 199Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 200<dl><dt><a name="TabUnexpectedResponseException-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#TabUnexpectedResponseException-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> 201 202<dl><dt><a name="TabUnexpectedResponseException-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#TabUnexpectedResponseException-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> 203 204<dl><dt><a name="TabUnexpectedResponseException-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#TabUnexpectedResponseException-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> 205 206<dl><dt><a name="TabUnexpectedResponseException-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#TabUnexpectedResponseException-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> 207 <br> 208Use of negative indices is not supported.</tt></dd></dl> 209 210<dl><dt><a name="TabUnexpectedResponseException-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> 211 212<dl><dt><a name="TabUnexpectedResponseException-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#TabUnexpectedResponseException-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> 213 214<dl><dt><a name="TabUnexpectedResponseException-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#TabUnexpectedResponseException-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> 215 216<dl><dt><a name="TabUnexpectedResponseException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> 217 218<dl><dt><a name="TabUnexpectedResponseException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> 219 220<hr> 221Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 222<dl><dt><strong>__dict__</strong></dt> 223</dl> 224<dl><dt><strong>args</strong></dt> 225</dl> 226<dl><dt><strong>message</strong></dt> 227</dl> 228</td></tr></table></td></tr></table> 229</body></html>