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 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 "description": "Captures the visible area of the currently selected tab
in the specified window.", | 972 "description": "Captures the visible area of the currently selected tab
in the specified window.", |
973 "parameters": [ | 973 "parameters": [ |
974 { | 974 { |
975 "type": "integer", | 975 "type": "integer", |
976 "name": "windowId", | 976 "name": "windowId", |
977 "minimum": 0, | 977 "minimum": 0, |
978 "optional": true, | 978 "optional": true, |
979 "description": "The target window. Defaults to the <a href='windows.
html#current-window'>current window</a>." | 979 "description": "The target window. Defaults to the <a href='windows.
html#current-window'>current window</a>." |
980 }, | 980 }, |
981 { | 981 { |
| 982 "type": "object", |
| 983 "name": "options", |
| 984 "optional": true, |
| 985 "description": "Set parameters of image capture, such as the format
of the resulting image. This parameter was added in version 5.0 . Earlier vers
ions of chrome will throw an exception unless you omit it.", |
| 986 "properties": { |
| 987 "format": { |
| 988 "type": "string", |
| 989 "optional": true, |
| 990 "enum": ["jpeg", "png"], |
| 991 "description": "The format of the resulting image. Default is j
peg." |
| 992 }, |
| 993 "quality": { |
| 994 "type": "integer", |
| 995 "name": "quality", |
| 996 "optional": true, |
| 997 "minimum": 0, |
| 998 "maximum": 100, |
| 999 "description": "When format is 'jpeg', controls the quality of t
he resulting image. This value is ignored for PNG images. As quality is decrea
sed, the resulting image will have more visual artifacts, and the number of byte
s needed to store it will decrease." |
| 1000 } |
| 1001 } |
| 1002 }, |
| 1003 { |
982 "type": "function", "name": "callback", "parameters": [ | 1004 "type": "function", "name": "callback", "parameters": [ |
983 {"type": "string", "name": "dataUrl", "description": "A data URL o
f a JPEG encoding of the visible area of the captured tab. May be assigned to th
e 'src' property of an HTML Image element for display."} | 1005 {"type": "string", "name": "dataUrl", "description": "A data URL w
hich encodes an image of the visible area of the captured tab. May be assigned t
o the 'src' property of an HTML Image element for display."} |
984 ] | 1006 ] |
985 } | 1007 } |
986 ] | 1008 ] |
987 }, | 1009 }, |
988 { | 1010 { |
989 "name": "executeScript", | 1011 "name": "executeScript", |
990 "type": "function", | 1012 "type": "function", |
991 "description": "Injects JavaScript code into a page. For details, see th
e <a href='content_scripts.html#pi'>programmatic injection</a> section of the co
ntent scripts doc.", | 1013 "description": "Injects JavaScript code into a page. For details, see th
e <a href='content_scripts.html#pi'>programmatic injection</a> section of the co
ntent scripts doc.", |
992 "parameters": [ | 1014 "parameters": [ |
993 {"type": "integer", "name": "tabId", "optional": true, "description":
"The ID of the tab in which to run the script; defaults to the selected tab of t
he current window."}, | 1015 {"type": "integer", "name": "tabId", "optional": true, "description":
"The ID of the tab in which to run the script; defaults to the selected tab of t
he current window."}, |
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2718 "description": "Triggers a paste operation in the specified tab.", | 2740 "description": "Triggers a paste operation in the specified tab.", |
2719 "parameters": [ | 2741 "parameters": [ |
2720 {"type": "integer", "name": "tabId", "minimum": 0}, | 2742 {"type": "integer", "name": "tabId", "minimum": 0}, |
2721 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 2743 {"type": "function", "name": "callback", "optional": true, "parameters
": []} |
2722 ] | 2744 ] |
2723 } | 2745 } |
2724 ], | 2746 ], |
2725 "events": [] | 2747 "events": [] |
2726 } | 2748 } |
2727 ] | 2749 ] |
OLD | NEW |