Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: chrome/common/extensions/api/events.json

Issue 28273006: <webview>: Implement declarativeWebRequest API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed browser_tests build Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
Jeffrey Yasskin 2013/11/09 02:47:22 You should add a description explaining the meanin
Fady Samuel 2013/11/10 03:39:56 Done.
119 },
120 {
116 "name": "rules", 121 "name": "rules",
117 "type": "array", 122 "type": "array",
118 "items": {"$ref": "Rule"}, 123 "items": {"$ref": "Rule"},
119 "description": "Rules to be registered. These do not replace pre viously registered rules." 124 "description": "Rules to be registered. These do not replace pre viously registered rules."
120 }, 125 },
121 { 126 {
122 "name": "callback", 127 "name": "callback",
123 "optional": true, 128 "optional": true,
124 "type": "function", 129 "type": "function",
125 "parameters": [ 130 "parameters": [
(...skipping 13 matching lines...) Expand all
139 "type": "function", 144 "type": "function",
140 "description": "Returns currently registered rules.", 145 "description": "Returns currently registered rules.",
141 "parameters": [ 146 "parameters": [
142 { 147 {
143 "nodoc": "true", 148 "nodoc": "true",
144 "name": "eventName", 149 "name": "eventName",
145 "type": "string", 150 "type": "string",
146 "description": "Name of the event this function affects." 151 "description": "Name of the event this function affects."
147 }, 152 },
148 { 153 {
154 "name": "webViewInstanceId",
155 "type": "integer",
156 "nodoc": true
157 },
158 {
149 "name": "ruleIdentifiers", 159 "name": "ruleIdentifiers",
150 "optional": "true", 160 "optional": "true",
151 "type": "array", 161 "type": "array",
152 "items": {"type": "string"}, 162 "items": {"type": "string"},
153 "description": "If an array is passed, only rules with identifie rs contained in this array are returned." 163 "description": "If an array is passed, only rules with identifie rs contained in this array are returned."
154 }, 164 },
155 { 165 {
156 "name": "callback", 166 "name": "callback",
157 "type": "function", 167 "type": "function",
158 "parameters": [ 168 "parameters": [
(...skipping 13 matching lines...) Expand all
172 "type": "function", 182 "type": "function",
173 "description": "Unregisters currently registered rules.", 183 "description": "Unregisters currently registered rules.",
174 "parameters": [ 184 "parameters": [
175 { 185 {
176 "nodoc": "true", 186 "nodoc": "true",
177 "name": "eventName", 187 "name": "eventName",
178 "type": "string", 188 "type": "string",
179 "description": "Name of the event this function affects." 189 "description": "Name of the event this function affects."
180 }, 190 },
181 { 191 {
192 "name": "webViewInstanceId",
193 "type": "integer",
194 "nodoc": true
195 },
196 {
182 "name": "ruleIdentifiers", 197 "name": "ruleIdentifiers",
183 "optional": "true", 198 "optional": "true",
184 "type": "array", 199 "type": "array",
185 "items": {"type": "string"}, 200 "items": {"type": "string"},
186 "description": "If an array is passed, only rules with identifie rs contained in this array are unregistered." 201 "description": "If an array is passed, only rules with identifie rs contained in this array are unregistered."
187 }, 202 },
188 { 203 {
189 "name": "callback", 204 "name": "callback",
190 "optional": true, 205 "optional": true,
191 "type": "function", 206 "type": "function",
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 {"type": "array", "items": {"type": "integer"}, "description": " A pair of integers identiying the start and end (both inclusive) of a port range ."} 323 {"type": "array", "items": {"type": "integer"}, "description": " A pair of integers identiying the start and end (both inclusive) of a port range ."}
309 ] 324 ]
310 } 325 }
311 } 326 }
312 } 327 }
313 } 328 }
314 ] 329 ]
315 } 330 }
316 ] 331 ]
317 332
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698