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

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: Add missing files Created 9 years, 6 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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 ] 692 ]
693 }, 693 },
694 { 694 {
695 "name": "onStop", 695 "name": "onStop",
696 "type": "function", 696 "type": "function",
697 "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)." 697 "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)."
698 } 698 }
699 ] 699 ]
700 }, 700 },
701 { 701 {
702 "namespace": "experimental.settings",
703 "types": [],
704 "functions": [
705 {
706 "name": "get",
707 "type": "function",
708 "description": "Gets one or more values from settings.",
709 "parameters": [
710 {
711 "name": "keys",
712 "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.",
713 "optional": true
714 },
715 {
716 "name": "callback",
717 "type": "function",
718 "description": "Callback with settings values, or on failure (in whi ch case lastError will be set).",
719 "parameters": [
720 {
721 "name": "settings",
722 "type": "object",
723 "description": "Object with given keys set to settings values."
724 }
725 ]
726 }
727 ]
728 },
729 {
730 "name": "set",
731 "type": "function",
732 "description": "Sets multiple settings values.",
733 "parameters": [
734 {
735 "name": "settings",
736 "description": "Object to augment settings with. Values that cannot be serialized (functions, etc) will be ignored."
737 },
738 {
739 "name": "callback",
740 "type": "function",
741 "description": "Callback with settings values, or on failure (in whi ch case lastError will be set).",
742 "parameters": [
743 {
744 "name": "settings",
745 "type": "object",
746 "description": "Object with given keys set to settings values."
747 }
748 ],
749 "optional": true
750 }
751 ]
752 },
753 {
754 "name": "remove",
755 "type": "function",
756 "description": "Removes one or more values from settings.",
757 "parameters": [
758 {
759 "name": "keys",
760 "description": "A single key or a list of keys to remove from settin gs."
761 },
762 {
763 "name": "callback",
764 "type": "function",
765 "description": "Callback with an empty settings object, or on failur e (in which case lastError will be set).",
766 "parameters": [
767 {
768 "name": "settings",
769 "type": "object",
770 "description": "An empty object."
771 }
772 ],
773 "optional": true
774 }
775 ]
776 },
777 {
778 "name": "clear",
779 "type": "function",
780 "description": "Removes all values from settings.",
781 "parameters": [
782 {
783 "name": "callback",
784 "type": "function",
785 "description": "Callback with an empty settings object, or on failur e (in which case lastError will be set).",
786 "parameters": [
787 {
788 "name": "settings",
789 "type": "object",
790 "description": "An empty object."
791 }
792 ],
793 "optional": true
794 }
795 ]
796 }
797 ],
798 "events": []
799 },
800 {
702 "namespace": "windows", 801 "namespace": "windows",
703 "types": [ 802 "types": [
704 { 803 {
705 "id": "Window", 804 "id": "Window",
706 "type": "object", 805 "type": "object",
707 "properties": { 806 "properties": {
708 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, 807 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."},
709 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, 808 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."},
710 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."}, 809 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."},
711 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, 810 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."},
(...skipping 5338 matching lines...) Expand 10 before | Expand all | Expand 10 after
6050 { 6149 {
6051 "type": "integer", 6150 "type": "integer",
6052 "name": "tabId", 6151 "name": "tabId",
6053 "description": "The id of the tab that was detached." 6152 "description": "The id of the tab that was detached."
6054 } 6153 }
6055 ] 6154 ]
6056 } 6155 }
6057 ] 6156 ]
6058 } 6157 }
6059 ] 6158 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698