| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "events", | 7 "namespace": "events", |
| 8 "description": "Use the <code>chrome.events</code> API to notify you when so
mething interesting happens.", | 8 "description": "Use the <code>chrome.events</code> API to notify you when so
mething interesting happens.", |
| 9 "compiler_options": { | 9 "compiler_options": { |
| 10 "implemented_in": "chrome/browser/extensions/api/declarative/declarative_a
pi.h" | 10 "implemented_in": "chrome/browser/extensions/api/declarative/declarative_a
pi.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 "type": "function", | 106 "type": "function", |
| 107 "description": "Registers rules to handle events.", | 107 "description": "Registers rules to handle events.", |
| 108 "parameters": [ | 108 "parameters": [ |
| 109 { | 109 { |
| 110 "nodoc": "true", | 110 "nodoc": "true", |
| 111 "name": "eventName", | 111 "name": "eventName", |
| 112 "type": "string", | 112 "type": "string", |
| 113 "description": "Name of the event this function affects." | 113 "description": "Name of the event this function affects." |
| 114 }, | 114 }, |
| 115 { | 115 { |
| 116 "name": "webViewInstanceId", |
| 117 "type": "integer", |
| 118 "nodoc": true, |
| 119 "description": "If provided, this is an integer that uniquely id
entfies the <webview> associated with this function call." |
| 120 }, |
| 121 { |
| 116 "name": "rules", | 122 "name": "rules", |
| 117 "type": "array", | 123 "type": "array", |
| 118 "items": {"$ref": "Rule"}, | 124 "items": {"$ref": "Rule"}, |
| 119 "description": "Rules to be registered. These do not replace pre
viously registered rules." | 125 "description": "Rules to be registered. These do not replace pre
viously registered rules." |
| 120 }, | 126 }, |
| 121 { | 127 { |
| 122 "name": "callback", | 128 "name": "callback", |
| 123 "optional": true, | 129 "optional": true, |
| 124 "type": "function", | 130 "type": "function", |
| 125 "parameters": [ | 131 "parameters": [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 139 "type": "function", | 145 "type": "function", |
| 140 "description": "Returns currently registered rules.", | 146 "description": "Returns currently registered rules.", |
| 141 "parameters": [ | 147 "parameters": [ |
| 142 { | 148 { |
| 143 "nodoc": "true", | 149 "nodoc": "true", |
| 144 "name": "eventName", | 150 "name": "eventName", |
| 145 "type": "string", | 151 "type": "string", |
| 146 "description": "Name of the event this function affects." | 152 "description": "Name of the event this function affects." |
| 147 }, | 153 }, |
| 148 { | 154 { |
| 155 "name": "webViewInstanceId", |
| 156 "type": "integer", |
| 157 "nodoc": true, |
| 158 "description": "If provided, this is an integer that uniquely id
entfies the <webview> associated with this function call." |
| 159 }, |
| 160 { |
| 149 "name": "ruleIdentifiers", | 161 "name": "ruleIdentifiers", |
| 150 "optional": "true", | 162 "optional": "true", |
| 151 "type": "array", | 163 "type": "array", |
| 152 "items": {"type": "string"}, | 164 "items": {"type": "string"}, |
| 153 "description": "If an array is passed, only rules with identifie
rs contained in this array are returned." | 165 "description": "If an array is passed, only rules with identifie
rs contained in this array are returned." |
| 154 }, | 166 }, |
| 155 { | 167 { |
| 156 "name": "callback", | 168 "name": "callback", |
| 157 "type": "function", | 169 "type": "function", |
| 158 "parameters": [ | 170 "parameters": [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 172 "type": "function", | 184 "type": "function", |
| 173 "description": "Unregisters currently registered rules.", | 185 "description": "Unregisters currently registered rules.", |
| 174 "parameters": [ | 186 "parameters": [ |
| 175 { | 187 { |
| 176 "nodoc": "true", | 188 "nodoc": "true", |
| 177 "name": "eventName", | 189 "name": "eventName", |
| 178 "type": "string", | 190 "type": "string", |
| 179 "description": "Name of the event this function affects." | 191 "description": "Name of the event this function affects." |
| 180 }, | 192 }, |
| 181 { | 193 { |
| 194 "name": "webViewInstanceId", |
| 195 "type": "integer", |
| 196 "nodoc": true, |
| 197 "description": "If provided, this is an integer that uniquely id
entfies the <webview> associated with this function call." |
| 198 }, |
| 199 { |
| 182 "name": "ruleIdentifiers", | 200 "name": "ruleIdentifiers", |
| 183 "optional": "true", | 201 "optional": "true", |
| 184 "type": "array", | 202 "type": "array", |
| 185 "items": {"type": "string"}, | 203 "items": {"type": "string"}, |
| 186 "description": "If an array is passed, only rules with identifie
rs contained in this array are unregistered." | 204 "description": "If an array is passed, only rules with identifie
rs contained in this array are unregistered." |
| 187 }, | 205 }, |
| 188 { | 206 { |
| 189 "name": "callback", | 207 "name": "callback", |
| 190 "optional": true, | 208 "optional": true, |
| 191 "type": "function", | 209 "type": "function", |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 {"type": "array", "items": {"type": "integer"}, "description": "
A pair of integers identiying the start and end (both inclusive) of a port range
."} | 326 {"type": "array", "items": {"type": "integer"}, "description": "
A pair of integers identiying the start and end (both inclusive) of a port range
."} |
| 309 ] | 327 ] |
| 310 } | 328 } |
| 311 } | 329 } |
| 312 } | 330 } |
| 313 } | 331 } |
| 314 ] | 332 ] |
| 315 } | 333 } |
| 316 ] | 334 ] |
| 317 | 335 |
| OLD | NEW |