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

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

Issue 7189029: Implement an initial extension settings API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make clang happy Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 ] 830 ]
831 }, 831 },
832 { 832 {
833 "name": "onStop", 833 "name": "onStop",
834 "type": "function", 834 "type": "function",
835 "description": "Fired when a call is made to tts.stop and this extension may be in the middle of speaking. If an extension receives a call to onStop and speech is already stopped, it should do nothing (not raise an error)." 835 "description": "Fired when a call is made to tts.stop and this extension may be in the middle of speaking. If an extension receives a call to onStop and speech is already stopped, it should do nothing (not raise an error)."
836 } 836 }
837 ] 837 ]
838 }, 838 },
839 { 839 {
840 "namespace": "experimental.settings",
841 "types": [],
842 "functions": [
843 {
844 "name": "get",
845 "type": "function",
846 "description": "Gets one or more values from settings.",
847 "parameters": [
848 {
849 "name": "keys",
850 "choices": [
851 {"type": "string"},
852 {"type": "array", "items": {"type": "string"}, "minItems": 1}
853 ],
854 "description": "A single key or a list of keys to get from settings. Leave empty to get the entire contents of settings; this should only be used fo r debugging.",
855 "optional": true
856 },
857 {
858 "name": "callback",
859 "type": "function",
860 "description": "Callback with settings values, or on failure (in whi ch case lastError will be set).",
861 "parameters": [
862 {
863 "name": "settings",
864 "type": "object",
865 "properties": {},
866 "additionalProperties": { "type": "any" },
867 "description": "Object with given keys set to settings values."
868 }
869 ]
870 }
871 ]
872 },
873 {
874 "name": "set",
875 "type": "function",
876 "description": "Sets multiple settings values.",
877 "parameters": [
878 {
879 "name": "settings",
880 "type": "object",
881 "properties": {},
882 "additionalProperties": { "type": "any" },
883 "description": "Object to augment settings with. Values that cannot be serialized (functions, etc) will be ignored."
884 },
885 {
886 "name": "callback",
887 "type": "function",
888 "description": "Callback with settings values, or on failure (in whi ch case lastError will be set).",
889 "parameters": [
890 {
891 "name": "settings",
892 "type": "object",
893 "properties": {},
894 "additionalProperties": { "type": "any" },
895 "description": "Object with given keys set to settings values."
896 }
897 ],
898 "optional": true
899 }
900 ]
901 },
902 {
903 "name": "remove",
904 "type": "function",
905 "description": "Removes one or more values from settings.",
906 "parameters": [
907 {
908 "name": "keys",
909 "choices": [
910 {"type": "string"},
911 {"type": "array", "items": {"type": "string"}, "minItems": 1}
912 ],
913 "description": "A single key or a list of keys to remove from settin gs."
914 },
915 {
916 "name": "callback",
917 "type": "function",
918 "description": "Callback on success, or on failure (in which case la stError will be set).",
919 "parameters": [],
920 "optional": true
921 }
922 ]
923 },
924 {
925 "name": "clear",
926 "type": "function",
927 "description": "Removes all values from settings.",
928 "parameters": [
929 {
930 "name": "callback",
931 "type": "function",
932 "description": "Callback on success, or on failure (in which case la stError will be set).",
933 "parameters": [],
934 "optional": true
935 }
936 ]
937 }
938 ],
939 "events": []
940 },
941 {
840 "namespace": "windows", 942 "namespace": "windows",
841 "types": [ 943 "types": [
842 { 944 {
843 "id": "Window", 945 "id": "Window",
844 "type": "object", 946 "type": "object",
845 "properties": { 947 "properties": {
846 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, 948 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."},
847 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, 949 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."},
848 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."}, 950 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."},
849 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, 951 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."},
(...skipping 6564 matching lines...) Expand 10 before | Expand all | Expand 10 after
7414 "description": "A string result code. The value is non-empty on success only in tests.", 7516 "description": "A string result code. The value is non-empty on success only in tests.",
7415 "optional": "true" 7517 "optional": "true"
7416 } 7518 }
7417 ] 7519 ]
7418 } 7520 }
7419 ] 7521 ]
7420 } 7522 }
7421 ] 7523 ]
7422 } 7524 }
7423 ] 7525 ]
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698