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

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

Issue 2257003002: [Extensions] Generate all schema resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment 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
« no previous file with comments | « chrome/common/extensions/api/tts_engine.json ('k') | chrome/common/extensions/chrome_extensions_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/types_private.json
diff --git a/chrome/common/extensions/api/types_private.json b/chrome/common/extensions/api/types_private.json
index 19c7f1c2f862f9b996786860fad6a727ca3c13b4..af2f733a3effa56efe627e2592b4e05f7a3264eb 100644
--- a/chrome/common/extensions/api/types_private.json
+++ b/chrome/common/extensions/api/types_private.json
@@ -8,6 +8,11 @@
"description": "The <code>chrome.types.private</code> API contains private type declarations for Chrome.",
"types": [
{
+ "id": "Scope",
+ "type": "string",
+ "enum": ["regular", "regular_only", "incognito_persistent", "incognito_session_only"]
+ },
+ {
"id": "ChromeDirectSetting",
"type": "object",
"js_module": "ChromeDirectSetting",
@@ -70,8 +75,7 @@
"type": "any"
},
"scope": {
- "type": "string",
- "enum": ["regular", "regular_only", "incognito_persistent", "incognito_session_only"],
+ "$ref": "Scope",
"optional": true,
"description": "Where to set the setting (default: regular). One of<ul><li><var>regular</var>: setting for the regular profile (which is inherited by the incognito profile if not overridden elsewhere),</li><li><var>regular_only</var>: setting for the regular profile only (not inherited by the incognito profile),</li><li><var>incognito_persistent</var>: setting for the incognito profile that survives browser restarts (overrides regular preferences),</li><li><var>incognito_session_only</var>: setting for the incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular and incognito_persistent preferences).</li></ul>"
}
@@ -97,8 +101,7 @@
"description": "Which setting to clear.",
"properties": {
"scope": {
- "type": "string",
- "enum": ["regular", "regular_only", "incognito_persistent", "incognito_session_only"],
+ "$ref": "Scope",
"optional": true,
"description": "Where to clear the setting (default: regular). One of<ul><li><var>regular</var>: setting for the regular profile (which is inherited by the incognito profile if not overridden elsewhere),</li><li><var>regular_only</var>: setting for the regular profile only (not inherited by the incognito profile),</li><li><var>incognito_persistent</var>: setting for the incognito profile that survives browser restarts (overrides regular preferences),</li><li><var>incognito_session_only</var>: setting for the incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular and incognito_persistent preferences).</li></ul>"
}
« no previous file with comments | « chrome/common/extensions/api/tts_engine.json ('k') | chrome/common/extensions/chrome_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698