Commit 099769c8 authored by asargent@chromium.org's avatar asargent@chromium.org

Updates to documentation for experimental.apps

-Put nodoc on experimental.apps.{notify,clearAllNotifications} since those
aren't available in new packaged apps and we'll probably be doing some changes
to them before we'd move them to supported anyway.

-Remove nodoc from experimental.apps.onLaunched

BUG=138754
TEST=none

Review URL: https://chromiumcodereview.appspot.com/10810074

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148848 0039d316-1c4b-4281-b951-d872f2087c98
parent b4935f39
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"name": "notify", "name": "notify",
"type": "function", "type": "function",
"description": "Creates a notification from this app.", "description": "Creates a notification from this app.",
"nodoc": true,
"parameters": [ "parameters": [
{ {
"type": "object", "type": "object",
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
"name": "clearAllNotifications", "name": "clearAllNotifications",
"type": "function", "type": "function",
"description": "Clears all previously sent notifications.", "description": "Clears all previously sent notifications.",
"nodoc": true,
"parameters": [ "parameters": [
{ {
"type": "object", "type": "object",
...@@ -80,7 +82,6 @@ ...@@ -80,7 +82,6 @@
], ],
"events": [ "events": [
{ {
"nodoc": true,
"name": "onLaunched", "name": "onLaunched",
"type": "function", "type": "function",
"description": "Fired when the app is launched.", "description": "Fired when the app is launched.",
......
...@@ -167,12 +167,10 @@ ...@@ -167,12 +167,10 @@
<a href="#apiReference">API reference: chrome.experimental.app</a> <a href="#apiReference">API reference: chrome.experimental.app</a>
<ol> <ol>
<li> <li>
<a href="#global-methods">Methods</a> <a href="#global-events">Events</a>
<ol> <ol>
<li> <li>
<a href="#method-clearAllNotifications">clearAllNotifications</a> <a href="#event-onLaunched">onLaunched</a>
</li><li>
<a href="#method-notify">notify</a>
</li> </li>
</ol> </ol>
</li> </li>
...@@ -195,27 +193,29 @@ ...@@ -195,27 +193,29 @@
<!-- PROPERTIES --> <!-- PROPERTIES -->
<!-- /apiGroup --> <!-- /apiGroup -->
<!-- METHODS --> <!-- METHODS -->
<div id="methodsTemplate" class="apiGroup"> <!-- /apiGroup -->
<a name="global-methods"></a> <!-- EVENTS -->
<h3>Methods</h3> <div id="eventsTemplate" class="apiGroup">
<!-- iterates over all functions --> <a name="global-events"></a>
<h3>Events</h3>
<!-- iterates over all events -->
<div class="apiItem"> <div class="apiItem">
<a name="method-clearAllNotifications"></a> <!-- method-anchor --> <a name="event-onLaunched"></a>
<h4>clearAllNotifications</h4> <h4>onLaunched</h4>
<div class="summary"> <div class="summary">
<!-- Note: intentionally longer 80 columns --> <!-- Note: intentionally longer 80 columns -->
<span>chrome.experimental.app.clearAllNotifications</span>(<span class="optional"><span>object</span> <span class="subdued">chrome.experimental.app.</span><span>onLaunched</span><span class="subdued">.addListener</span>(function(<span>object launchData</span>) <span class="subdued">{...}</span><span></span>);
<var><span>details</span></var></span><span class="optional"><span>, </span><span>function</span> </div>
<var><span>callback</span></var></span>)</div>
<div class="description"> <div class="description">
<p>Clears all previously sent notifications.</p> <p>Fired when the app is launched.</p>
<!-- PARAMETERS --> <!-- LISTENER PARAMETERS -->
<h4>Parameters</h4> <div>
<dl> <h4>Listener parameters</h4>
<div> <dl>
<div> <div>
<div>
<dt> <dt>
<var>details</var> <var>launchData</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
...@@ -230,92 +230,14 @@ ...@@ -230,92 +230,14 @@
</div> </div>
</em> </em>
</dt> </dt>
<dd class="todo"> <dd>Optional data for the launch.</dd>
Undocumented.
</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<dd> <dd>
<dl> <dl>
<div> <div>
<div> <div>
<dt> <dt>
<var>extensionId</var> <var>intent</var>
<em>
<!-- TYPE -->
<div style="display:inline">
(
<span class="optional">optional</span>
<span id="typeTemplate">
<span>
<span>string</span>
</span>
</span>
)
</div>
</em>
</dt>
<dd>An optional id to do notifications for an app other than the calling app. This is just to allow prototyping with an extension that sends notifications on behalf of apps that don't support notifications yet; this will be removed before the API becomes stable.</dd>
<!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS -->
</div>
</div>
</dl>
</dd>
<!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS -->
</div>
</div><div>
<div>
<dt>
<var>callback</var>
<em>
<!-- TYPE -->
<div style="display:inline">
(
<span class="optional">optional</span>
<span id="typeTemplate">
<span>
<span>function</span>
</span>
</span>
)
</div>
</em>
</dt>
<dd>A callback when the function is complete. Any errors will be reported in <a href="extension.html#property-lastError">chrome.extension.lastError</a>.</dd>
<!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS -->
</div>
</div>
</dl>
<!-- RETURNS -->
<dl>
</dl>
<!-- CALLBACK -->
<!-- MIN_VERSION -->
</div> <!-- /description -->
</div><div class="apiItem">
<a name="method-notify"></a> <!-- method-anchor -->
<h4>notify</h4>
<div class="summary">
<!-- Note: intentionally longer 80 columns -->
<span>chrome.experimental.app.notify</span>(<span class="null"><span>object</span>
<var><span>details</span></var></span><span class="optional"><span>, </span><span>function</span>
<var><span>callback</span></var></span>)</div>
<div class="description">
<p>Creates a notification from this app.</p>
<!-- PARAMETERS -->
<h4>Parameters</h4>
<dl>
<div>
<div>
<dt>
<var>details</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
...@@ -329,21 +251,18 @@ ...@@ -329,21 +251,18 @@
</div> </div>
</em> </em>
</dt> </dt>
<dd class="todo"> <dd>A WebIntents intent object.</dd>
Undocumented.
</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<dd> <dd>
<dl> <dl>
<div> <div>
<div> <div>
<dt> <dt>
<var>extensionId</var> <var>action</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>string</span>
...@@ -353,7 +272,7 @@ ...@@ -353,7 +272,7 @@
</div> </div>
</em> </em>
</dt> </dt>
<dd>An optional id to do notifications for an app other than the calling app. This is just to allow prototyping with an extension that sends notifications on behalf of apps that don't support notifications yet; this will be removed before the API becomes stable.</dd> <dd>The WebIntent being invoked.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -362,12 +281,11 @@ ...@@ -362,12 +281,11 @@
</div><div> </div><div>
<div> <div>
<dt> <dt>
<var>title</var> <var>type</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>string</span>
...@@ -377,7 +295,7 @@ ...@@ -377,7 +295,7 @@
</div> </div>
</em> </em>
</dt> </dt>
<dd>The title of the notification.</dd> <dd>The MIME type of the data.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -386,22 +304,21 @@ ...@@ -386,22 +304,21 @@
</div><div> </div><div>
<div> <div>
<dt> <dt>
<var>bodyText</var> <var>data</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>any</span>
</span> </span>
</span> </span>
) )
</div> </div>
</em> </em>
</dt> </dt>
<dd>The text content of the notification.</dd> <dd>Data associated with the intent.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -410,22 +327,21 @@ ...@@ -410,22 +327,21 @@
</div><div> </div><div>
<div> <div>
<dt> <dt>
<var>linkUrl</var> <var>postResult</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>function</span>
</span> </span>
</span> </span>
) )
</div> </div>
</em> </em>
</dt> </dt>
<dd>The URL for an optional link to show along with the notification. If you specify a linkUrl, you must also specify a value for linkText.</dd> <dd>Null callback to be compatible with WebIntents.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -434,22 +350,21 @@ ...@@ -434,22 +350,21 @@
</div><div> </div><div>
<div> <div>
<dt> <dt>
<var>linkText</var> <var>postFailure</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>function</span>
</span> </span>
</span> </span>
) )
</div> </div>
</em> </em>
</dt> </dt>
<dd>If a linkUrl is provided, this is required and will be used as the linkified text. It should be relatively short.</dd> <dd>Null callback to be compatible with WebIntents.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -462,42 +377,24 @@ ...@@ -462,42 +377,24 @@
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS --> <!-- FUNCTION PARAMETERS -->
</div> </div>
</div><div> </div>
<div> </dl>
<dt> </dd>
<var>callback</var>
<em>
<!-- TYPE -->
<div style="display:inline">
(
<span class="optional">optional</span>
<span id="typeTemplate">
<span>
<span>function</span>
</span>
</span>
)
</div>
</em>
</dt>
<dd>A callback when the function is complete. Any errors will be reported in <a href="extension.html#property-lastError">chrome.extension.lastError</a>.</dd>
<!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS --> <!-- FUNCTION PARAMETERS -->
</div> </div>
</div> </div>
</dl> </dl>
<!-- RETURNS --> </div>
<!-- EXTRA PARAMETERS -->
<!-- LISTENER RETURN VALUE -->
<dl> <dl>
</dl> </dl>
<!-- CALLBACK -->
<!-- MIN_VERSION -->
</div> <!-- /description --> </div> <!-- /description -->
</div> <!-- /apiItem --> <!-- /description -->
</div> <!-- /apiGroup --> </div> <!-- /apiItem -->
<!-- EVENTS --> </div> <!-- /apiGroup -->
<!-- /apiGroup -->
<!-- TYPES --> <!-- TYPES -->
<!-- /apiGroup --> <!-- /apiGroup -->
</div> <!-- /apiPage --> </div> <!-- /apiPage -->
......
...@@ -196,12 +196,10 @@ ...@@ -196,12 +196,10 @@
<a href="#apiReference">API reference: chrome.experimental.app</a> <a href="#apiReference">API reference: chrome.experimental.app</a>
<ol> <ol>
<li> <li>
<a href="#global-methods">Methods</a> <a href="#global-events">Events</a>
<ol> <ol>
<li> <li>
<a href="#method-clearAllNotifications">clearAllNotifications</a> <a href="#event-onLaunched">onLaunched</a>
</li><li>
<a href="#method-notify">notify</a>
</li> </li>
</ol> </ol>
</li> </li>
...@@ -224,27 +222,29 @@ ...@@ -224,27 +222,29 @@
<!-- PROPERTIES --> <!-- PROPERTIES -->
<!-- /apiGroup --> <!-- /apiGroup -->
<!-- METHODS --> <!-- METHODS -->
<div id="methodsTemplate" class="apiGroup"> <!-- /apiGroup -->
<a name="global-methods"></a> <!-- EVENTS -->
<h3>Methods</h3> <div id="eventsTemplate" class="apiGroup">
<!-- iterates over all functions --> <a name="global-events"></a>
<h3>Events</h3>
<!-- iterates over all events -->
<div class="apiItem"> <div class="apiItem">
<a name="method-clearAllNotifications"></a> <!-- method-anchor --> <a name="event-onLaunched"></a>
<h4>clearAllNotifications</h4> <h4>onLaunched</h4>
<div class="summary"> <div class="summary">
<!-- Note: intentionally longer 80 columns --> <!-- Note: intentionally longer 80 columns -->
<span>chrome.experimental.app.clearAllNotifications</span>(<span class="optional"><span>object</span> <span class="subdued">chrome.experimental.app.</span><span>onLaunched</span><span class="subdued">.addListener</span>(function(<span>object launchData</span>) <span class="subdued">{...}</span><span></span>);
<var><span>details</span></var></span><span class="optional"><span>, </span><span>function</span> </div>
<var><span>callback</span></var></span>)</div>
<div class="description"> <div class="description">
<p>Clears all previously sent notifications.</p> <p>Fired when the app is launched.</p>
<!-- PARAMETERS --> <!-- LISTENER PARAMETERS -->
<h4>Parameters</h4> <div>
<dl> <h4>Listener parameters</h4>
<div> <dl>
<div> <div>
<div>
<dt> <dt>
<var>details</var> <var>launchData</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
...@@ -259,105 +259,14 @@ ...@@ -259,105 +259,14 @@
</div> </div>
</em> </em>
</dt> </dt>
<dd class="todo"> <dd>Optional data for the launch.</dd>
Undocumented.
</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<dd> <dd>
<dl> <dl>
<div> <div>
<div> <div>
<dt> <dt>
<var>extensionId</var> <var>intent</var>
<em>
<!-- TYPE -->
<div style="display:inline">
(
<span class="optional">optional</span>
<span id="typeTemplate">
<span>
<span>string</span>
</span>
</span>
)
</div>
</em>
</dt>
<dd>An optional id to do notifications for an app other than the calling app. This is just to allow prototyping with an extension that sends notifications on behalf of apps that don't support notifications yet; this will be removed before the API becomes stable.</dd>
<!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS -->
</div>
</div>
</dl>
</dd>
<!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS -->
</div>
</div><div>
<div>
<dt>
<var>callback</var>
<em>
<!-- TYPE -->
<div style="display:inline">
(
<span class="optional">optional</span>
<span id="typeTemplate">
<span>
<span>function</span>
</span>
</span>
)
</div>
</em>
</dt>
<dd>A callback when the function is complete. Any errors will be reported in <a href="extension.html#property-lastError">chrome.extension.lastError</a>.</dd>
<!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS -->
</div>
</div>
</dl>
<!-- RETURNS -->
<dl>
</dl>
<!-- CALLBACK -->
<div>
<div>
<h4>Callback function</h4>
<p>
If you specify the <em>callback</em> parameter, it should
specify a function that looks like this:
</p>
<!-- Note: intentionally longer 80 columns -->
<pre>function(<span></span>) <span class="subdued">{...}</span>;</pre>
<dl>
</dl>
</div>
</div>
<!-- MIN_VERSION -->
</div> <!-- /description -->
</div><div class="apiItem">
<a name="method-notify"></a> <!-- method-anchor -->
<h4>notify</h4>
<div class="summary">
<!-- Note: intentionally longer 80 columns -->
<span>chrome.experimental.app.notify</span>(<span class="null"><span>object</span>
<var><span>details</span></var></span><span class="optional"><span>, </span><span>function</span>
<var><span>callback</span></var></span>)</div>
<div class="description">
<p>Creates a notification from this app.</p>
<!-- PARAMETERS -->
<h4>Parameters</h4>
<dl>
<div>
<div>
<dt>
<var>details</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
...@@ -371,21 +280,18 @@ ...@@ -371,21 +280,18 @@
</div> </div>
</em> </em>
</dt> </dt>
<dd class="todo"> <dd>A WebIntents intent object.</dd>
Undocumented.
</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<dd> <dd>
<dl> <dl>
<div> <div>
<div> <div>
<dt> <dt>
<var>extensionId</var> <var>action</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>string</span>
...@@ -395,7 +301,7 @@ ...@@ -395,7 +301,7 @@
</div> </div>
</em> </em>
</dt> </dt>
<dd>An optional id to do notifications for an app other than the calling app. This is just to allow prototyping with an extension that sends notifications on behalf of apps that don't support notifications yet; this will be removed before the API becomes stable.</dd> <dd>The WebIntent being invoked.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -404,12 +310,11 @@ ...@@ -404,12 +310,11 @@
</div><div> </div><div>
<div> <div>
<dt> <dt>
<var>title</var> <var>type</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>string</span>
...@@ -419,7 +324,7 @@ ...@@ -419,7 +324,7 @@
</div> </div>
</em> </em>
</dt> </dt>
<dd>The title of the notification.</dd> <dd>The MIME type of the data.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -428,22 +333,21 @@ ...@@ -428,22 +333,21 @@
</div><div> </div><div>
<div> <div>
<dt> <dt>
<var>bodyText</var> <var>data</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>any</span>
</span> </span>
</span> </span>
) )
</div> </div>
</em> </em>
</dt> </dt>
<dd>The text content of the notification.</dd> <dd>Data associated with the intent.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -452,22 +356,21 @@ ...@@ -452,22 +356,21 @@
</div><div> </div><div>
<div> <div>
<dt> <dt>
<var>linkUrl</var> <var>postResult</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>function</span>
</span> </span>
</span> </span>
) )
</div> </div>
</em> </em>
</dt> </dt>
<dd>The URL for an optional link to show along with the notification. If you specify a linkUrl, you must also specify a value for linkText.</dd> <dd>Null callback to be compatible with WebIntents.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -476,22 +379,21 @@ ...@@ -476,22 +379,21 @@
</div><div> </div><div>
<div> <div>
<dt> <dt>
<var>linkText</var> <var>postFailure</var>
<em> <em>
<!-- TYPE --> <!-- TYPE -->
<div style="display:inline"> <div style="display:inline">
( (
<span class="optional">optional</span>
<span id="typeTemplate"> <span id="typeTemplate">
<span> <span>
<span>string</span> <span>function</span>
</span> </span>
</span> </span>
) )
</div> </div>
</em> </em>
</dt> </dt>
<dd>If a linkUrl is provided, this is required and will be used as the linkified text. It should be relatively short.</dd> <dd>Null callback to be compatible with WebIntents.</dd>
<!-- OBJECT PROPERTIES --> <!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
...@@ -504,55 +406,24 @@ ...@@ -504,55 +406,24 @@
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS --> <!-- FUNCTION PARAMETERS -->
</div> </div>
</div><div> </div>
<div> </dl>
<dt> </dd>
<var>callback</var>
<em>
<!-- TYPE -->
<div style="display:inline">
(
<span class="optional">optional</span>
<span id="typeTemplate">
<span>
<span>function</span>
</span>
</span>
)
</div>
</em>
</dt>
<dd>A callback when the function is complete. Any errors will be reported in <a href="extension.html#property-lastError">chrome.extension.lastError</a>.</dd>
<!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS --> <!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS --> <!-- OBJECT EVENT FIELDS -->
<!-- FUNCTION PARAMETERS --> <!-- FUNCTION PARAMETERS -->
</div> </div>
</div> </div>
</dl>
<!-- RETURNS -->
<dl>
</dl>
<!-- CALLBACK -->
<div>
<div>
<h4>Callback function</h4>
<p>
If you specify the <em>callback</em> parameter, it should
specify a function that looks like this:
</p>
<!-- Note: intentionally longer 80 columns -->
<pre>function(<span></span>) <span class="subdued">{...}</span>;</pre>
<dl>
</dl> </dl>
</div>
</div> </div>
<!-- MIN_VERSION --> <!-- EXTRA PARAMETERS -->
<!-- LISTENER RETURN VALUE -->
<dl>
</dl>
</div> <!-- /description --> </div> <!-- /description -->
</div> <!-- /apiItem --> <!-- /description -->
</div> <!-- /apiGroup --> </div> <!-- /apiItem -->
<!-- EVENTS --> </div> <!-- /apiGroup -->
<!-- /apiGroup -->
<!-- TYPES --> <!-- TYPES -->
<!-- /apiGroup --> <!-- /apiGroup -->
</div> <!-- /apiPage --> </div> <!-- /apiPage -->
......
...@@ -120,8 +120,7 @@ ...@@ -120,8 +120,7 @@
"chrome.events.Event.hasListeners": "events.html#method-Event-hasListeners", "chrome.events.Event.hasListeners": "events.html#method-Event-hasListeners",
"chrome.events.Event.removeListener": "events.html#method-Event-removeListener", "chrome.events.Event.removeListener": "events.html#method-Event-removeListener",
"chrome.events.Event.removeRules": "events.html#method-Event-removeRules", "chrome.events.Event.removeRules": "events.html#method-Event-removeRules",
"chrome.experimental.app.clearAllNotifications": "experimental.app.html#method-clearAllNotifications", "chrome.experimental.app.onLaunched": "experimental.app.html#event-onLaunched",
"chrome.experimental.app.notify": "experimental.app.html#method-notify",
"chrome.experimental.bluetooth.connect": "experimental.bluetooth.html#method-connect", "chrome.experimental.bluetooth.connect": "experimental.bluetooth.html#method-connect",
"chrome.experimental.bluetooth.disconnect": "experimental.bluetooth.html#method-disconnect", "chrome.experimental.bluetooth.disconnect": "experimental.bluetooth.html#method-disconnect",
"chrome.experimental.bluetooth.getAddress": "experimental.bluetooth.html#method-getAddress", "chrome.experimental.bluetooth.getAddress": "experimental.bluetooth.html#method-getAddress",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment