Index: chrome/common/extensions/docs/experimental.processes.html |
=================================================================== |
--- chrome/common/extensions/docs/experimental.processes.html (revision 62984) |
+++ chrome/common/extensions/docs/experimental.processes.html (working copy) |
@@ -257,15 +257,15 @@ |
<a href="#methods">Methods</a> |
<ol> |
<li> |
- <a href="#method-getProcessForTab">getProcessForTab</a> |
+ <a href="#method-getProcessIdForTab">getProcessIdForTab</a> |
</li> |
</ol> |
</li> |
- <li style="display: none; "> |
+ <li> |
<a href="#events">Events</a> |
<ol> |
<li> |
- <a href="#event-anchor">eventName</a> |
+ <a href="#event-onUpdated">onUpdated</a> |
</li> |
</ol> |
</li> |
@@ -333,18 +333,18 @@ |
<!-- iterates over all functions --> |
<div class="apiItem"> |
- <a name="method-getProcessForTab"></a> <!-- method-anchor --> |
- <h4>getProcessForTab</h4> |
+ <a name="method-getProcessIdForTab"></a> <!-- method-anchor --> |
+ <h4>getProcessIdForTab</h4> |
<div class="summary"><span style="display: none; ">void</span> |
<!-- Note: intentionally longer 80 columns --> |
- <span>chrome.experimental.processes.getProcessForTab</span>(<span class="null"><span style="display: none; ">, </span><span>integer</span> |
+ <span>chrome.experimental.processes.getProcessIdForTab</span>(<span class="null"><span style="display: none; ">, </span><span>integer</span> |
<var><span>tabId</span></var></span><span class="null"><span>, </span><span>function</span> |
<var><span>callback</span></var></span>)</div> |
<div class="description"> |
<p class="todo" style="display: none; ">Undocumented.</p> |
- <p>Returns details about the current renderer process of the specified tab.</p> |
+ <p>Returns the ID of the renderer process for the specified tab.</p> |
<!-- PARAMETERS --> |
<h4>Parameters</h4> |
@@ -495,12 +495,12 @@ |
</p> |
<!-- Note: intentionally longer 80 columns --> |
- <pre>function(<span>Process process</span>) <span class="subdued">{...}</span>;</pre> |
+ <pre>function(<span>integer processId</span>) <span class="subdued">{...}</span>;</pre> |
<dl> |
<div> |
<div> |
<dt> |
- <var>process</var> |
+ <var>processId</var> |
<em> |
<!-- TYPE --> |
@@ -509,15 +509,15 @@ |
<span class="optional" style="display: none; ">optional</span> |
<span class="enum" style="display: none; ">enumerated</span> |
<span id="typeTemplate"> |
+ <span style="display: none; "> |
+ <a> Type</a> |
+ </span> |
<span> |
- <a href="experimental.processes.html#type-Process">Process</a> |
- </span> |
- <span style="display: none; "> |
- <span> |
+ <span style="display: none; "> |
array of <span><span></span></span> |
</span> |
- <span>paramType</span> |
- <span></span> |
+ <span>integer</span> |
+ <span style="display: none; "></span> |
</span> |
</span> |
) |
@@ -528,7 +528,7 @@ |
<dd class="todo" style="display: none; "> |
Undocumented. |
</dd> |
- <dd>Details about the tab's process.</dd> |
+ <dd>Process ID of the tab's renderer process.</dd> |
<dd style="display: none; "> |
This parameter was added in version |
<b><span></span></b>. |
@@ -574,32 +574,87 @@ |
</div> <!-- /apiGroup --> |
<!-- EVENTS --> |
- <div class="apiGroup" style="display: none; "> |
+ <div class="apiGroup"> |
<a name="events"></a> |
<h3 id="events">Events</h3> |
<!-- iterates over all events --> |
<div class="apiItem"> |
- <a></a> |
- <h4>event name</h4> |
+ <a name="event-onUpdated"></a> |
+ <h4>onUpdated</h4> |
<div class="summary"> |
<!-- Note: intentionally longer 80 columns --> |
- <span class="subdued">chrome.bookmarks</span><span>onEvent</span><span class="subdued">.addListener</span>(function(<span>Type param1, Type param2</span>) <span class="subdued">{...}</span>); |
+ <span class="subdued">chrome.experimental.processes.</span><span>onUpdated</span><span class="subdued">.addListener</span>(function(<span>object processes</span>) <span class="subdued">{...}</span>); |
</div> |
<div class="description"> |
- <p class="todo">Undocumented.</p> |
- <p> |
- A description from the json schema def of the event goes here. |
- </p> |
+ <p class="todo" style="display: none; ">Undocumented.</p> |
+ <p>Fires each time the Task Manager updates its process statistics, providing the dictionary of updated Process objects, indexed by process ID.</p> |
<!-- PARAMETERS --> |
<h4>Parameters</h4> |
<dl> |
<div> |
<div> |
- </div> |
+ <dt> |
+ <var>processes</var> |
+ <em> |
+ |
+ <!-- TYPE --> |
+ <div style="display:inline"> |
+ ( |
+ <span class="optional" style="display: none; ">optional</span> |
+ <span class="enum" style="display: none; ">enumerated</span> |
+ <span id="typeTemplate"> |
+ <span style="display: none; "> |
+ <a> Type</a> |
+ </span> |
+ <span> |
+ <span style="display: none; "> |
+ array of <span><span></span></span> |
+ </span> |
+ <span>object</span> |
+ <span style="display: none; "></span> |
+ </span> |
+ </span> |
+ ) |
+ </div> |
+ |
+ </em> |
+ </dt> |
+ <dd class="todo"> |
+ Undocumented. |
+ </dd> |
+ <dd style="display: none; "> |
+ Description of this parameter from the json schema. |
+ </dd> |
+ <dd style="display: none; "> |
+ This parameter was added in version |
+ <b><span></span></b>. |
+ You must omit this parameter in earlier versions, |
+ and you may omit it in any version. If you require this |
+ parameter, the manifest key |
+ <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> |
+ can ensure that your extension won't be run in an earlier browser version. |
+ </dd> |
+ |
+ <!-- OBJECT PROPERTIES --> |
+ <dd> |
+ <dl> |
+ <div style="display: none; "> |
+ <div> |
+ </div> |
+ </div> |
+ </dl> |
+ </dd> |
+ |
+ <!-- FUNCTION PARAMETERS --> |
+ <dd style="display: none; "> |
+ <div></div> |
+ </dd> |
+ |
+ </div> |
</div> |
</dl> |
@@ -694,7 +749,7 @@ |
<dd class="todo" style="display: none; "> |
Undocumented. |
</dd> |
- <dd>The internal ID of the process.</dd> |
+ <dd>The ID of the process, as provided by the OS.</dd> |
<dd style="display: none; "> |
This parameter was added in version |
<b><span></span></b>. |
@@ -721,6 +776,54 @@ |
</dd> |
</div> |
+ </div><div> |
+ <div> |
+ <dt> |
+ <var>type</var> |
+ <em> |
+ |
+ <!-- TYPE --> |
+ <div style="display:inline"> |
+ ( |
+ <span class="optional" style="display: none; ">optional</span> |
+ <span class="enum">enumerated</span> |
+ <span id="typeTemplate"> |
+ <span style="display: none; "> |
+ <a> Type</a> |
+ </span> |
+ <span> |
+ <span style="display: none; "> |
+ array of <span><span></span></span> |
+ </span> |
+ <span>string</span> |
+ <span>["browser", "renderer", "extension", "notification", "plugin", "worker", "nacl", "utility", "gpu", "other"]</span> |
+ </span> |
+ </span> |
+ ) |
+ </div> |
+ |
+ </em> |
+ </dt> |
+ <dd class="todo" style="display: none; "> |
+ Undocumented. |
+ </dd> |
+ <dd>The type of process.</dd> |
+ <dd style="display: none; "> |
+ This parameter was added in version |
+ <b><span></span></b>. |
+ You must omit this parameter in earlier versions, |
+ and you may omit it in any version. If you require this |
+ parameter, the manifest key |
+ <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> |
+ can ensure that your extension won't be run in an earlier browser version. |
+ </dd> |
+ |
+ <!-- OBJECT PROPERTIES --> |
+ <dd style="display: none; "> |
+ <dl> |
+ <div> |
+ <div> |
+ </div> |
</div> |
</dl> |
</dd> |
@@ -731,7 +834,249 @@ |
</dd> |
</div> |
+ </div><div> |
+ <div> |
+ <dt> |
+ <var>cpu</var> |
+ <em> |
+ <!-- TYPE --> |
+ <div style="display:inline"> |
+ ( |
+ <span class="optional" style="display: none; ">optional</span> |
+ <span class="enum" style="display: none; ">enumerated</span> |
+ <span id="typeTemplate"> |
+ <span style="display: none; "> |
+ <a> Type</a> |
+ </span> |
+ <span> |
+ <span style="display: none; "> |
+ array of <span><span></span></span> |
+ </span> |
+ <span>number</span> |
+ <span style="display: none; "></span> |
+ </span> |
+ </span> |
+ ) |
+ </div> |
+ |
+ </em> |
+ </dt> |
+ <dd class="todo" style="display: none; "> |
+ Undocumented. |
+ </dd> |
+ <dd>The most recent measurement of the process's CPU usage, between 0 and 100%.</dd> |
+ <dd style="display: none; "> |
+ This parameter was added in version |
+ <b><span></span></b>. |
+ You must omit this parameter in earlier versions, |
+ and you may omit it in any version. If you require this |
+ parameter, the manifest key |
+ <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> |
+ can ensure that your extension won't be run in an earlier browser version. |
+ </dd> |
+ |
+ <!-- OBJECT PROPERTIES --> |
+ <dd style="display: none; "> |
+ <dl> |
+ <div> |
+ <div> |
+ </div> |
+ </div> |
+ </dl> |
+ </dd> |
+ |
+ <!-- FUNCTION PARAMETERS --> |
+ <dd style="display: none; "> |
+ <div></div> |
+ </dd> |
+ |
+ </div> |
+ </div><div> |
+ <div> |
+ <dt> |
+ <var>network</var> |
+ <em> |
+ |
+ <!-- TYPE --> |
+ <div style="display:inline"> |
+ ( |
+ <span class="optional" style="display: none; ">optional</span> |
+ <span class="enum" style="display: none; ">enumerated</span> |
+ <span id="typeTemplate"> |
+ <span style="display: none; "> |
+ <a> Type</a> |
+ </span> |
+ <span> |
+ <span style="display: none; "> |
+ array of <span><span></span></span> |
+ </span> |
+ <span>number</span> |
+ <span style="display: none; "></span> |
+ </span> |
+ </span> |
+ ) |
+ </div> |
+ |
+ </em> |
+ </dt> |
+ <dd class="todo" style="display: none; "> |
+ Undocumented. |
+ </dd> |
+ <dd>The most recent measurement of the process's network usage, in bytes per second.</dd> |
+ <dd style="display: none; "> |
+ This parameter was added in version |
+ <b><span></span></b>. |
+ You must omit this parameter in earlier versions, |
+ and you may omit it in any version. If you require this |
+ parameter, the manifest key |
+ <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> |
+ can ensure that your extension won't be run in an earlier browser version. |
+ </dd> |
+ |
+ <!-- OBJECT PROPERTIES --> |
+ <dd style="display: none; "> |
+ <dl> |
+ <div> |
+ <div> |
+ </div> |
+ </div> |
+ </dl> |
+ </dd> |
+ |
+ <!-- FUNCTION PARAMETERS --> |
+ <dd style="display: none; "> |
+ <div></div> |
+ </dd> |
+ |
+ </div> |
+ </div><div> |
+ <div> |
+ <dt> |
+ <var>privateMemory</var> |
+ <em> |
+ |
+ <!-- TYPE --> |
+ <div style="display:inline"> |
+ ( |
+ <span class="optional" style="display: none; ">optional</span> |
+ <span class="enum" style="display: none; ">enumerated</span> |
+ <span id="typeTemplate"> |
+ <span style="display: none; "> |
+ <a> Type</a> |
+ </span> |
+ <span> |
+ <span style="display: none; "> |
+ array of <span><span></span></span> |
+ </span> |
+ <span>number</span> |
+ <span style="display: none; "></span> |
+ </span> |
+ </span> |
+ ) |
+ </div> |
+ |
+ </em> |
+ </dt> |
+ <dd class="todo" style="display: none; "> |
+ Undocumented. |
+ </dd> |
+ <dd>The most recent measurement of the process's private memory usage, in bytes.</dd> |
+ <dd style="display: none; "> |
+ This parameter was added in version |
+ <b><span></span></b>. |
+ You must omit this parameter in earlier versions, |
+ and you may omit it in any version. If you require this |
+ parameter, the manifest key |
+ <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> |
+ can ensure that your extension won't be run in an earlier browser version. |
+ </dd> |
+ |
+ <!-- OBJECT PROPERTIES --> |
+ <dd style="display: none; "> |
+ <dl> |
+ <div> |
+ <div> |
+ </div> |
+ </div> |
+ </dl> |
+ </dd> |
+ |
+ <!-- FUNCTION PARAMETERS --> |
+ <dd style="display: none; "> |
+ <div></div> |
+ </dd> |
+ |
+ </div> |
+ </div><div> |
+ <div> |
+ <dt> |
+ <var>sharedMemory</var> |
+ <em> |
+ |
+ <!-- TYPE --> |
+ <div style="display:inline"> |
+ ( |
+ <span class="optional" style="display: none; ">optional</span> |
+ <span class="enum" style="display: none; ">enumerated</span> |
+ <span id="typeTemplate"> |
+ <span style="display: none; "> |
+ <a> Type</a> |
+ </span> |
+ <span> |
+ <span style="display: none; "> |
+ array of <span><span></span></span> |
+ </span> |
+ <span>number</span> |
+ <span style="display: none; "></span> |
+ </span> |
+ </span> |
+ ) |
+ </div> |
+ |
+ </em> |
+ </dt> |
+ <dd class="todo" style="display: none; "> |
+ Undocumented. |
+ </dd> |
+ <dd>The most recent measurement of the process's shared memory usage, in bytes.</dd> |
+ <dd style="display: none; "> |
+ This parameter was added in version |
+ <b><span></span></b>. |
+ You must omit this parameter in earlier versions, |
+ and you may omit it in any version. If you require this |
+ parameter, the manifest key |
+ <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> |
+ can ensure that your extension won't be run in an earlier browser version. |
+ </dd> |
+ |
+ <!-- OBJECT PROPERTIES --> |
+ <dd style="display: none; "> |
+ <dl> |
+ <div> |
+ <div> |
+ </div> |
+ </div> |
+ </dl> |
+ </dd> |
+ |
+ <!-- FUNCTION PARAMETERS --> |
+ <dd style="display: none; "> |
+ <div></div> |
+ </dd> |
+ |
+ </div> |
+ </div> |
+ </dl> |
+ </dd> |
+ |
+ <!-- FUNCTION PARAMETERS --> |
+ <dd style="display: none; "> |
+ <div></div> |
+ </dd> |
+ |
+ </div> |
+ |
</div> <!-- /apiItem --> |
</div> <!-- /apiGroup --> |