| OLD | NEW |
| (Empty) | |
| 1 |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 <html><head><title>Python: module telemetry.page.actions.page_action</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> <br> |
| 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.page.html"><font color="#ffffff">page</font></a>.<a href="telemetry.page.action
s.html"><font color="#ffffff">actions</font></a>.page_action</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=
"file:/Users/nduca/Local/chrome/src/tools/telemetry/telemetry/page/actions/page_
action.py">/Users/nduca/Local/chrome/src/tools/telemetry/telemetry/page/actions/
page_action.py</a></font></td></tr></table> |
| 12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> |
| 13 # Use of this source code is governed by
a BSD-style license that can be<br> |
| 14 # found in the LICENSE file.</tt></p> |
| 15 <p> |
| 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 17 <tr bgcolor="#ee77aa"> |
| 18 <td colspan=3 valign=bottom> <br> |
| 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> |
| 20 |
| 21 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> |
| 22 <td width="100%"><dl> |
| 23 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.
object</a> |
| 24 </font></dt><dd> |
| 25 <dl> |
| 26 <dt><font face="helvetica, arial"><a href="telemetry.page.actions.page_action.ht
ml#PageAction">PageAction</a> |
| 27 </font></dt></dl> |
| 28 </dd> |
| 29 <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions
.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException<
/a>) |
| 30 </font></dt><dd> |
| 31 <dl> |
| 32 <dt><font face="helvetica, arial"><a href="telemetry.page.actions.page_action.ht
ml#PageActionFailed">PageActionFailed</a> |
| 33 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.page.actions.pa
ge_action.html#PageActionNotSupported">PageActionNotSupported</a> |
| 34 </font></dt></dl> |
| 35 </dd> |
| 36 </dl> |
| 37 <p> |
| 38 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 39 <tr bgcolor="#ffc8d8"> |
| 40 <td colspan=3 valign=bottom> <br> |
| 41 <font color="#000000" face="helvetica, arial"><a name="PageAction">class <strong
>PageAction</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a
>)</font></td></tr> |
| 42 |
| 43 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 44 <td colspan=2><tt>Represents an action that a user 
;might try to perform to a page.<br> </tt></t
d></tr> |
| 45 <tr><td> </td> |
| 46 <td width="100%">Methods defined here:<br> |
| 47 <dl><dt><a name="PageAction-BindMeasurementJavaScript"><strong>BindMeasurementJa
vaScript</strong></a>(self, tab, start_js, stop_js)</dt><dd><tt>Let this&nb
sp;action determine when measurements should start 
;and stop.<br> |
| 48 <br> |
| 49 A measurement can call this method to provide
the action<br> |
| 50 with JavaScript code that starts and stops me
asurements. The action<br> |
| 51 determines when to execute the provided JavaScript
code, for more accurate<br> |
| 52 timings.<br> |
| 53 <br> |
| 54 Args:<br> |
| 55 tab: The tab to do everything on.<br> |
| 56 start_js: JavaScript code that starts measu
rements.<br> |
| 57 stop_js: JavaScript code that stops measure
ments.</tt></dd></dl> |
| 58 |
| 59 <dl><dt><a name="PageAction-CanBeBound"><strong>CanBeBound</strong></a>(self)</d
t><dd><tt>If this class implements BindMeasurementJavaScript
, override CanBeBound<br> |
| 60 to return True so that a test knows it&n
bsp;can bind measurements.</tt></dd></dl> |
| 61 |
| 62 <dl><dt><a name="PageAction-CleanUp"><strong>CleanUp</strong></a>(self, page, ta
b)</dt></dl> |
| 63 |
| 64 <dl><dt><a name="PageAction-CustomizeBrowserOptions"><strong>CustomizeBrowserOpt
ions</strong></a>(self, options)</dt><dd><tt>Override to add acti
on-specific options to the BrowserOptions<br> |
| 65 <a href="__builtin__.html#object">object</a>.</tt></dd></dl> |
| 66 |
| 67 <dl><dt><a name="PageAction-RunAction"><strong>RunAction</strong></a>(self, page
, tab, previous_action)</dt></dl> |
| 68 |
| 69 <dl><dt><a name="PageAction-RunsPreviousAction"><strong>RunsPreviousAction</stro
ng></a>(self)</dt><dd><tt>Some actions require some initiali
zation to be performed before the<br> |
| 70 previous action. For example, wait for href c
hange needs to record the old<br> |
| 71 href before the previous action changes it. T
herefore, we allow actions to<br> |
| 72 run the previous action. An action that does&
nbsp;this should override this to<br> |
| 73 return True in order to prevent the previous&
nbsp;action from being run twice.</tt></dd></dl> |
| 74 |
| 75 <dl><dt><a name="PageAction-WillRunAction"><strong>WillRunAction</strong></a>(se
lf, page, tab)</dt><dd><tt>Override to do action-specific se
tup before<br> |
| 76 Test.WillRunAction is called.</tt></dd></dl> |
| 77 |
| 78 <dl><dt><a name="PageAction-__init__"><strong>__init__</strong></a>(self, attrib
utes<font color="#909090">=None</font>)</dt></dl> |
| 79 |
| 80 <hr> |
| 81 Data descriptors defined here:<br> |
| 82 <dl><dt><strong>__dict__</strong></dt> |
| 83 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> |
| 84 </dl> |
| 85 <dl><dt><strong>__weakref__</strong></dt> |
| 86 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
| 87 </dl> |
| 88 </td></tr></table> <p> |
| 89 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 90 <tr bgcolor="#ffc8d8"> |
| 91 <td colspan=3 valign=bottom> <br> |
| 92 <font color="#000000" face="helvetica, arial"><a name="PageActionFailed">class <
strong>PageActionFailed</strong></a>(<a href="exceptions.html#Exception">excepti
ons.Exception</a>)</font></td></tr> |
| 93 |
| 94 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
| 95 <td width="100%"><dl><dt>Method resolution order:</dt> |
| 96 <dd><a href="telemetry.page.actions.page_action.html#PageActionFailed">PageActio
nFailed</a></dd> |
| 97 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 98 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 99 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 100 </dl> |
| 101 <hr> |
| 102 Data descriptors defined here:<br> |
| 103 <dl><dt><strong>__weakref__</strong></dt> |
| 104 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
| 105 </dl> |
| 106 <hr> |
| 107 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception<
/a>:<br> |
| 108 <dl><dt><a name="PageActionFailed-__init__"><strong>__init__</strong></a>(...)</
dt><dd><tt>x.<a href="#PageActionFailed-__init__">__init__</a>(...) initial
izes x; see help(type(x)) for signature</tt></dd></dl> |
| 109 |
| 110 <hr> |
| 111 Data and other attributes inherited from <a href="exceptions.html#Exception">exc
eptions.Exception</a>:<br> |
| 112 <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object>
;<dd><tt>T.<a href="#PageActionFailed-__new__">__new__</a>(S, ...) -&g
t; a new <a href="__builtin__.html#object">object</a> with&n
bsp;type S, a subtype of T</tt></dl> |
| 113 |
| 114 <hr> |
| 115 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseEx
ception</a>:<br> |
| 116 <dl><dt><a name="PageActionFailed-__delattr__"><strong>__delattr__</strong></a>(
...)</dt><dd><tt>x.<a href="#PageActionFailed-__delattr__">__delattr__</a>('name
') <==> del x.name</tt></dd></dl> |
| 117 |
| 118 <dl><dt><a name="PageActionFailed-__getattribute__"><strong>__getattribute__</st
rong></a>(...)</dt><dd><tt>x.<a href="#PageActionFailed-__getattribute__">__geta
ttribute__</a>('name') <==> x.name</tt></dd></dl> |
| 119 |
| 120 <dl><dt><a name="PageActionFailed-__getitem__"><strong>__getitem__</strong></a>(
...)</dt><dd><tt>x.<a href="#PageActionFailed-__getitem__">__getitem__</a>(y)&nb
sp;<==> x[y]</tt></dd></dl> |
| 121 |
| 122 <dl><dt><a name="PageActionFailed-__getslice__"><strong>__getslice__</strong></a
>(...)</dt><dd><tt>x.<a href="#PageActionFailed-__getslice__">__getslice__</a>(i
, j) <==> x[i:j]<br> |
| 123 <br> |
| 124 Use of negative indices is not supported.</tt></dd
></dl> |
| 125 |
| 126 <dl><dt><a name="PageActionFailed-__reduce__"><strong>__reduce__</strong></a>(..
.)</dt></dl> |
| 127 |
| 128 <dl><dt><a name="PageActionFailed-__repr__"><strong>__repr__</strong></a>(...)</
dt><dd><tt>x.<a href="#PageActionFailed-__repr__">__repr__</a>() <==>
repr(x)</tt></dd></dl> |
| 129 |
| 130 <dl><dt><a name="PageActionFailed-__setattr__"><strong>__setattr__</strong></a>(
...)</dt><dd><tt>x.<a href="#PageActionFailed-__setattr__">__setattr__</a>('name
', value) <==> x.name = value</tt></dd></dl> |
| 131 |
| 132 <dl><dt><a name="PageActionFailed-__setstate__"><strong>__setstate__</strong></a
>(...)</dt></dl> |
| 133 |
| 134 <dl><dt><a name="PageActionFailed-__str__"><strong>__str__</strong></a>(...)</dt
><dd><tt>x.<a href="#PageActionFailed-__str__">__str__</a>() <==>&nbs
p;str(x)</tt></dd></dl> |
| 135 |
| 136 <dl><dt><a name="PageActionFailed-__unicode__"><strong>__unicode__</strong></a>(
...)</dt></dl> |
| 137 |
| 138 <hr> |
| 139 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptio
ns.BaseException</a>:<br> |
| 140 <dl><dt><strong>__dict__</strong></dt> |
| 141 </dl> |
| 142 <dl><dt><strong>args</strong></dt> |
| 143 </dl> |
| 144 <dl><dt><strong>message</strong></dt> |
| 145 </dl> |
| 146 </td></tr></table> <p> |
| 147 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 148 <tr bgcolor="#ffc8d8"> |
| 149 <td colspan=3 valign=bottom> <br> |
| 150 <font color="#000000" face="helvetica, arial"><a name="PageActionNotSupported">c
lass <strong>PageActionNotSupported</strong></a>(<a href="exceptions.html#Except
ion">exceptions.Exception</a>)</font></td></tr> |
| 151 |
| 152 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
| 153 <td width="100%"><dl><dt>Method resolution order:</dt> |
| 154 <dd><a href="telemetry.page.actions.page_action.html#PageActionNotSupported">Pag
eActionNotSupported</a></dd> |
| 155 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 156 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 157 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 158 </dl> |
| 159 <hr> |
| 160 Data descriptors defined here:<br> |
| 161 <dl><dt><strong>__weakref__</strong></dt> |
| 162 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
| 163 </dl> |
| 164 <hr> |
| 165 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception<
/a>:<br> |
| 166 <dl><dt><a name="PageActionNotSupported-__init__"><strong>__init__</strong></a>(
...)</dt><dd><tt>x.<a href="#PageActionNotSupported-__init__">__init__</a>(...)&
nbsp;initializes x; see help(type(x)) for signature</tt
></dd></dl> |
| 167 |
| 168 <hr> |
| 169 Data and other attributes inherited from <a href="exceptions.html#Exception">exc
eptions.Exception</a>:<br> |
| 170 <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object>
;<dd><tt>T.<a href="#PageActionNotSupported-__new__">__new__</a>(S, ...)&nb
sp;-> a new <a href="__builtin__.html#object">object</a>
with type S, a subtype of T</tt></dl> |
| 171 |
| 172 <hr> |
| 173 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseEx
ception</a>:<br> |
| 174 <dl><dt><a name="PageActionNotSupported-__delattr__"><strong>__delattr__</strong
></a>(...)</dt><dd><tt>x.<a href="#PageActionNotSupported-__delattr__">__delattr
__</a>('name') <==> del x.name</tt></dd></dl> |
| 175 |
| 176 <dl><dt><a name="PageActionNotSupported-__getattribute__"><strong>__getattribute
__</strong></a>(...)</dt><dd><tt>x.<a href="#PageActionNotSupported-__getattribu
te__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 177 |
| 178 <dl><dt><a name="PageActionNotSupported-__getitem__"><strong>__getitem__</strong
></a>(...)</dt><dd><tt>x.<a href="#PageActionNotSupported-__getitem__">__getitem
__</a>(y) <==> x[y]</tt></dd></dl> |
| 179 |
| 180 <dl><dt><a name="PageActionNotSupported-__getslice__"><strong>__getslice__</stro
ng></a>(...)</dt><dd><tt>x.<a href="#PageActionNotSupported-__getslice__">__gets
lice__</a>(i, j) <==> x[i:j]<br> |
| 181 <br> |
| 182 Use of negative indices is not supported.</tt></dd
></dl> |
| 183 |
| 184 <dl><dt><a name="PageActionNotSupported-__reduce__"><strong>__reduce__</strong><
/a>(...)</dt></dl> |
| 185 |
| 186 <dl><dt><a name="PageActionNotSupported-__repr__"><strong>__repr__</strong></a>(
...)</dt><dd><tt>x.<a href="#PageActionNotSupported-__repr__">__repr__</a>()&nbs
p;<==> repr(x)</tt></dd></dl> |
| 187 |
| 188 <dl><dt><a name="PageActionNotSupported-__setattr__"><strong>__setattr__</strong
></a>(...)</dt><dd><tt>x.<a href="#PageActionNotSupported-__setattr__">__setattr
__</a>('name', value) <==> x.name = value</tt></d
d></dl> |
| 189 |
| 190 <dl><dt><a name="PageActionNotSupported-__setstate__"><strong>__setstate__</stro
ng></a>(...)</dt></dl> |
| 191 |
| 192 <dl><dt><a name="PageActionNotSupported-__str__"><strong>__str__</strong></a>(..
.)</dt><dd><tt>x.<a href="#PageActionNotSupported-__str__">__str__</a>() &l
t;==> str(x)</tt></dd></dl> |
| 193 |
| 194 <dl><dt><a name="PageActionNotSupported-__unicode__"><strong>__unicode__</strong
></a>(...)</dt></dl> |
| 195 |
| 196 <hr> |
| 197 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptio
ns.BaseException</a>:<br> |
| 198 <dl><dt><strong>__dict__</strong></dt> |
| 199 </dl> |
| 200 <dl><dt><strong>args</strong></dt> |
| 201 </dl> |
| 202 <dl><dt><strong>message</strong></dt> |
| 203 </dl> |
| 204 </td></tr></table></td></tr></table> |
| 205 </body></html> |
| OLD | NEW |