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

Unified Diff: third_party/chrome/tools/test/callbacks.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/chrome/tools/test/browser_action.json ('k') | third_party/chrome/tools/test/choices.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/tools/test/callbacks.json
diff --git a/third_party/chrome/tools/test/callbacks.json b/third_party/chrome/tools/test/callbacks.json
new file mode 100644
index 0000000000000000000000000000000000000000..06455b99e056928f42356317f0fe53b61bfcd253
--- /dev/null
+++ b/third_party/chrome/tools/test/callbacks.json
@@ -0,0 +1,71 @@
+[
+ {
+ "namespace": "callbacks",
+ "types": [],
+ "functions": [
+ {
+ "name": "returnsNothing",
+ "type": "function",
+ "description": "Takes nothing. Returns nothing.",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "returnsObject",
+ "description": "Returns an object.",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "someObject",
+ "type": "object",
+ "properties": {
+ "state": {
+ "type": "string",
+ "enum": ["foo", "bar", "baz"]
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "returnsMultiple",
+ "description": "Returns an object.",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "someInteger",
+ "type": "integer"
+ },
+ {
+ "name": "someObject",
+ "type": "object",
+ "properties": {
+ "state": {
+ "type": "string",
+ "enum": ["foo", "bar", "baz"]
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
+
« no previous file with comments | « third_party/chrome/tools/test/browser_action.json ('k') | third_party/chrome/tools/test/choices.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698