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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 6990054: Disable setting incognito prefs for extensions for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated copyright header Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 5364 matching lines...) Expand 10 before | Expand all | Expand 10 after
5375 "parameters": [ 5375 "parameters": [
5376 { 5376 {
5377 "name": "details", 5377 "name": "details",
5378 "type": "object", 5378 "type": "object",
5379 "description": "What setting to change.", 5379 "description": "What setting to change.",
5380 "properties": { 5380 "properties": {
5381 "value": { 5381 "value": {
5382 "description": "The value of the preference. <br>Note that e very preference has a specific value type, which is described together with the preference. An extension should <em>not</em> set a preference value of a differe nt type.", 5382 "description": "The value of the preference. <br>Note that e very preference has a specific value type, which is described together with the preference. An extension should <em>not</em> set a preference value of a differe nt type.",
5383 "type": "any" 5383 "type": "any"
5384 }, 5384 },
5385 "incognito": { 5385 "scope": {
5386 "type": "boolean", 5386 "type": "string",
5387 "enum": ["regular"],
5387 "optional": true, 5388 "optional": true,
5388 "description": "Whether to modify the setting for the incogn ito session only (default false)." 5389 "description": "Where to set the preference (default: regula r). 'regular' = preference for regular profile (which is inherited by the incogn ito profile if not overridden elsewhere)."
5389 } 5390 }
5390 } 5391 }
5391 }, 5392 },
5392 { 5393 {
5393 "name": "callback", 5394 "name": "callback",
5394 "type": "function", 5395 "type": "function",
5395 "description": "Called after the preference has been set.", 5396 "description": "Called after the preference has been set.",
5396 "optional": true, 5397 "optional": true,
5397 "parameters": [] 5398 "parameters": []
5398 } 5399 }
5399 ] 5400 ]
5400 }, 5401 },
5401 { 5402 {
5402 "name": "clear", 5403 "name": "clear",
5403 "type": "function", 5404 "type": "function",
5404 "description": "Clears the setting in the user preferences. This way default settings can become effective again.", 5405 "description": "Clears the setting in the user preferences. This way default settings can become effective again.",
5405 "parameters": [ 5406 "parameters": [
5406 { 5407 {
5407 "name": "details", 5408 "name": "details",
5408 "type": "object", 5409 "type": "object",
5409 "description": "What setting to clear.", 5410 "description": "What preference to clear.",
5410 "properties": { 5411 "properties": {
5411 "incognito": { 5412 "scope": {
5412 "type": "boolean", 5413 "type": "string",
5414 "enum": ["regular"],
5413 "optional": true, 5415 "optional": true,
5414 "description": "Whether to clear the setting for the incogni to session only (default false)." 5416 "description": "Where to clear the preference (default: regu lar). 'regular' = preference for regular profile (which is inherited by the inco gnito profile if not overridden elsewhere)."
5415 } 5417 }
5416 } 5418 }
5417 }, 5419 },
5418 { 5420 {
5419 "name": "callback", 5421 "name": "callback",
5420 "type": "function", 5422 "type": "function",
5421 "description": "Called after the preference has been cleared.", 5423 "description": "Called after the preference has been cleared.",
5422 "optional": true, 5424 "optional": true,
5423 "parameters": [] 5425 "parameters": []
5424 } 5426 }
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
5593 { 5595 {
5594 "type": "integer", 5596 "type": "integer",
5595 "name": "tabId", 5597 "name": "tabId",
5596 "description": "The id of the tab that was detached." 5598 "description": "The id of the tab that was detached."
5597 } 5599 }
5598 ] 5600 ]
5599 } 5601 }
5600 ] 5602 ]
5601 } 5603 }
5602 ] 5604 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698