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

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

Issue 9415001: Add tests to tools/json_schema_compiler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rework, add array tests Created 8 years, 10 months 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 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "nocompile": true,
4 "dependencies": [ "tabs" ], 5 "dependencies": [ "tabs" ],
5 "types": [ 6 "types": [
6 { 7 {
7 "id": "MessageSender", 8 "id": "MessageSender",
8 "type": "object", 9 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 10 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 11 "properties": {
11 "tab": {"$ref": "Tab", "optional": true, "description":"This property will <b>only</b> be present when the connection was opened from a tab or content script."}, 12 "tab": {"$ref": "Tab", "optional": true, "description":"This property will <b>only</b> be present when the connection was opened from a tab or content script."},
12 "id": {"type": "string", "description": "The extension ID of the exten sion that opened the connection."} 13 "id": {"type": "string", "description": "The extension ID of the exten sion that opened the connection."}
13 } 14 }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 "description": "Fired when a request is sent from another extension.", 257 "description": "Fired when a request is sent from another extension.",
257 "parameters": [ 258 "parameters": [
258 {"name": "request", "type": "any", "description": "The request sent by the calling script."}, 259 {"name": "request", "type": "any", "description": "The request sent by the calling script."},
259 {"name": "sender", "$ref": "MessageSender" }, 260 {"name": "sender", "$ref": "MessageSender" },
260 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." } 261 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." }
261 ] 262 ]
262 } 263 }
263 ] 264 ]
264 } 265 }
265 ] 266 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698