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

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

Issue 10367002: Make all extension api types fully qualified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests pass, docs are updated, it's g2g I think Created 8 years, 7 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 | Annotate | Revision Log
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": "extension", 7 "namespace": "extension",
8 "nocompile": true, 8 "nocompile": true,
9 "dependencies": [ "tabs" ], 9 "dependencies": [ "tabs" ],
10 "types": [ 10 "types": [
11 { 11 {
12 "id": "MessageSender", 12 "id": "MessageSender",
13 "type": "object", 13 "type": "object",
14 "description": "An object containing information about the script contex t that sent a message or request.", 14 "description": "An object containing information about the script contex t that sent a message or request.",
15 "properties": { 15 "properties": {
16 "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."}, 16 "tab": {"$ref": "tabs.Tab", "optional": true, "description":"This prop erty will <b>only</b> be present when the connection was opened from a tab or co ntent script."},
17 "id": {"type": "string", "description": "The extension ID of the exten sion that opened the connection."} 17 "id": {"type": "string", "description": "The extension ID of the exten sion that opened the connection."}
18 } 18 }
19 }, 19 },
20 { 20 {
21 "id": "Event", 21 "id": "Event",
22 "type": "object", 22 "type": "object",
23 "description": "An object which allows the addition and removal of liste ners for a Chrome event.", 23 "description": "An object which allows the addition and removal of liste ners for a Chrome event.",
24 "properties": { 24 "properties": {
25 "addListener": {"type": "function"}, 25 "addListener": {"type": "function"},
26 "removeListener": {"type": "function"}, 26 "removeListener": {"type": "function"},
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 ], 337 ],
338 "returns": { 338 "returns": {
339 "type": "boolean", 339 "type": "boolean",
340 "optional": "true", 340 "optional": "true",
341 "description": "Return true from the event listener if you wish to cal l <code>sendResponse</code> after the event listener returns." 341 "description": "Return true from the event listener if you wish to cal l <code>sendResponse</code> after the event listener returns."
342 } 342 }
343 } 343 }
344 ] 344 ]
345 } 345 }
346 ] 346 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698