| 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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 }, | 924 }, |
| 925 "iconIndex": { | 925 "iconIndex": { |
| 926 "type": "integer", | 926 "type": "integer", |
| 927 "minimum": 0, | 927 "minimum": 0, |
| 928 "description": "<b>Deprecated.</b> The zero-based index into the
<b>icons</b> vector specified in the manifest.", | 928 "description": "<b>Deprecated.</b> The zero-based index into the
<b>icons</b> vector specified in the manifest.", |
| 929 "optional": true | 929 "optional": true |
| 930 } | 930 } |
| 931 } | 931 } |
| 932 } | 932 } |
| 933 ] | 933 ] |
| 934 }, | |
| 935 { | |
| 936 "name": "setBadgeText", | |
| 937 "type": "function", | |
| 938 "description": "Sets the badge text for the page action. The badge is di
splayed on top of the icon.", | |
| 939 "parameters": [ | |
| 940 { | |
| 941 "name": "details", | |
| 942 "type": "object", | |
| 943 "properties": { | |
| 944 "tabId": {"type": "integer", "minimum": 0, "description": "The id
of the tab for which you want to modify the page action."}, | |
| 945 "text": {"type": "string", "description": "Any number of character
s can be passed, but only about four can fit in the space."} | |
| 946 } | |
| 947 } | |
| 948 ] | |
| 949 }, | |
| 950 { | |
| 951 "name": "setBadgeTextColor", | |
| 952 "type": "function", | |
| 953 "description": "Sets the text color for the badge.", | |
| 954 "parameters": [ | |
| 955 { | |
| 956 "name": "details", | |
| 957 "type": "object", | |
| 958 "properties": { | |
| 959 "tabId": {"type": "integer", "minimum": 0, "description": "The id
of the tab for which you want to modify the page action."}, | |
| 960 "color": { | |
| 961 "type": "array", | |
| 962 "description": "An array of four integers in the range [0,255] t
hat make up the RGBA color for the text of the badge.", | |
| 963 "items": { | |
| 964 "type": "integer", | |
| 965 "minimum": 0, | |
| 966 "maximum": 255 | |
| 967 }, | |
| 968 "minItems": 4, | |
| 969 "maxItems": 4 | |
| 970 } | |
| 971 } | |
| 972 } | |
| 973 ] | |
| 974 }, | |
| 975 { | |
| 976 "name": "setBadgeBackgroundColor", | |
| 977 "type": "function", | |
| 978 "description": "Sets the background color for the badge.", | |
| 979 "parameters": [ | |
| 980 { | |
| 981 "name": "details", | |
| 982 "type": "object", | |
| 983 "properties": { | |
| 984 "tabId": {"type": "integer", "minimum": 0, "description": "The id
of the tab for which you want to modify the page action."}, | |
| 985 "color": { | |
| 986 "type": "array", | |
| 987 "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>.", | |
| 988 "items": { | |
| 989 "type": "integer", | |
| 990 "minimum": 0, | |
| 991 "maximum": 255 | |
| 992 }, | |
| 993 "minItems": 4, | |
| 994 "maxItems": 4 | |
| 995 } | |
| 996 } | |
| 997 } | |
| 998 ] | |
| 999 } | 934 } |
| 1000 ], | 935 ], |
| 1001 "events": [ | 936 "events": [ |
| 1002 { | 937 { |
| 1003 "name": "onClicked", | 938 "name": "onClicked", |
| 1004 "type": "function", | 939 "type": "function", |
| 1005 "description": "Fired when a page action icon is clicked.", | 940 "description": "Fired when a page action icon is clicked.", |
| 1006 "parameters": [ | 941 "parameters": [ |
| 1007 { | 942 { |
| 1008 "name": "tab", | 943 "name": "tab", |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1510 "type": "function", | 1445 "type": "function", |
| 1511 "description": "Logs a message during internal unit testing.", | 1446 "description": "Logs a message during internal unit testing.", |
| 1512 "parameters": [ | 1447 "parameters": [ |
| 1513 {"type": "string", "name": "message"} | 1448 {"type": "string", "name": "message"} |
| 1514 ] | 1449 ] |
| 1515 } | 1450 } |
| 1516 ], | 1451 ], |
| 1517 "events": [] | 1452 "events": [] |
| 1518 } | 1453 } |
| 1519 ] | 1454 ] |
| OLD | NEW |