- add sources.
[platform/framework/web/crosswalk.git] / src / tools / telemetry / docs / telemetry.core.chrome.inspector_backend.html
1
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.core.chrome.inspector_backend</title>
4 </head><body bgcolor="#f0f0f8">
5
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
7 <tr bgcolor="#7799ee">
8 <td valign=bottom>&nbsp;<br>
9 <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.core.html"><font color="#ffffff">core</font></a>.<a href="telemetry.core.chrome.html"><font color="#ffffff">chrome</font></a>.inspector_backend</strong></big></big></font></td
10 ><td align=right valign=bottom
11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/core/chrome/inspector_backend.py">telemetry/core/chrome/inspector_backend.py</a></font></td></tr></table>
12     <p><tt>#&nbsp;Copyright&nbsp;(c)&nbsp;2012&nbsp;The&nbsp;Chromium&nbsp;Authors.&nbsp;All&nbsp;rights&nbsp;reserved.<br>
13 #&nbsp;Use&nbsp;of&nbsp;this&nbsp;source&nbsp;code&nbsp;is&nbsp;governed&nbsp;by&nbsp;a&nbsp;BSD-style&nbsp;license&nbsp;that&nbsp;can&nbsp;be<br>
14 #&nbsp;found&nbsp;in&nbsp;the&nbsp;LICENSE&nbsp;file.</tt></p>
15 <p>
16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
17 <tr bgcolor="#aa55cc">
18 <td colspan=3 valign=bottom>&nbsp;<br>
19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
20     
21 <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
22 <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>
23 <a href="telemetry.core.chrome.inspector_console.html">telemetry.core.chrome.inspector_console</a><br>
24 <a href="telemetry.core.chrome.inspector_memory.html">telemetry.core.chrome.inspector_memory</a><br>
25 <a href="telemetry.core.chrome.inspector_network.html">telemetry.core.chrome.inspector_network</a><br>
26 </td><td width="25%" valign=top><a href="telemetry.core.chrome.inspector_page.html">telemetry.core.chrome.inspector_page</a><br>
27 <a href="telemetry.core.chrome.inspector_runtime.html">telemetry.core.chrome.inspector_runtime</a><br>
28 <a href="telemetry.core.chrome.inspector_timeline.html">telemetry.core.chrome.inspector_timeline</a><br>
29 <a href="json.html">json</a><br>
30 </td><td width="25%" valign=top><a href="logging.html">logging</a><br>
31 <a href="telemetry.core.chrome.png_bitmap.html">telemetry.core.chrome.png_bitmap</a><br>
32 <a href="socket.html">socket</a><br>
33 <a href="sys.html">sys</a><br>
34 </td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.core.util</a><br>
35 <a href="telemetry.core.chrome.websocket.html">telemetry.core.chrome.websocket</a><br>
36 </td></tr></table></td></tr></table><p>
37 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
38 <tr bgcolor="#ee77aa">
39 <td colspan=3 valign=bottom>&nbsp;<br>
40 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
41     
42 <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
43 <td width="100%"><dl>
44 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
45 </font></dt><dd>
46 <dl>
47 <dt><font face="helvetica, arial"><a href="telemetry.core.chrome.inspector_backend.html#InspectorBackend">InspectorBackend</a>
48 </font></dt></dl>
49 </dd>
50 <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>)
51 </font></dt><dd>
52 <dl>
53 <dt><font face="helvetica, arial"><a href="telemetry.core.chrome.inspector_backend.html#InspectorException">InspectorException</a>
54 </font></dt></dl>
55 </dd>
56 </dl>
57  <p>
58 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
59 <tr bgcolor="#ffc8d8">
60 <td colspan=3 valign=bottom>&nbsp;<br>
61 <font color="#000000" face="helvetica, arial"><a name="InspectorBackend">class <strong>InspectorBackend</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
62     
63 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
64 <td width="100%">Methods defined here:<br>
65 <dl><dt><a name="InspectorBackend-Activate"><strong>Activate</strong></a>(self)</dt></dl>
66
67 <dl><dt><a name="InspectorBackend-ClearCache"><strong>ClearCache</strong></a>(self)</dt></dl>
68
69 <dl><dt><a name="InspectorBackend-Close"><strong>Close</strong></a>(self)</dt></dl>
70
71 <dl><dt><a name="InspectorBackend-CollectGarbage"><strong>CollectGarbage</strong></a>(self)</dt></dl>
72
73 <dl><dt><a name="InspectorBackend-Disconnect"><strong>Disconnect</strong></a>(self)</dt></dl>
74
75 <dl><dt><a name="InspectorBackend-DispatchNotifications"><strong>DispatchNotifications</strong></a>(self, timeout<font color="#909090">=10</font>)</dt></dl>
76
77 <dl><dt><a name="InspectorBackend-EvaluateJavaScript"><strong>EvaluateJavaScript</strong></a>(self, expr, timeout)</dt></dl>
78
79 <dl><dt><a name="InspectorBackend-ExecuteJavaScript"><strong>ExecuteJavaScript</strong></a>(self, expr, timeout)</dt></dl>
80
81 <dl><dt><a name="InspectorBackend-GetCookieByName"><strong>GetCookieByName</strong></a>(self, name, timeout)</dt></dl>
82
83 <dl><dt><a name="InspectorBackend-GetDOMStats"><strong>GetDOMStats</strong></a>(self, timeout)</dt></dl>
84
85 <dl><dt><a name="InspectorBackend-Navigate"><strong>Navigate</strong></a>(self, url, script_to_evaluate_on_commit, timeout)</dt></dl>
86
87 <dl><dt><a name="InspectorBackend-PerformActionAndWaitForNavigate"><strong>PerformActionAndWaitForNavigate</strong></a>(self, action_function, timeout)</dt></dl>
88
89 <dl><dt><a name="InspectorBackend-RegisterDomain"><strong>RegisterDomain</strong></a>(self, domain_name, notification_handler, will_close_handler)</dt><dd><tt>Registers&nbsp;a&nbsp;given&nbsp;domain&nbsp;for&nbsp;handling&nbsp;notification&nbsp;methods.<br>
90 &nbsp;<br>
91 For&nbsp;example,&nbsp;given&nbsp;inspector_backend:<br>
92 &nbsp;&nbsp;&nbsp;def&nbsp;OnConsoleNotification(msg):<br>
93 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;msg['method']&nbsp;==&nbsp;'Console.messageAdded':<br>
94 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;msg['params']['message']<br>
95 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return<br>
96 &nbsp;&nbsp;&nbsp;def&nbsp;OnConsoleClose(self):<br>
97 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pass<br>
98 &nbsp;&nbsp;&nbsp;inspector_backend.<a href="#InspectorBackend-RegisterDomain">RegisterDomain</a>('Console',<br>
99 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OnConsoleNotification,&nbsp;OnConsoleClose)</tt></dd></dl>
100
101 <dl><dt><a name="InspectorBackend-Screenshot"><strong>Screenshot</strong></a>(self, timeout)</dt></dl>
102
103 <dl><dt><a name="InspectorBackend-SendAndIgnoreResponse"><strong>SendAndIgnoreResponse</strong></a>(self, req)</dt></dl>
104
105 <dl><dt><a name="InspectorBackend-StartTimelineRecording"><strong>StartTimelineRecording</strong></a>(self)</dt></dl>
106
107 <dl><dt><a name="InspectorBackend-StopTimelineRecording"><strong>StopTimelineRecording</strong></a>(self)</dt></dl>
108
109 <dl><dt><a name="InspectorBackend-SyncRequest"><strong>SyncRequest</strong></a>(self, req, timeout<font color="#909090">=10</font>)</dt></dl>
110
111 <dl><dt><a name="InspectorBackend-UnregisterDomain"><strong>UnregisterDomain</strong></a>(self, domain_name)</dt><dd><tt>Unregisters&nbsp;a&nbsp;previously&nbsp;registered&nbsp;domain.</tt></dd></dl>
112
113 <dl><dt><a name="InspectorBackend-WaitForDocumentReadyStateToBeComplete"><strong>WaitForDocumentReadyStateToBeComplete</strong></a>(self, timeout)</dt></dl>
114
115 <dl><dt><a name="InspectorBackend-WaitForDocumentReadyStateToBeInteractiveOrBetter"><strong>WaitForDocumentReadyStateToBeInteractiveOrBetter</strong></a>(self, timeout)</dt></dl>
116
117 <dl><dt><a name="InspectorBackend-__del__"><strong>__del__</strong></a>(self)</dt></dl>
118
119 <dl><dt><a name="InspectorBackend-__init__"><strong>__init__</strong></a>(self, browser, browser_backend, debugger_url)</dt></dl>
120
121 <hr>
122 Data descriptors defined here:<br>
123 <dl><dt><strong>__dict__</strong></dt>
124 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
125 </dl>
126 <dl><dt><strong>__weakref__</strong></dt>
127 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
128 </dl>
129 <dl><dt><strong>browser</strong></dt>
130 </dl>
131 <dl><dt><strong>message_output_stream</strong></dt>
132 </dl>
133 <dl><dt><strong>screenshot_supported</strong></dt>
134 </dl>
135 <dl><dt><strong>timeline_model</strong></dt>
136 </dl>
137 <dl><dt><strong>url</strong></dt>
138 </dl>
139 </td></tr></table> <p>
140 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
141 <tr bgcolor="#ffc8d8">
142 <td colspan=3 valign=bottom>&nbsp;<br>
143 <font color="#000000" face="helvetica, arial"><a name="InspectorException">class <strong>InspectorException</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
144     
145 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
146 <td width="100%"><dl><dt>Method resolution order:</dt>
147 <dd><a href="telemetry.core.chrome.inspector_backend.html#InspectorException">InspectorException</a></dd>
148 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
149 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
150 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
151 </dl>
152 <hr>
153 Data descriptors defined here:<br>
154 <dl><dt><strong>__weakref__</strong></dt>
155 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
156 </dl>
157 <hr>
158 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
159 <dl><dt><a name="InspectorException-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__init__">__init__</a>(...)&nbsp;initializes&nbsp;x;&nbsp;see&nbsp;help(type(x))&nbsp;for&nbsp;signature</tt></dd></dl>
160
161 <hr>
162 Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
163 <dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#InspectorException-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
164
165 <hr>
166 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
167 <dl><dt><a name="InspectorException-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
168
169 <dl><dt><a name="InspectorException-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
170
171 <dl><dt><a name="InspectorException-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
172
173 <dl><dt><a name="InspectorException-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
174 &nbsp;<br>
175 Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
176
177 <dl><dt><a name="InspectorException-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
178
179 <dl><dt><a name="InspectorException-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
180
181 <dl><dt><a name="InspectorException-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
182
183 <dl><dt><a name="InspectorException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
184
185 <dl><dt><a name="InspectorException-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#InspectorException-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
186
187 <dl><dt><a name="InspectorException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
188
189 <hr>
190 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
191 <dl><dt><strong>__dict__</strong></dt>
192 </dl>
193 <dl><dt><strong>args</strong></dt>
194 </dl>
195 <dl><dt><strong>message</strong></dt>
196 </dl>
197 </td></tr></table></td></tr></table>
198 </body></html>