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

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

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 years, 4 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
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "Port", 6 "id": "Port",
7 "type": "object", 7 "type": "object",
8 "description": "An object which allows two way communication with other pages.", 8 "description": "An object which allows two way communication with other pages.",
9 "properties": { 9 "properties": {
10 "name": {"type": "string"}, 10 "name": {"type": "string"},
(...skipping 13 matching lines...) Expand all
24 "name": "name", 24 "name": "name",
25 "type": "string", 25 "type": "string",
26 "description": "Will be passed into onConnect for extension processe s that are listening for the connection event.", 26 "description": "Will be passed into onConnect for extension processe s that are listening for the connection event.",
27 "optional": true 27 "optional": true
28 } 28 }
29 ], 29 ],
30 "returns": { 30 "returns": {
31 "$ref": "Port", 31 "$ref": "Port",
32 "description": "Port through which messages can be sent and received w ith the extension." 32 "description": "Port through which messages can be sent and received w ith the extension."
33 } 33 }
34 },
35 {
36 "name": "getViews",
37 "type": "function",
38 "description": "Returns an array of the global JavaScript objects for ea ch of the views running inside the current extension. This includes toolstrips, background pages, and tabs.",
39 "parameters": [],
40 "returns": {
41 "type": "array",
42 "description": "Array of global objects",
43 "items": { "type": "object" }
44 }
45 },
46 {
47 "name": "getBackgroundPage",
48 "type": "function",
49 "description": "Returns the global JavaScript object for the background page running inside the current extension. Returns null if the extension has no backround page.",
50 "parameters": [],
51 "returns": {
52 "type": "object"
53 }
54 },
55 {
56 "name": "getToolstrips",
57 "type": "function",
58 "description": "Returns an array of the global JavaScript objects for ea ch of the toolstrip views running inside the current extension. If windowId is s pecified, returns only the toolstrips attached to the specified window.",
59 "parameters": [
60 {"type": "integer", "name": "windowId", "optional": true}
61 ],
62 "returns": {
63 "type": "array",
64 "description": "Array of global objects",
65 "items": { "type": "object" }
66 }
67 },
68 {
69 "name": "getTabContentses",
70 "type": "function",
71 "description": "Returns an array of the global JavaScript objects for ea ch of the tab contents views running inside the current extension. If windowId i s specified, returns only the tab contentses attached to the specified window.",
72 "parameters": [
73 {"type": "integer", "name": "windowId", "optional": true}
74 ],
75 "returns": {
76 "type": "array",
77 "description": "Array of global objects",
78 "items": { "type": "object" }
79 }
34 } 80 }
35 ], 81 ],
36 "events": [ 82 "events": [
37 { 83 {
38 "name": "onConnect", 84 "name": "onConnect",
39 "type": "function", 85 "type": "function",
40 "description": "Fired when a connection is made from either an extension process or a content script.", 86 "description": "Fired when a connection is made from either an extension process or a content script.",
41 "parameters": [ 87 "parameters": [
42 {"$ref": "Port", "name": "port"} 88 {"$ref": "Port", "name": "port"}
43 ] 89 ]
44 } 90 }
45 ] 91 ]
46 }, 92 },
47 { 93 {
48 "namespace": "self",
49 "types": [
50 ],
51 "functions": [
52 {
53 "name": "getViews",
54 "type": "function",
55 "description": "Returns an array of the global JavaScript objects for ea ch of the views running inside the current extension. This includes toolstrips, background pages, and tabs.",
56 "parameters": [],
57 "returns": {
58 "type": "array",
59 "description": "Array of HTMLWindow objects",
60 "items": { "type": "object" }
61 }
62 }
63 ],
64 "events": []
65 },
66 {
67 "namespace": "windows", 94 "namespace": "windows",
68 "types": [ 95 "types": [
69 { 96 {
70 "id": "Window", 97 "id": "Window",
71 "type": "object", 98 "type": "object",
72 "properties": { 99 "properties": {
73 "id": {"type": "integer", "minimum": 0}, 100 "id": {"type": "integer", "minimum": 0},
74 "focused": {"type": "boolean"}, 101 "focused": {"type": "boolean"},
75 "left": {"type": "integer"}, 102 "left": {"type": "integer"},
76 "top": {"type": "integer"}, 103 "top": {"type": "integer"},
(...skipping 17 matching lines...) Expand all
94 { 121 {
95 "name": "window", "$ref": "Window" 122 "name": "window", "$ref": "Window"
96 } 123 }
97 ] 124 ]
98 } 125 }
99 ] 126 ]
100 }, 127 },
101 { 128 {
102 "name": "getCurrent", 129 "name": "getCurrent",
103 "type": "function", 130 "type": "function",
104 "description": "Get the window that is the container for the caller. i.e . the window containing the ToolStrip that makes the call.", 131 "description": "Get the window that is the container for the caller. i.e . the window containing the toolstrip that makes the call.",
105 "parameters": [ 132 "parameters": [
106 { 133 {
107 "type": "function", 134 "type": "function",
108 "name": "callback", 135 "name": "callback",
109 "parameters": [ 136 "parameters": [
110 { 137 {
111 "name": "window", "$ref": "Window" 138 "name": "window", "$ref": "Window"
112 } 139 }
113 ] 140 ]
114 } 141 }
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 "description": "", 844 "description": "",
818 "parameters": [ 845 "parameters": [
819 {"type": "string", "name": "url", "optional": true}, 846 {"type": "string", "name": "url", "optional": true},
820 {"type": "function", "name": "callback", "optional": true, "parameters ": []} 847 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
821 ] 848 ]
822 } 849 }
823 ], 850 ],
824 "events": [] 851 "events": []
825 } 852 }
826 ] 853 ]
OLDNEW
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698