| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
| 2 <!-- This page is a placeholder for generated extensions api doc. Note: | |
| 3 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
| 4 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
| 5 templating mechanism. | 4 templating mechanism. |
| 6 2) The <body> tag *must* retain id="body" | 5 2) The <body> tag *must* retain id="body" |
| 7 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 6 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
| 8 browser, it will be re-generated from the template, json schema and | 7 browser, it will be re-generated from the template, json schema and |
| 9 authored overview content. | 8 authored overview content. |
| 10 4) The <body>.innerHTML is also generated by an offline step so that this | 9 4) The <body>.innerHTML is also generated by an offline step so that this |
| 11 page may easily be indexed by search engines. | 10 page may easily be indexed by search engines. |
| 12 | 11 |
| 13 TODO(rafaelw): Abstract this into a "pageshell" that becomes the single | 12 TODO(rafaelw): Abstract this into a "pageshell" that becomes the single |
| 14 version of page template shell and the "instance" pages (bookmarks.html, | 13 version of page template shell and the "instance" pages (bookmarks.html, |
| 15 etc...) can be generated with a build step. | 14 etc...) can be generated with a build step. |
| 16 --> | 15 --><!-- <html> must retain id="template --><html xmlns="http://www.w3.org/1999/x
html" jstcache="0"><!-- <head> data is significant and loads the needed librarie
s and styles --><head jstcache="0"> |
| 17 <!-- <html> must retain id="template --> | 16 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" jstcache=
"0"> |
| 18 <html xmlns="http://www.w3.org/1999/xhtml"> | 17 <title jscontent="getPageTitle()" jstcache="1">Themes</title> |
| 19 <!-- <head> data is significant and loads the needed libraries and styles --> | 18 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css" jstcache=
"0"> |
| 20 <head> | 19 <script type="text/javascript" src="../../../third_party/jstemplate/jstempla
te_compiled.js" jstcache="0"> |
| 21 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| 22 <title jscontent="getPageTitle()">pageTitle</title> | |
| 23 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> | |
| 24 <script type="text/javascript" | |
| 25 src="../../../third_party/jstemplate/jstemplate_compiled.js"> | |
| 26 </script> | 20 </script> |
| 27 <script type="text/javascript" src="js/api_page_generator.js"></script> | 21 <script type="text/javascript" src="js/api_page_generator.js" jstcache="0"><
/script> |
| 28 <script type="text/javascript" src="js/bootstrap.js"></script> | 22 <script type="text/javascript" src="js/bootstrap.js" jstcache="0"></script> |
| 29 </head> | 23 </head><!-- <body> content is completely generated. Do not edit, as it will be |
| 30 <!-- <body> content is completely generated. Do not edit, as it will be | 24 and rewritten. --><body jstcache="0"> <div id="container" jstcache="0"> |
| 31 and rewritten. --> | 25 <a name="top" jstcache="0"> </a> |
| 32 <body> | 26 <!-- API HEADER --> |
| 33 </body> | 27 <div id="pageHeader" jstcache="0"> |
| 34 </html> | 28 <div id="searchbox" jstcache="0"> |
| 29 <form action="http://www.google.com/cse" id="cse-search-box" jstcache="0
"> |
| 30 <div jstcache="0"> |
| 31 <input type="hidden" name="cx" value="002967670403910741006:61_cvzfq
tno" jstcache="0"> |
| 32 <input type="hidden" name="ie" value="UTF-8" jstcache="0"> |
| 33 <input type="text" name="q" size="31" jstcache="0"> |
| 34 <input type="submit" name="sa" value="Search" jstcache="0"> |
| 35 </div> |
| 36 </form> |
| 37 |
| 38 <script type="text/javascript" src="http://www.google.com/jsapi" jstcach
e="0"></script> |
| 39 <script type="text/javascript" jstcache="0">google.load("elements", "1",
{packages: "transliteration"});</script> |
| 40 <script type="text/javascript" src="http://www.google.com/coop/cse/t13n?
form=cse-search-box&t13n_langs=en" jstcache="0"></script> |
| 41 <script type="text/javascript" src="http://www.google.com/coop/cse/brand
?form=cse-search-box&lang=en" jstcache="0"></script> |
| 42 </div> |
| 43 <div id="pageTitle" jstcache="0"> |
| 44 <h1 jscontent="getPageTitle()" jstcache="1">Themes</h1> |
| 45 </div> |
| 46 </div> <!-- /pageHeader --> |
| 47 |
| 48 <div id="pageContent" jstcache="0"> |
| 49 <!-- SIDENAV --> |
| 50 <div id="leftNav" jstcache="0"> |
| 51 <ul jstcache="0"> |
| 52 <li jstcache="0"> <a href="index.html" jstcache="0">Home</a></li> |
| 53 <li jstcache="0"> <a href="getstarted.html" jstcache="0">Getting Start
ed</a></li> |
| 54 <li jstcache="0"> <a href="overview.html" jstcache="0">Overview</a></l
i> |
| 55 <li jstcache="0"> <a href="devguide.html" jstcache="0"><div jstcache="
0">Developer's Guide</div></a> |
| 56 <ul jstcache="0"> |
| 57 <li jstcache="0"><a href="toolstrip.html" jstcache="0">Toolstrips<
/a></li> |
| 58 <li jstcache="0"><a href="pageActions.html" jstcache="0">Page Acti
ons</a></li> |
| 59 <li jstcache="0"><a href="background_pages.html" jstcache="0">Back
ground Pages</a></li> |
| 60 <li jstcache="0"><a href="content_scripts.html" jstcache="0">Conte
nt Scripts</a></li> |
| 61 <li jstcache="0"><a href="events.html" jstcache="0">Events</a></li
> |
| 62 <li jstcache="0"><a href="tabs.html" jstcache="0">Tabs</a></li> |
| 63 <li jstcache="0"><a href="windows.html" jstcache="0">Windows</a></
li> |
| 64 <li jstcache="0"><a href="bookmarks.html" jstcache="0">Bookmarks</
a></li> |
| 65 <li jstcache="0" class="leftNavSelected">Themes</li> |
| 66 <li jstcache="0"><a href="npapi.html" jstcache="0">NPAPI Plugins</
a></li> |
| 67 <li jstcache="0"><a href="packaging.html" jstcache="0">Packaging</
a></li> |
| 68 <li jstcache="0">Autoupdate</li> |
| 69 </ul> |
| 70 </li> |
| 71 <li jstcache="0"><a href="tutorials.html" jstcache="0"><div jstcache="
0">Tutorials</div></a> |
| 72 <ul jstcache="0"> |
| 73 <li jstcache="0"><a href="tut_debugging.html" jstcache="0">Debuggi
ng</a></li> |
| 74 </ul> |
| 75 </li> |
| 76 <li jstcache="0">Reference |
| 77 <ul jstcache="0"> |
| 78 <li jstcache="0"> Formats |
| 79 <ul jstcache="0"> |
| 80 <li jstcache="0"><a href="manifest.html" jstcache="0">Manifest
Files</a></li> |
| 81 <li jstcache="0"><a href="match_patterns.html" jstcache="0">Ma
tch Patterns</a></li> |
| 82 <li jstcache="0">Packages (.crx)</li> |
| 83 </ul> |
| 84 </li> |
| 85 <li jstcache="0"> <a href="api_index.html" jstcache="0">chrome.* A
PIs</a> </li> |
| 86 <li jstcache="0"> <a href="api_other.html" jstcache="0">Other APIs
</a> </li> |
| 87 </ul> |
| 88 </li> |
| 89 <li jstcache="0"><a href="http://dev.chromium.org/developers/design-doc
uments/extensions/samples" jstcache="0">Samples</a></li> |
| 90 </ul> |
| 91 </div> |
| 92 |
| 93 <div id="mainColumn" jstcache="0"> |
| 94 <!-- TABLE OF CONTENTS --> |
| 95 <div id="toc" jsdisplay="showPageTOC()" jstcache="2"> |
| 96 <p jstcache="0">Contents</p> |
| 97 <ol jstcache="0"> |
| 98 <li jsselect="getStaticTOC()" jstcache="9" jsinstance="*0"> |
| 99 <a jscontent="name" jsvalues=".href:'#' + href" jstcache="14" href
="#H2-0"> Manifest </a> |
| 100 <ol jstcache="0"> |
| 101 <li jsselect="$this.children" jstcache="22" jsinstance="0"> |
| 102 <a jscontent="name" jsvalues=".href:'#' + href" jstcache="14"
href="#colors">colors</a> |
| 103 </li><li jsselect="$this.children" jstcache="22" jsinstance="1"> |
| 104 <a jscontent="name" jsvalues=".href:'#' + href" jstcache="14"
href="#images">images</a> |
| 105 </li><li jsselect="$this.children" jstcache="22" jsinstance="2"> |
| 106 <a jscontent="name" jsvalues=".href:'#' + href" jstcache="14"
href="#properties">properties</a> |
| 107 </li><li jsselect="$this.children" jstcache="22" jsinstance="*3"
> |
| 108 <a jscontent="name" jsvalues=".href:'#' + href" jstcache="14"
href="#tints">tints</a> |
| 109 </li> |
| 110 </ol> |
| 111 </li> |
| 112 <div jsselect="apiDefinition" jstcache="3" style="display: none; "> |
| 113 <li jstcache="0"> |
| 114 <a href="#apiReference" jscontent="'API reference: ' + getModule
Name()" jstcache="4">API reference</a> |
| 115 <ol jstcache="0"> |
| 116 <li jsdisplay="$this.properties" jstcache="5"> |
| 117 <a href="#properties" jstcache="0">Properties</a> |
| 118 <ol jstcache="0"> |
| 119 <li jsselect="getPropertyListFromObject($this)" jstcache="
10"> |
| 120 <a jscontent="name" jsvalues=".href:'#property-' + name"
href="#property-anchor" jstcache="42">propertyName</a> |
| 121 </li> |
| 122 </ol> |
| 123 </li> |
| 124 <li jsdisplay="functions && functions.length > 0" j
stcache="6"> |
| 125 <a href="#methods" jstcache="0">Methods</a> |
| 126 <ol jstcache="0"> |
| 127 <li jsselect="functions.sort(sortByName)" jstcache="11"> |
| 128 <a jscontent="name" jsvalues=".href:'#method-' + name" h
ref="#method-anchor" jstcache="43">methodName</a> |
| 129 </li> |
| 130 </ol> |
| 131 </li> |
| 132 <li jsdisplay="events && events.length > 0" jstcach
e="7"> |
| 133 <a href="#events" jstcache="0">Events</a> |
| 134 <ol jstcache="0"> |
| 135 <li jsselect="events.sort(sortByName)" jstcache="12"> |
| 136 <a jscontent="name" jsvalues=".href:'#event-' + name" hr
ef="#event-anchor" jstcache="44">eventName</a> |
| 137 </li> |
| 138 </ol> |
| 139 </li> |
| 140 <li jsdisplay="types && types.length > 0" jstcache=
"8"> |
| 141 <a href="#types" jstcache="0">Types</a> |
| 142 <ol jstcache="0"> |
| 143 <li jsselect="types.sort(sortByName)" jstcache="38"> |
| 144 <a jscontent="id" jsvalues=".href:'#type-' + id" href="#
id-anchor" jstcache="45">id</a> |
| 145 </li> |
| 146 </ol> |
| 147 </li> |
| 148 </ol> |
| 149 </li> |
| 150 </div> |
| 151 </ol> |
| 152 </div> |
| 153 <!-- /TABLE OF CONTENTS --> |
| 154 |
| 155 <!-- STATIC CONTENT PLACEHOLDER --> |
| 156 <div id="static" jstcache="0"><div id="pageData-showTOC" class="pageData
" jstcache="0">true</div> |
| 157 |
| 158 <p jstcache="0"> |
| 159 A <em jstcache="0">theme</em> is a special kind of extension |
| 160 that changes the way the browser looks. |
| 161 Themes are <a href="packaging.html" jstcache="0">packaged</a> like regular exten
sions, |
| 162 but they don't contain JavaScript or HTML code. |
| 163 </p> |
| 164 |
| 165 <a name="H2-0" jstcache="0"></a><h2 jstcache="0"> Manifest </h2> |
| 166 <p jstcache="0"> |
| 167 Here is an example <code jstcache="0">manifest.json</code> file for a theme: |
| 168 </p> |
| 169 |
| 170 <pre jstcache="0">{ |
| 171 "version": "2.6", |
| 172 "name": "camo theme", |
| 173 <b jstcache="0"> "theme": { |
| 174 "<a href="#images" jstcache="0">images</a>" : { |
| 175 "theme_frame" : "images/theme_frame_camo.png", |
| 176 "theme_frame_overlay" : "images/theme_frame_stripe.png
", |
| 177 "theme_toolbar" : "images/theme_toolbar_camo.png", |
| 178 "theme_ntp_background" : "images/theme_ntp_background_
norepeat.png", |
| 179 "theme_ntp_attribution" : "images/attribution.png" |
| 180 }, |
| 181 "<a href="#colors" jstcache="0">colors</a>" : { |
| 182 "frame" : [71, 105, 91], |
| 183 "toolbar" : [207, 221, 192], |
| 184 "ntp_text" : [20, 40, 0], |
| 185 "ntp_link" : [36, 70, 0], |
| 186 "ntp_section" : [207, 221, 192], |
| 187 "button_background" : [255, 255, 255] |
| 188 }, |
| 189 "<a href="#tints" jstcache="0">tints</a>" : { |
| 190 "buttons" : [0.33, 0.5, 0.47] |
| 191 }, |
| 192 "<a href="#properties" jstcache="0">properties</a>" : { |
| 193 "ntp_background_alignment" : "bottom" |
| 194 } |
| 195 }</b> |
| 196 } |
| 197 </pre> |
| 198 |
| 199 <h3 id="colors" jstcache="0">colors</h3> |
| 200 |
| 201 <p jstcache="0"> |
| 202 Colors are in RGB format. |
| 203 To find the full range of colors that you can specify, see |
| 204 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_
theme_provider.cc" jstcache="0"><code jstcache="0">browser_theme_provider.cc</co
de></a>. |
| 205 </p> |
| 206 |
| 207 <h3 id="images" jstcache="0">images</h3> |
| 208 |
| 209 <p jstcache="0"> |
| 210 Image resources use paths relative to the root of the extension. |
| 211 You can override any IDR_THEME_* image specified in |
| 212 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/theme_
resources.grd" jstcache="0"><code jstcache="0">theme_resources.grd</code></a>. |
| 213 </p> |
| 214 |
| 215 <h3 id="properties" jstcache="0">properties</h3> |
| 216 |
| 217 |
| 218 <p jstcache="0"> |
| 219 This field lets you specify |
| 220 properties such as background alignment, |
| 221 background repeat, |
| 222 and an alternate logo. |
| 223 <span class="comment" jstcache="0"> [PENDING: check] </span> |
| 224 To see the properties and the values they can have, see |
| 225 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_
theme_provider.cc" jstcache="0"><code jstcache="0">browser_theme_provider.cc</co
de></a>. |
| 226 <span class="comment" jstcache="0"> [PENDING: We should flesh this out.] </span> |
| 227 </p> |
| 228 |
| 229 <h3 id="tints" jstcache="0">tints</h3> |
| 230 |
| 231 <p jstcache="0"> |
| 232 You can specify tints to be applied to parts of the UI |
| 233 such as buttons, the frame, and the background tab. |
| 234 Google Chrome supports tints, not images, |
| 235 because images don't work across platforms |
| 236 and are brittle in the case of adding new buttons. |
| 237 To find the full range of tints that you can specify, see |
| 238 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/browser_
theme_provider.cc" jstcache="0"><code jstcache="0">browser_theme_provider.cc</co
de></a>. |
| 239 </p> |
| 240 |
| 241 <p jstcache="0"> |
| 242 Tints are in Hue-Saturation-Lightness (HSL) format, |
| 243 using floating-point numbers in the range 0 - 1.0: |
| 244 </p> |
| 245 |
| 246 <ul jstcache="0"> |
| 247 <li jstcache="0"> |
| 248 <b jstcache="0">Hue</b> is an absolute value, with 0 and 1 being red. |
| 249 </li> |
| 250 <li jstcache="0"> |
| 251 <b jstcache="0">Saturation</b> is relative to the currently provided image. |
| 252 0.5 is <em jstcache="0">no change</em>, |
| 253 0 is <em jstcache="0">totally desaturated</em>, |
| 254 and 1 is <em jstcache="0">full saturation</em>. |
| 255 </li> |
| 256 <li jstcache="0"> |
| 257 <b jstcache="0">Lightness</b> is also relative, |
| 258 with 0.5 being <em jstcache="0">no change</em>, |
| 259 0 as <em jstcache="0">all pixels black</em>, |
| 260 and 1 as <em jstcache="0">all pixels white</em>. |
| 261 </li> |
| 262 </ul> |
| 263 |
| 264 <p jstcache="0"> |
| 265 You can alternatively use <code jstcache="0">-1.0</code> for any of the HSL valu
es |
| 266 to specify <em jstcache="0">no change</em>. |
| 267 </p> |
| 268 |
| 269 |
| 270 </div> |
| 271 |
| 272 <!-- API PAGE --> |
| 273 <div class="apiPage" jsselect="apiDefinition" jstcache="3" style="displa
y: none; "> |
| 274 <a name="apiReference" jstcache="0"></a> |
| 275 <h2 jscontent="'API reference: ' + getModuleName()" jstcache="4">API ref
erence: chrome.apiname </h2> |
| 276 |
| 277 <!-- PROPERTIES --> |
| 278 <div jsdisplay="$this.properties" class="apiGroup" jstcache="5"> |
| 279 <a name="properties" jstcache="0"></a> |
| 280 <h3 id="properties" jstcache="0">Properties</h3> |
| 281 |
| 282 <div jsselect="getPropertyListFromObject($this)" jstcache="10"> |
| 283 <a jsvalues=".name:'property-' + name" jstcache="15"></a> |
| 284 <h4 jscontent="name" jstcache="16">getLastError</h4> |
| 285 <div class="summary" jstcache="0"> |
| 286 <!-- Note: intentionally longer 80 columns --> |
| 287 <span jscontent="getModuleName() + '.'" jstcache="23">chrome.ext
ension</span><span jscontent="$this.name" jstcache="24">lastError</span> |
| 288 </div> |
| 289 <div transclude="valueTemplate" jstcache="17"> |
| 290 </div> |
| 291 </div> |
| 292 |
| 293 </div> <!-- /apiGroup --> |
| 294 |
| 295 <!-- METHODS --> |
| 296 <div jsdisplay="functions && functions.length > 0" class="a
piGroup" id="methods" jstcache="6"> |
| 297 <a name="methods" jstcache="0"></a> |
| 298 <h3 jstcache="0">Methods</h3> |
| 299 |
| 300 <!-- iterates over all functions --> |
| 301 <div class="apiItem" jsselect="functions.sort(sortByName)" jstcache=
"11"> |
| 302 <a jsvalues=".name:'method-' + name" jstcache="18"></a> <!-- metho
d-anchor --> |
| 303 <h4 jscontent="name" jstcache="16">method name</h4> |
| 304 |
| 305 <div class="summary" jstcache="0"><span jsdisplay="returns" jscont
ent="getTypeName(returns)" jstcache="25">void</span> |
| 306 <!-- Note: intentionally longer 80 columns --> |
| 307 <span jscontent="getFullyQualifiedFunctionName($this)" jstcach
e="26">chrome.module.methodName</span>(<span jsselect="parameters" jsvalues="cla
ss:optional ? 'optional' : ''" jstcache="27"><span jsdisplay="$index" jstcache="
33">, </span><span jscontent="getTypeName($this)" jstcache="34"></span> |
| 308 <var jstcache="0"><span jscontent="name" jstcache="16"></s
pan></var></span>)</div> |
| 309 |
| 310 <div class="description" jstcache="0"> |
| 311 <p class="todo" jsdisplay="!description" jstcache="28">Undocumen
ted.</p> |
| 312 <p jsdisplay="description" jsvalues=".innerHTML:description" jst
cache="29"> |
| 313 A description from the json schema def of the function goes he
re. |
| 314 </p> |
| 315 |
| 316 <!-- PARAMETERS --> |
| 317 <h4 jstcache="0">Parameters</h4> |
| 318 <dl jstcache="0"> |
| 319 <div jsselect="parameters" jstcache="35"> |
| 320 |
| 321 <!-- VALUE: This is a subtemplate that is used elsewhere |
| 322 via jsTemplate *transclude* --> |
| 323 <div id="valueTemplate" jstcache="0"> |
| 324 <dt jstcache="0"> |
| 325 <var jsdisplay="$this.name" jscontent="$this.name" jstca
che="46">paramName</var> |
| 326 <em jstcache="0"> |
| 327 |
| 328 <!-- TYPE --> |
| 329 <div style="display:inline" jstcache="0"> |
| 330 ( |
| 331 <span class="optional" jsdisplay="optional" jstc
ache="47">optional</span> |
| 332 <span id="typeTemplate" jstcache="0"> |
| 333 <span jsdisplay="getTypeRef($this)" jstcache="
48"> |
| 334 <a jsvalues=".href: getTypeRefPage($this) +
'#type-' + getTypeRef($this)" jscontent="getTypeRef($this)" jstcache="50"> Type<
/a> |
| 335 </span> |
| 336 <span jsdisplay="!getTypeRef($this)" jstcache=
"49"> |
| 337 <span jsdisplay="isArray($this)" jstcache="5
1"> |
| 338 array of <span jsselect="items" jstcache="
53"><span transclude="typeTemplate" jstcache="54"></span></span> |
| 339 </span> |
| 340 <span jsdisplay="!isArray($this)" jscontent=
"getTypeName($this)" jstcache="52">paramType</span> |
| 341 </span> |
| 342 </span> |
| 343 ) |
| 344 </div> |
| 345 |
| 346 </em> |
| 347 </dt> |
| 348 <dd class="todo" jsdisplay="!$this.description" jstcache="
39"> |
| 349 Undocumented. |
| 350 </dd> |
| 351 <dd jsdisplay="$this.description" jsvalues=".innerHTML:$th
is.description" jstcache="40"> |
| 352 Description of this parameter from the json schema. |
| 353 </dd> |
| 354 |
| 355 <!-- OBJECT PROPERTIES --> |
| 356 <dd jsdisplay="shouldExpandObject($this)" jstcache="41"> |
| 357 <dl jstcache="0"> |
| 358 <div jsselect="getPropertyListFromObject($this)" jstca
che="10"> |
| 359 <div transclude="valueTemplate" jstcache="17"> |
| 360 </div> |
| 361 </div> |
| 362 </dl> |
| 363 </dd> |
| 364 </div> <!-- /VALUE --> |
| 365 |
| 366 </div> |
| 367 </dl> |
| 368 |
| 369 <!-- RETURNS --> |
| 370 <h4 jsdisplay="returns" jstcache="30">Returns</h4> |
| 371 <dl jstcache="0"> |
| 372 <div jsselect="returns" jstcache="36"> |
| 373 <div transclude="valueTemplate" jstcache="17"> |
| 374 </div> |
| 375 </div> |
| 376 </dl> |
| 377 |
| 378 <!-- CALLBACK --> |
| 379 <div jsdisplay="hasCallback(parameters)" jstcache="31"> |
| 380 <div jsselect="getCallbackParameters(parameters)" jstcache="37
"> |
| 381 <h4 jstcache="0">Callback function</h4> |
| 382 <p jstcache="0"> |
| 383 If you specify the <em jstcache="0">callback</em> parameter, |
| 384 it should specify a function that looks like this: |
| 385 </p> |
| 386 |
| 387 <!-- Note: intentionally longer 80 columns --> |
| 388 <pre jstcache="0">function(<span jscontent="getSignatureString
(parameters)" jstcache="32">Type param1, Type param2</span>) <span class="subdue
d" jstcache="0">{...}</span>);</pre> |
| 389 <dl jstcache="0"> |
| 390 <div jsselect="parameters" jstcache="35"> |
| 391 <div transclude="valueTemplate" jstcache="17"> |
| 392 </div> |
| 393 </div> |
| 394 </dl> |
| 395 </div> |
| 396 </div> |
| 397 |
| 398 </div> <!-- /description --> |
| 399 |
| 400 </div> <!-- /apiItem --> |
| 401 |
| 402 </div> <!-- /apiGroup --> |
| 403 |
| 404 <!-- EVENTS --> |
| 405 <div jsdisplay="events && events.length > 0" class="apiGrou
p" jstcache="7"> |
| 406 <a name="events" jstcache="0"></a> |
| 407 <h3 id="events" jstcache="0">Events</h3> |
| 408 |
| 409 <!-- iterates over all events --> |
| 410 <div jsselect="events.sort(sortByName)" class="apiItem" jstcache="12
"> |
| 411 <a jsvalues=".name:'event-' + name" jstcache="19"></a> |
| 412 <h4 jscontent="name" jstcache="16">event name</h4> |
| 413 |
| 414 <div class="summary" jstcache="0"> |
| 415 <!-- Note: intentionally longer 80 columns --> |
| 416 <span jscontent="getModuleName() + '.'" class="subdued" jstcache
="23">chrome.bookmarks</span><span jscontent="name" jstcache="16">onEvent</span>
<span class="subdued" jstcache="0">.addListener</span>(function(<span jscontent=
"getSignatureString(parameters)" jstcache="32">Type param1, Type param2</span>)
<span class="subdued" jstcache="0">{...}</span>); |
| 417 </div> |
| 418 |
| 419 <div class="description" jstcache="0"> |
| 420 <p class="todo" jsdisplay="!description" jstcache="28">Undocumen
ted.</p> |
| 421 <p jsdisplay="description" jsvalues=".innerHTML:description" jst
cache="29"> |
| 422 A description from the json schema def of the event goes here. |
| 423 </p> |
| 424 |
| 425 <!-- PARAMETERS --> |
| 426 <h4 jstcache="0">Parameters</h4> |
| 427 <dl jstcache="0"> |
| 428 <div jsselect="parameters" jstcache="35"> |
| 429 <div transclude="valueTemplate" jstcache="17"> |
| 430 </div> |
| 431 </div> |
| 432 </dl> |
| 433 |
| 434 </div> <!-- /decription --> |
| 435 |
| 436 </div> <!-- /apiItem --> |
| 437 |
| 438 </div> <!-- /apiGroup --> |
| 439 |
| 440 <!-- TYPES --> |
| 441 <div jsdisplay="types && types.length > 0" class="apiGroup"
jstcache="8"> |
| 442 <a name="types.sort(sortByName)" jstcache="0"></a> |
| 443 <h3 id="types" jstcache="0">Types</h3> |
| 444 |
| 445 <!-- iterates over all types --> |
| 446 <div jsselect="types" class="apiItem" jstcache="13"> |
| 447 <a jsvalues=".name:'type-' + id" jstcache="20"></a> |
| 448 <h4 jscontent="id" jstcache="21">type name</h4> |
| 449 |
| 450 <div transclude="valueTemplate" jstcache="17"> |
| 451 </div> |
| 452 |
| 453 </div> <!-- /apiItem --> |
| 454 |
| 455 </div> <!-- /apiGroup --> |
| 456 |
| 457 </div> <!-- /apiPage --> |
| 458 </div> <!-- /mainColumn --> |
| 459 </div> <!-- /pageContent --> |
| 460 <div id="pageFooter" --="" jstcache="0"> |
| 461 <p jstcache="0"> |
| 462 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
" jstcache="0">noted</a>, |
| 463 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/" jstcache="0">Creative Commons |
| 464 Attribution 3.0 License</a>, and code samples are licensed under the |
| 465 <a rel="license" href="http://code.google.com/google_bsd_license.html" jstcach
e="0">BSD License</a>. |
| 466 </p> |
| 467 <p jstcache="0"> |
| 468 ©2009 Google |
| 469 </p> |
| 470 </div> <!-- /pageFooter --> |
| 471 </div> <!-- /container --> |
| 472 </body></html> |
| 473 #EOF |
| OLD | NEW |