| OLD | NEW |
| 1 <p> | 1 <p> |
| 2 An <code>Event</code> is an object | 2 An <code>Event</code> is an object |
| 3 that allows you to be notified | 3 that allows you to be notified |
| 4 when something interesting happens. | 4 when something interesting happens. |
| 5 Here's an example of using the | 5 Here's an example of using the |
| 6 <code>chrome.tabs.onCreated</code> event | 6 <code>chrome.tabs.onCreated</code> event |
| 7 to be notified whenever there's a new tab: | 7 to be notified whenever there's a new tab: |
| 8 </p> | 8 </p> |
| 9 | 9 |
| 10 <pre> | 10 <pre> |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 rules were removed. | 135 rules were removed. |
| 136 </p> | 136 </p> |
| 137 | 137 |
| 138 <h3 id="retrievingrules">Retrieving rules</h3> | 138 <h3 id="retrievingrules">Retrieving rules</h3> |
| 139 | 139 |
| 140 <p> | 140 <p> |
| 141 To retrieve a list of currently registered rules, call the | 141 To retrieve a list of currently registered rules, call the |
| 142 <code>getRules()</code> function. It accepts an optional array of rule | 142 <code>getRules()</code> function. It accepts an optional array of rule |
| 143 identifiers with the same semantics as <code>removeRules</code> and a callback | 143 identifiers with the same semantics as <code>removeRules</code> and a callback |
| 144 function. | 144 function. |
| 145 <p> | 145 </p> |
| 146 | 146 |
| 147 <pre> | 147 <pre> |
| 148 var rule_ids = ["id1", "id2", ...]; | 148 var rule_ids = ["id1", "id2", ...]; |
| 149 function getRules(rule_ids, function callback(details) {...}); | 149 function getRules(rule_ids, function callback(details) {...}); |
| 150 </pre> | 150 </pre> |
| 151 | 151 |
| 152 <p> | 152 <p> |
| 153 The <code>details</code> parameter passed to the <code>calback()</code> function | 153 The <code>details</code> parameter passed to the <code>calback()</code> function |
| 154 refers to an array of rules including filled optional parameters. | 154 refers to an array of rules including filled optional parameters. |
| 155 </p> | 155 </p> |
| 156 </div> | 156 </div> |
| OLD | NEW |