summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api
diff options
context:
space:
mode:
authorerikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-01 21:14:05 +0000
committererikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-01 21:14:05 +0000
commit2d5fa0d0a9751c5eb61baefd43760c36233f2d20 (patch)
treeecccdbea7c8553d6efca29c3d9ce4efab02ab6ec /chrome/common/extensions/api
parent2a464a9638588073f344df55d46da6f9910d892b (diff)
downloadchromium_src-2d5fa0d0a9751c5eb61baefd43760c36233f2d20.zip
chromium_src-2d5fa0d0a9751c5eb61baefd43760c36233f2d20.tar.gz
chromium_src-2d5fa0d0a9751c5eb61baefd43760c36233f2d20.tar.bz2
mole expand/collapse API, callable from a toolstrip for manual operation
Review URL: http://codereview.chromium.org/160276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api')
-rwxr-xr-xchrome/common/extensions/api/extension_api.json32
1 files changed, 31 insertions, 1 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 1561a41..2740069 100755
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -65,7 +65,6 @@
* TODO(rafaelw): Validate event arguments in debug and unittests
* TODO(rafaelw): Support $ref for json_schema validation.
*/
-
[
/**
* chrome.self
@@ -706,5 +705,36 @@
]
}
]
+ },
+
+ /**
+ * chrome.toolstrip
+ */
+ {
+ namespace: "toolstrip",
+ types: [],
+ functions: [
+ {
+ name: "expand",
+ type: "function",
+ description: "",
+ parameters: [
+ {type: "integer", name: "height", minimum: 0},
+ {type: "string", name: "url", optional: true},
+ {type: "function", name: "callback", optional: true}
+ ]
+ },
+ {
+ name: "collapse",
+ type: "function",
+ description: "",
+ parameters: [
+ {type: "string", name: "url", optional: true},
+ {type: "function", name: "callback", optional: true}
+ ]
+ }
+ ],
+ events: [
+ ]
}
]