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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 11627d7fb17213fdf300fb38222bce8b0b6c54ea..222523680d6b0d265f70666df657081498f26994 100755
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -31,6 +31,52 @@
"$ref": "Port",
"description": "Port through which messages can be sent and received with the extension."
}
+ },
+ {
+ "name": "getViews",
+ "type": "function",
+ "description": "Returns an array of the global JavaScript objects for each of the views running inside the current extension. This includes toolstrips, background pages, and tabs.",
+ "parameters": [],
+ "returns": {
+ "type": "array",
+ "description": "Array of global objects",
+ "items": { "type": "object" }
+ }
+ },
+ {
+ "name": "getBackgroundPage",
+ "type": "function",
+ "description": "Returns the global JavaScript object for the background page running inside the current extension. Returns null if the extension has no backround page.",
+ "parameters": [],
+ "returns": {
+ "type": "object"
+ }
+ },
+ {
+ "name": "getToolstrips",
+ "type": "function",
+ "description": "Returns an array of the global JavaScript objects for each of the toolstrip views running inside the current extension. If windowId is specified, returns only the toolstrips attached to the specified window.",
+ "parameters": [
+ {"type": "integer", "name": "windowId", "optional": true}
+ ],
+ "returns": {
+ "type": "array",
+ "description": "Array of global objects",
+ "items": { "type": "object" }
+ }
+ },
+ {
+ "name": "getTabContentses",
+ "type": "function",
+ "description": "Returns an array of the global JavaScript objects for each of the tab contents views running inside the current extension. If windowId is specified, returns only the tab contentses attached to the specified window.",
+ "parameters": [
+ {"type": "integer", "name": "windowId", "optional": true}
+ ],
+ "returns": {
+ "type": "array",
+ "description": "Array of global objects",
+ "items": { "type": "object" }
+ }
}
],
"events": [
@@ -45,25 +91,6 @@
]
},
{
- "namespace": "self",
- "types": [
- ],
- "functions": [
- {
- "name": "getViews",
- "type": "function",
- "description": "Returns an array of the global JavaScript objects for each of the views running inside the current extension. This includes toolstrips, background pages, and tabs.",
- "parameters": [],
- "returns": {
- "type": "array",
- "description": "Array of HTMLWindow objects",
- "items": { "type": "object" }
- }
- }
- ],
- "events": []
- },
- {
"namespace": "windows",
"types": [
{
@@ -101,7 +128,7 @@
{
"name": "getCurrent",
"type": "function",
- "description": "Get the window that is the container for the caller. i.e. the window containing the ToolStrip that makes the call.",
+ "description": "Get the window that is the container for the caller. i.e. the window containing the toolstrip that makes the call.",
"parameters": [
{
"type": "function",
« 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