OLD | NEW |
---|---|
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 Loading... | |
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 "type": "any", | |
Matt Perry
2011/06/23 18:11:45
you should use the "choices" key rather than an "a
not at google - send to devlin
2011/06/27 08:51:02
Done.
Though only for remove, not set?
Matt Perry
2011/06/29 18:08:11
Oops, you're right.
| |
713 "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.", | |
714 "optional": true | |
715 }, | |
716 { | |
717 "name": "callback", | |
718 "type": "function", | |
719 "description": "Callback with settings values, or on failure (in whi ch case lastError will be set).", | |
720 "parameters": [ | |
721 { | |
722 "name": "settings", | |
723 "type": "object", | |
724 "properties": {}, | |
725 "additionalProperties": { "type": "any" }, | |
726 "description": "Object with given keys set to settings values." | |
727 } | |
728 ] | |
729 } | |
730 ] | |
731 }, | |
732 { | |
733 "name": "set", | |
734 "type": "function", | |
735 "description": "Sets multiple settings values.", | |
736 "parameters": [ | |
737 { | |
738 "name": "settings", | |
739 "type": "object", | |
740 "properties": {}, | |
741 "additionalProperties": { "type": "any" }, | |
742 "description": "Object to augment settings with. Values that cannot be serialized (functions, etc) will be ignored." | |
743 }, | |
744 { | |
745 "name": "callback", | |
746 "type": "function", | |
747 "description": "Callback with settings values, or on failure (in whi ch case lastError will be set).", | |
748 "parameters": [ | |
749 { | |
750 "name": "settings", | |
751 "type": "object", | |
752 "properties": {}, | |
753 "additionalProperties": { "type": "any" }, | |
754 "description": "Object with given keys set to settings values." | |
755 } | |
756 ], | |
757 "optional": true | |
758 } | |
759 ] | |
760 }, | |
761 { | |
762 "name": "remove", | |
763 "type": "function", | |
764 "description": "Removes one or more values from settings.", | |
765 "parameters": [ | |
766 { | |
767 "name": "keys", | |
768 "type": "any", | |
769 "description": "A single key or a list of keys to remove from settin gs." | |
770 }, | |
771 { | |
772 "name": "callback", | |
773 "type": "function", | |
774 "description": "Callback with an empty settings object, or on failur e (in which case lastError will be set).", | |
775 "parameters": [ | |
776 { | |
777 "name": "settings", | |
778 "type": "object", | |
779 "properties": {}, | |
780 "additionalProperties": { "type": "any" }, | |
781 "description": "An empty object." | |
782 } | |
783 ], | |
784 "optional": true | |
785 } | |
786 ] | |
787 }, | |
788 { | |
789 "name": "clear", | |
790 "type": "function", | |
791 "description": "Removes all values from settings.", | |
792 "parameters": [ | |
793 { | |
794 "name": "callback", | |
795 "type": "function", | |
796 "description": "Callback with an empty settings object, or on failur e (in which case lastError will be set).", | |
797 "parameters": [ | |
798 { | |
799 "name": "settings", | |
800 "type": "object", | |
801 "properties": {}, | |
802 "additionalProperties": { "type": "any" }, | |
803 "description": "An empty object." | |
804 } | |
805 ], | |
806 "optional": true | |
807 } | |
808 ] | |
809 } | |
810 ], | |
811 "events": [] | |
812 }, | |
813 { | |
702 "namespace": "windows", | 814 "namespace": "windows", |
703 "types": [ | 815 "types": [ |
704 { | 816 { |
705 "id": "Window", | 817 "id": "Window", |
706 "type": "object", | 818 "type": "object", |
707 "properties": { | 819 "properties": { |
708 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, | 820 "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."}, | 821 "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."}, | 822 "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."}, | 823 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, |
(...skipping 5455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6167 { | 6279 { |
6168 "type": "integer", | 6280 "type": "integer", |
6169 "name": "tabId", | 6281 "name": "tabId", |
6170 "description": "The id of the tab that was detached." | 6282 "description": "The id of the tab that was detached." |
6171 } | 6283 } |
6172 ] | 6284 ] |
6173 } | 6285 } |
6174 ] | 6286 ] |
6175 } | 6287 } |
6176 ] | 6288 ] |
OLD | NEW |