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

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

Issue 6596044: Add onChange event to preference extension APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 9 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 4631 matching lines...) Expand 10 before | Expand all | Expand 10 after
4642 }, 4642 },
4643 { 4643 {
4644 "name": "callback", 4644 "name": "callback",
4645 "type": "function", 4645 "type": "function",
4646 "description": "Called after the preference has been cleared.", 4646 "description": "Called after the preference has been cleared.",
4647 "optional": true, 4647 "optional": true,
4648 "parameters": [] 4648 "parameters": []
4649 } 4649 }
4650 ] 4650 ]
4651 } 4651 }
4652 ],
4653 "events": [
4654 {
4655 "name": "onChange",
4656 "description": "Fired when the value of the preference changes.",
4657 "parameters": [
4658 {
4659 "type": "object",
4660 "name": "details",
4661 "properties": {
4662 "value": {
4663 "description": "The value of the preference.",
4664 "type": "any"
4665 },
4666 "levelOfControl": {
4667 "description": "One of<br><var>NotControllable</var>: cannot be controlled by any extension<br><var>ControlledByOtherExtensions</var>: contr olled by extensions with higher precedence<br><var>ControllableByThisExtension</ var>: can be controlled by this extension<br><var>ControlledByThisExtension</var >: controlled by this extension",
4668 "type": "string",
4669 "enum": ["NotControllable", "ControlledByOtherExtensions", " ControllableByThisExtension", "ControlledByThisExtension"]
4670 },
4671 "incognitoSpecific": {
4672 "description": "Whether the value that has changed is specif ic to the incognito session.<br>This property will <em>only</em> be present if t he user has enabled the extension in incognito mode.",
4673 "type": "boolean",
4674 "optional": true
4675 }
4676 }
4677 }
4678 ]
4679 }
4652 ] 4680 ]
4653 } 4681 }
4654 ] 4682 ]
4655 }, 4683 },
4656 { 4684 {
4657 "namespace": "experimental.contentSettings.misc", 4685 "namespace": "experimental.contentSettings.misc",
4658 "properties": { 4686 "properties": {
4659 "blockThirdPartyCookies": { 4687 "blockThirdPartyCookies": {
4660 "$ref": "Preference", 4688 "$ref": "Preference",
4661 "value": ["blockThirdPartyCookies", {"type": "boolean"}], 4689 "value": ["blockThirdPartyCookies", {"type": "boolean"}],
4662 "description": "Whether third party cookies should be blocked. The value of this preference is of type boolean." 4690 "description": "Whether third party cookies should be blocked. The value of this preference is of type boolean."
4663 } 4691 }
4664 } 4692 }
4665 } 4693 }
4666 ] 4694 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698