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

Unified Diff: chrome/common/extensions/api/app.json

Issue 2257003002: [Extensions] Generate all schema resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready Created 4 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
Index: chrome/common/extensions/api/app.json
diff --git a/chrome/common/extensions/api/app.json b/chrome/common/extensions/api/app.json
index c4ad21fbcfb8a0854786f67c2ac00306afc0529b..b05495c8a6384893941b549cf16a26212e7ff9c3 100644
--- a/chrome/common/extensions/api/app.json
+++ b/chrome/common/extensions/api/app.json
@@ -19,6 +19,16 @@
"type": "object",
"properties": {},
"additionalProperties": { "type": "any" }
+ },
+ {
+ "id": "InstallState",
+ "type": "string",
+ "enum": ["not_installed", "installed", "disabled"]
+ },
+ {
+ "id": "RunningState",
+ "type": "string",
+ "enum": ["running", "cannot_run", "ready_to_run"]
}
],
"functions": [
@@ -43,9 +53,8 @@
"name": "callback",
"parameters": [
{
- "type": "string",
- "name": "state",
- "enum": [ "not_installed", "installed", "disabled" ]
+ "$ref": "InstallState",
+ "name": "state"
}
]
}
@@ -57,8 +66,7 @@
"type": "function",
"parameters": [],
"returns": {
- "type": "string",
- "enum": [ "running", "cannot_run", "ready_to_run" ]
+ "$ref": "RunningState"
}
},
{

Powered by Google App Engine
This is Rietveld 408576698