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

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

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 8 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/common/extensions/api/debugger.json ('k') | chrome/common/extensions/api/history.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension.json
diff --git a/chrome/common/extensions/api/extension.json b/chrome/common/extensions/api/extension.json
index b69b12e7c05f649763f69c94edc5996c0c93e4f9..c83f89eccaa6d3854bb879459318d26a59b968df 100644
--- a/chrome/common/extensions/api/extension.json
+++ b/chrome/common/extensions/api/extension.json
@@ -24,6 +24,14 @@
"description": "True for content scripts running inside incognito tabs, and for extension pages running inside an incognito process. The latter only applies to extensions with 'split' incognito_behavior."
}
},
+ "types": [
+ {
+ "id": "ViewType",
+ "type": "string",
+ "enum": ["tab", "notification", "popup"],
+ "description": "The type of extension view."
+ }
+ ],
"functions": [
{
"name": "sendRequest",
@@ -78,8 +86,7 @@
"optional": true,
"properties": {
"type": {
- "type": "string",
- "enum": ["tab", "notification", "popup"],
+ "$ref": "ViewType",
"optional": true,
"description": "The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'notification', 'popup'."
},
« no previous file with comments | « chrome/common/extensions/api/debugger.json ('k') | chrome/common/extensions/api/history.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698