summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
diff options
context:
space:
mode:
authorskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 15:08:35 +0000
committerskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 15:08:35 +0000
commitea8fe5771ba099a83192fb6355e70ff72829ac9e (patch)
treeffa40ac452731a0011c76bbbfa035211ad4a3c32 /chrome/common/extensions
parent7ef68bcbd3e32f1001e29b09710f6d1a71119e96 (diff)
downloadchromium_src-ea8fe5771ba099a83192fb6355e70ff72829ac9e.zip
chromium_src-ea8fe5771ba099a83192fb6355e70ff72829ac9e.tar.gz
chromium_src-ea8fe5771ba099a83192fb6355e70ff72829ac9e.tar.bz2
Issue 21729: Add new event chrome.tabs.onStatusChange .
BUG=21729 TEST= Manually tested that onUpdated sends all tab info. Updated unit tests. Review URL: http://codereview.chromium.org/289006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions')
-rwxr-xr-xchrome/common/extensions/api/extension_api.json6
-rw-r--r--chrome/common/extensions/docs/tabs.html51
2 files changed, 51 insertions, 6 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index fa1b1f9..86e42d6 100755
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -729,6 +729,7 @@
{
"type": "object",
"name": "changeInfo",
+ "description": "Lists the changes to the state of the tab that was updated.",
"properties": {
"status": {
"type": "string",
@@ -740,6 +741,11 @@
"description": "Only specified if the tab's URL changed."
}
}
+ },
+ {
+ "$ref": "Tab",
+ "name": "tab",
+ "description": "Gives the state of the tab that was updated."
}
]
},
diff --git a/chrome/common/extensions/docs/tabs.html b/chrome/common/extensions/docs/tabs.html
index 5b97416..f6539d6 100644
--- a/chrome/common/extensions/docs/tabs.html
+++ b/chrome/common/extensions/docs/tabs.html
@@ -4138,7 +4138,7 @@ For example:
<div class="summary">
<!-- Note: intentionally longer 80 columns -->
- <span class="subdued">chrome.tabs.</span><span>onUpdated</span><span class="subdued">.addListener</span>(function(<span>integer tabId, object changeInfo</span>) <span class="subdued">{...}</span>);
+ <span class="subdued">chrome.tabs.</span><span>onUpdated</span><span class="subdued">.addListener</span>(function(<span>integer tabId, object changeInfo, Tab tab</span>) <span class="subdued">{...}</span>);
</div>
<div class="description">
@@ -4191,7 +4191,7 @@ For example:
</dl>
</dd>
</div>
- </div><div jsinstance="*1">
+ </div><div jsinstance="1">
<div>
<dt>
<var>changeInfo</var>
@@ -4217,12 +4217,10 @@ For example:
</em>
</dt>
- <dd class="todo">
+ <dd class="todo" style="display: none; ">
Undocumented.
</dd>
- <dd style="display: none; ">
- Description of this parameter from the json schema.
- </dd>
+ <dd>Lists the changes to the state of the tab that was updated.</dd>
<!-- OBJECT PROPERTIES -->
<dd>
@@ -4313,6 +4311,47 @@ For example:
</dl>
</dd>
</div>
+ </div><div jsinstance="*2">
+ <div>
+ <dt>
+ <var>tab</var>
+ <em>
+
+ <!-- TYPE -->
+ <div style="display:inline">
+ (
+ <span class="optional" style="display: none; ">optional</span>
+ <span id="typeTemplate">
+ <span>
+ <a href="tabs.html#type-Tab">Tab</a>
+ </span>
+ <span style="display: none; ">
+ <span>
+ array of <span><span></span></span>
+ </span>
+ <span>paramType</span>
+ </span>
+ </span>
+ )
+ </div>
+
+ </em>
+ </dt>
+ <dd class="todo" style="display: none; ">
+ Undocumented.
+ </dd>
+ <dd>Gives the state of the tab that was updated.</dd>
+
+ <!-- OBJECT PROPERTIES -->
+ <dd style="display: none; ">
+ <dl>
+ <div>
+ <div>
+ </div>
+ </div>
+ </dl>
+ </dd>
+ </div>
</div>
</dl>