OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "Port", | 6 "id": "Port", |
7 "type": "object", | 7 "type": "object", |
8 "description": "An object which allows two way communication with other
pages.", | 8 "description": "An object which allows two way communication with other
pages.", |
9 "properties": { | 9 "properties": { |
10 "name": {"type": "string"}, | 10 "name": {"type": "string"}, |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 { | 862 { |
863 "name": "details", | 863 "name": "details", |
864 "type": "object", | 864 "type": "object", |
865 "properties": { | 865 "properties": { |
866 "tabId": {"type": "integer", "minimum": 0, "description": "The id
of the tab for which you want to modify the page action."}, | 866 "tabId": {"type": "integer", "minimum": 0, "description": "The id
of the tab for which you want to modify the page action."}, |
867 "imageData": { | 867 "imageData": { |
868 "type": "any", | 868 "type": "any", |
869 "description": "Pixel data for an image. Must be an ImageData ob
ject (for example, from a canvas element).", | 869 "description": "Pixel data for an image. Must be an ImageData ob
ject (for example, from a canvas element).", |
870 "optional": true | 870 "optional": true |
871 }, | 871 }, |
| 872 "path": { |
| 873 "type": "string", |
| 874 "description": "Relative path to an image in the extension to sh
ow in the browser action.", |
| 875 "optional": true |
| 876 }, |
872 "iconIndex": { | 877 "iconIndex": { |
873 "type": "integer", | 878 "type": "integer", |
874 "minimum": 0, | 879 "minimum": 0, |
875 "description": "<b>Deprecated.</b> The zero-based index into the
<b>icons</b> vector specified in the manifest.", | 880 "description": "<b>Deprecated.</b> The zero-based index into the
<b>icons</b> vector specified in the manifest.", |
876 "optional": true | 881 "optional": true |
877 } | 882 } |
878 } | 883 } |
879 } | 884 } |
880 ] | 885 ] |
881 }, | 886 }, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 "type": "function", | 973 "type": "function", |
969 "description": "Sets the title of the browser action. This shows up in t
he tooltip.", | 974 "description": "Sets the title of the browser action. This shows up in t
he tooltip.", |
970 "parameters": [ | 975 "parameters": [ |
971 { | 976 { |
972 "name": "details", | 977 "name": "details", |
973 "type": "object", | 978 "type": "object", |
974 "properties": { | 979 "properties": { |
975 "title": { | 980 "title": { |
976 "type": "string", | 981 "type": "string", |
977 "description": "The string the browser action should display whe
n moused over." | 982 "description": "The string the browser action should display whe
n moused over." |
| 983 }, |
| 984 "tabId": { |
| 985 "type": "integer", |
| 986 "optional": true, |
| 987 "description": "Limits the change to when a particular tab is se
lected. Automatically resets when the tab is closed." |
978 } | 988 } |
979 } | 989 } |
980 } | 990 } |
981 ] | 991 ] |
982 }, | 992 }, |
983 { | 993 { |
984 "name": "setIcon", | 994 "name": "setIcon", |
985 "type": "function", | 995 "type": "function", |
986 "description": "Sets the icon for the browser action. The icon can be sp
ecified either as the path to an image file or as the pixel data from a canvas e
lement. Either the <b>path</b> or the <b>imageData</b> property must be specifie
d.", | 996 "description": "Sets the icon for the browser action. The icon can be sp
ecified either as the path to an image file or as the pixel data from a canvas e
lement. Either the <b>path</b> or the <b>imageData</b> property must be specifie
d.", |
987 "parameters": [ | 997 "parameters": [ |
988 { | 998 { |
989 "name": "details", | 999 "name": "details", |
990 "type": "object", | 1000 "type": "object", |
991 "properties": { | 1001 "properties": { |
992 "imageData": { | 1002 "imageData": { |
993 "type": "any", | 1003 "type": "any", |
994 "description": "Pixel data for an image. Must be an ImageData ob
ject (for example, from a <code>canvas</code> element).", | 1004 "description": "Pixel data for an image. Must be an ImageData ob
ject (for example, from a <code>canvas</code> element).", |
995 "optional": true | 1005 "optional": true |
996 }, | 1006 }, |
997 "iconIndex": { | |
998 "type": "integer", | |
999 "minimum": 0, | |
1000 "description": "<b>Deprecated.</b> The zero-based index into the
<b>icons</b> vector specified in the manifest.", | |
1001 "optional": true | |
1002 }, | |
1003 "path": { | 1007 "path": { |
1004 "type": "string", | 1008 "type": "string", |
1005 "description": "Relative path to an image in the extension to sh
ow in the browser action.", | 1009 "description": "Relative path to an image in the extension to sh
ow in the browser action.", |
1006 "optional": true | 1010 "optional": true |
| 1011 }, |
| 1012 "tabId": { |
| 1013 "type": "integer", |
| 1014 "optional": true, |
| 1015 "description": "Limits the change to when a particular tab is se
lected. Automatically resets when the tab is closed." |
1007 } | 1016 } |
1008 } | 1017 } |
1009 } | 1018 } |
1010 ] | 1019 ] |
1011 }, | 1020 }, |
1012 { | 1021 { |
1013 "name": "setBadgeText", | 1022 "name": "setBadgeText", |
1014 "type": "function", | 1023 "type": "function", |
1015 "description": "Sets the badge text for the browser action. The badge is
displayed on top of the icon.", | 1024 "description": "Sets the badge text for the browser action. The badge is
displayed on top of the icon.", |
1016 "parameters": [ | 1025 "parameters": [ |
1017 { | 1026 { |
1018 "name": "details", | 1027 "name": "details", |
1019 "type": "object", | 1028 "type": "object", |
1020 "properties": { | 1029 "properties": { |
1021 "text": { | 1030 "text": { |
1022 "type": "string", | 1031 "type": "string", |
1023 "description": "Any number of characters can be passed, but only
about four can fit in the space." | 1032 "description": "Any number of characters can be passed, but only
about four can fit in the space." |
| 1033 }, |
| 1034 "tabId": { |
| 1035 "type": "integer", |
| 1036 "optional": true, |
| 1037 "description": "Limits the change to when a particular tab is se
lected. Automatically resets when the tab is closed." |
1024 } | 1038 } |
1025 } | 1039 } |
1026 } | 1040 } |
1027 ] | 1041 ] |
1028 }, | 1042 }, |
1029 { | 1043 { |
1030 "name": "setBadgeBackgroundColor", | 1044 "name": "setBadgeBackgroundColor", |
1031 "type": "function", | 1045 "type": "function", |
1032 "description": "Sets the background color for the badge.", | 1046 "description": "Sets the background color for the badge.", |
1033 "parameters": [ | 1047 "parameters": [ |
1034 { | 1048 { |
1035 "name": "details", | 1049 "name": "details", |
1036 "type": "object", | 1050 "type": "object", |
1037 "properties": { | 1051 "properties": { |
1038 "color": { | 1052 "color": { |
1039 "type": "array", | 1053 "type": "array", |
1040 "description": "An array of four integers in the range [0,255] t
hat make up the RGBA color of the badge. For example, opaque red is <code>[255,
0, 0, 255]</code>.", | 1054 "description": "An array of four integers in the range [0,255] t
hat make up the RGBA color of the badge. For example, opaque red is <code>[255,
0, 0, 255]</code>.", |
1041 "items": { | 1055 "items": { |
1042 "type": "integer", | 1056 "type": "integer", |
1043 "minimum": 0, | 1057 "minimum": 0, |
1044 "maximum": 255 | 1058 "maximum": 255 |
1045 }, | 1059 }, |
1046 "minItems": 4, | 1060 "minItems": 4, |
1047 "maxItems": 4 | 1061 "maxItems": 4 |
| 1062 }, |
| 1063 "tabId": { |
| 1064 "type": "integer", |
| 1065 "optional": true, |
| 1066 "description": "Limits the change to when a particular tab is se
lected. Automatically resets when the tab is closed." |
1048 } | 1067 } |
1049 } | 1068 } |
1050 } | 1069 } |
1051 ] | 1070 ] |
1052 } | 1071 } |
1053 ], | 1072 ], |
1054 "events": [ | 1073 "events": [ |
1055 { | 1074 { |
1056 "name": "onClicked", | 1075 "name": "onClicked", |
1057 "type": "function", | 1076 "type": "function", |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 "type": "function", | 1476 "type": "function", |
1458 "description": "Logs a message during internal unit testing.", | 1477 "description": "Logs a message during internal unit testing.", |
1459 "parameters": [ | 1478 "parameters": [ |
1460 {"type": "string", "name": "message"} | 1479 {"type": "string", "name": "message"} |
1461 ] | 1480 ] |
1462 } | 1481 } |
1463 ], | 1482 ], |
1464 "events": [] | 1483 "events": [] |
1465 } | 1484 } |
1466 ] | 1485 ] |
OLD | NEW |