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

Unified Diff: extensions/common/api/runtime.json

Issue 305643011: Expose enums to extension bindings. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/renderer/resources/extensions/binding.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/runtime.json
diff --git a/extensions/common/api/runtime.json b/extensions/common/api/runtime.json
index a5a32555750aa2628e45f99e84725605db44a4c8..4393d790e98dae01c15d26bae711e63f588ac3e4 100644
--- a/extensions/common/api/runtime.json
+++ b/extensions/common/api/runtime.json
@@ -62,6 +62,12 @@
"enum": ["arm", "x86-32", "x86-64"]
}
}
+ },
+ {
+ "id": "UpdateCheckResult",
+ "type": "string",
+ "enum": ["throttled", "no_update", "update_available"],
+ "description": "Result of the update check."
}
],
"properties": {
@@ -165,9 +171,7 @@
"parameters": [
{
"name": "status",
- "type": "string",
- "enum": ["throttled", "no_update", "update_available"],
- "description": "Result of the update check."
+ "$ref": "UpdateCheckResult"
},
{
"name": "details",
« no previous file with comments | « chrome/renderer/resources/extensions/binding.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698