| OLD | NEW |
| 1 <table class="intro"> | |
| 2 <tr> | |
| 3 <th scope="col"></th> | |
| 4 <th scope="col"></th> | |
| 5 </tr> | |
| 6 <tr> | |
| 7 <td><strong>Description:</strong></td> | |
| 8 <td>Use the <code>chrome.idle</code> module | |
| 9 to detect when the machine's idle state changes.</td> | |
| 10 </tr> | |
| 11 <tr> | |
| 12 <td><strong>Availability:</strong></td> | |
| 13 <td>Google Chrome 6</td> | |
| 14 </tr> | |
| 15 <tr> | |
| 16 <td><strong>Permissions:</strong></td> | |
| 17 <td><code>"idle"</code></td> | |
| 18 </tr> | |
| 19 </table> | |
| 20 | |
| 21 <h2 id="manifest">Manifest</h2> | 1 <h2 id="manifest">Manifest</h2> |
| 22 <p>You must declare the "idle" permission in your extension's manifest to use th
e idle API. | 2 <p>You must declare the "idle" permission in your extension's manifest to use th
e idle API. |
| 23 For example: | 3 For example: |
| 24 </p> | 4 </p> |
| 25 | 5 |
| 26 <pre>{ | 6 <pre>{ |
| 27 "name": "My extension", | 7 "name": "My extension", |
| 28 ... | 8 ... |
| 29 <b>"permissions": [ | 9 <b>"permissions": [ |
| 30 "idle" | 10 "idle" |
| 31 ]</b>, | 11 ]</b>, |
| 32 ... | 12 ... |
| 33 }</pre> | 13 }</pre> |
| OLD | NEW |