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

Unified Diff: chrome/common/extensions/api/declarative_content.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/declarative_content.json
diff --git a/chrome/common/extensions/api/declarative_content.json b/chrome/common/extensions/api/declarative_content.json
index c84a29a01101b6b789177acca12f48e77a69edce..9ae020e2c3a857c0ea5be75b00be15d80f654694 100644
--- a/chrome/common/extensions/api/declarative_content.json
+++ b/chrome/common/extensions/api/declarative_content.json
@@ -16,6 +16,26 @@
"inline_doc": true
},
{
+ "id": "PageStateMatcherInstanceType",
+ "type": "string",
+ "enum": ["declarativeContent.PageStateMatcher"]
+ },
+ {
+ "id": "ShowPageActionInstanceType",
+ "type": "string",
+ "enum": ["declarativeContent.ShowPageAction"]
+ },
+ {
+ "id": "SetIconInstanceType",
+ "type": "string",
+ "enum": ["declarativeContent.SetIcon"]
+ },
+ {
+ "id": "RequestContentScriptInstanceType",
+ "type": "string",
+ "enum": ["declarativeContent.RequestContentScript"]
+ },
+ {
"id": "PageStateMatcher",
"type": "object",
"description": "Matches the state of a web page by various criteria.",
@@ -46,7 +66,7 @@
"optional": true
},
"instanceType": {
- "type": "string", "enum": ["declarativeContent.PageStateMatcher"],
+ "$ref": "PageStateMatcherInstanceType",
"nodoc": true
}
}
@@ -57,7 +77,7 @@
"type": "object",
"properties": {
"instanceType": {
- "type": "string", "enum": ["declarativeContent.ShowPageAction"],
+ "$ref": "ShowPageActionInstanceType",
"nodoc": true
}
}
@@ -68,7 +88,7 @@
"type": "object",
"properties": {
"instanceType": {
- "type": "string", "enum": ["declarativeContent.SetIcon"],
+ "$ref": "SetIconInstanceType",
"nodoc": true
},
"imageData": {
@@ -123,7 +143,7 @@
"description": "Whether to insert the content script on about:blank and about:srcdoc. Default is false."
},
"instanceType": {
- "type": "string", "enum": ["declarativeContent.RequestContentScript"],
+ "$ref": "RequestContentScriptInstanceType",
"nodoc": true
}
}

Powered by Google App Engine
This is Rietveld 408576698