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

Unified Diff: third_party/chrome/tools/test/arrays.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/any.json ('k') | third_party/chrome/tools/test/browser_action.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/tools/test/arrays.json
diff --git a/third_party/chrome/tools/test/arrays.json b/third_party/chrome/tools/test/arrays.json
new file mode 100644
index 0000000000000000000000000000000000000000..a0edd548d0459cca10e8c61ed6737c0ddd5d08a7
--- /dev/null
+++ b/third_party/chrome/tools/test/arrays.json
@@ -0,0 +1,231 @@
+[
+ {
+ "namespace": "arrays",
+ "types": [
+ {
+ "id": "EnumArrayType",
+ "type": "object",
+ "properties": {
+ "types": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": ["one", "two", "three"]
+ }
+ }
+ }
+ },
+ {
+ "id": "OptionalEnumArrayType",
+ "type": "object",
+ "properties": {
+ "types": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": ["one", "two", "three"]
+ },
+ "optional": true
+ }
+ }
+ },
+ {
+ "id": "BasicArrayType",
+ "type": "object",
+ "properties": {
+ "strings": {
+ "type": "array",
+ "items": {"type": "string"}
+ },
+ "booleans": {
+ "type": "array",
+ "items": {"type": "boolean"}
+ },
+ "numbers": {
+ "type": "array",
+ "items": {"type": "number"}
+ },
+ "integers": {
+ "type": "array",
+ "items": {"type": "integer"}
+ }
+ }
+ },
+ {
+ "id": "Item",
+ "type": "object",
+ "properties": {
+ "val": {
+ "type": "integer"
+ }
+ }
+ },
+ {
+ "id": "RefArrayType",
+ "type": "object",
+ "properties": {
+ "refs": {
+ "type": "array",
+ "items": { "$ref": "Item" }
+ }
+ }
+ }
+ ],
+ "functions": [
+ {
+ "name": "integerArray",
+ "type": "function",
+ "description": "Takes some integers.",
+ "parameters": [
+ {
+ "name": "nums",
+ "type": "array",
+ "items": {"type": "integer"}
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "anyArray",
+ "type": "function",
+ "description": "Takes some Items.",
+ "parameters": [
+ {
+ "name": "anys",
+ "type": "array",
+ "items": {"type": "any"}
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "objectArray",
+ "type": "function",
+ "description": "Takes some Items.",
+ "parameters": [
+ {
+ "name": "objects",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": {"type": "integer"}
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "refArray",
+ "type": "function",
+ "description": "Takes some Items.",
+ "parameters": [
+ {
+ "name": "refs",
+ "type": "array",
+ "items": {"$ref": "Item"}
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "justChoices",
+ "type": "function",
+ "description": "Takes some Choices.",
+ "parameters": [
+ {
+ "name": "choices",
+ "choices": [
+ { "type": "integer" },
+ { "type": "boolean" },
+ { "type": "array",
+ "items": {"$ref": "Item"}
+ }
+ ]
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "choicesArray",
+ "type": "function",
+ "description": "Takes some Choices.",
+ "parameters": [
+ {
+ "name": "choices",
+ "type": "array",
+ "items": {
+ "choices": [
+ { "type": "integer" },
+ { "type": "boolean" },
+ { "type": "array",
+ "items": {"$ref": "Item"}
+ }
+ ]
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "returnIntegerArray",
+ "type": "function",
+ "description": "Returns some integers.",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "integers",
+ "type": "array",
+ "items": {"type": "integer"}
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "returnRefArray",
+ "type": "function",
+ "description": "Returns some Items.",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "refs",
+ "type": "array",
+ "items": {"$ref": "Item"}
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « third_party/chrome/tools/test/any.json ('k') | third_party/chrome/tools/test/browser_action.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698