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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 2812023: Make the extension API docs point out the minimum version that supports an API call. (Closed)
Patch Set: Rebase for checkin. Created 10 years, 5 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/a11y.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 "type": "integer", 1000 "type": "integer",
1001 "name": "windowId", 1001 "name": "windowId",
1002 "minimum": 0, 1002 "minimum": 0,
1003 "optional": true, 1003 "optional": true,
1004 "description": "The target window. Defaults to the <a href='windows. html#current-window'>current window</a>." 1004 "description": "The target window. Defaults to the <a href='windows. html#current-window'>current window</a>."
1005 }, 1005 },
1006 { 1006 {
1007 "type": "object", 1007 "type": "object",
1008 "name": "options", 1008 "name": "options",
1009 "optional": true, 1009 "optional": true,
1010 "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.", 1010 "min_version": "5.0.372.0",
1011 "description": "Set parameters of image capture, such as the format of the resulting image.",
1011 "properties": { 1012 "properties": {
1012 "format": { 1013 "format": {
1013 "type": "string", 1014 "type": "string",
1014 "optional": true, 1015 "optional": true,
1015 "enum": ["jpeg", "png"], 1016 "enum": ["jpeg", "png"],
1016 "description": "The format of the resulting image. Default is j peg." 1017 "description": "The format of the resulting image. Default is j peg."
1017 }, 1018 },
1018 "quality": { 1019 "quality": {
1019 "type": "integer", 1020 "type": "integer",
1020 "name": "quality", 1021 "name": "quality",
1021 "optional": true, 1022 "optional": true,
1022 "minimum": 0, 1023 "minimum": 0,
1023 "maximum": 100, 1024 "maximum": 100,
1024 "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." 1025 "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."
1025 } 1026 }
1026 } 1027 }
1027 }, 1028 },
1028 { 1029 {
1029 "type": "function", "name": "callback", "parameters": [ 1030 "type": "function", "name": "callback", "parameters": [
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 "optional": true 1320 "optional": true
1320 } 1321 }
1321 } 1322 }
1322 } 1323 }
1323 ] 1324 ]
1324 }, 1325 },
1325 { 1326 {
1326 "name": "setPopup", 1327 "name": "setPopup",
1327 "type": "function", 1328 "type": "function",
1328 "description": "Sets the html document to be opened as a popup when the user clicks on the page action's icon.", 1329 "description": "Sets the html document to be opened as a popup when the user clicks on the page action's icon.",
1330 "min_version": "5.0.308.0",
1329 "parameters": [ 1331 "parameters": [
1330 { 1332 {
1331 "name": "details", 1333 "name": "details",
1332 "type": "object", 1334 "type": "object",
1333 "properties": { 1335 "properties": {
1334 "tabId": {"type": "integer", "minimum": 0, "description": "The id of the tab for which you want to modify the page action."}, 1336 "tabId": {"type": "integer", "minimum": 0, "description": "The id of the tab for which you want to modify the page action."},
1335 "popup": { 1337 "popup": {
1336 "type": "string", 1338 "type": "string",
1337 "description": "The html file to show in a popup. If set to the empty string (''), no popup is shown." 1339 "description": "The html file to show in a popup. If set to the empty string (''), no popup is shown."
1338 } 1340 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 "optional": true, 1410 "optional": true,
1409 "description": "Limits the change to when a particular tab is se lected. Automatically resets when the tab is closed." 1411 "description": "Limits the change to when a particular tab is se lected. Automatically resets when the tab is closed."
1410 } 1412 }
1411 } 1413 }
1412 } 1414 }
1413 ] 1415 ]
1414 }, 1416 },
1415 { 1417 {
1416 "name": "setPopup", 1418 "name": "setPopup",
1417 "type": "function", 1419 "type": "function",
1420 "min_version": "5.0.316.0",
1418 "description": "Sets the html document to be opened as a popup when the user clicks on the browser action's icon.", 1421 "description": "Sets the html document to be opened as a popup when the user clicks on the browser action's icon.",
1419 "parameters": [ 1422 "parameters": [
1420 { 1423 {
1421 "name": "details", 1424 "name": "details",
1422 "type": "object", 1425 "type": "object",
1423 "properties": { 1426 "properties": {
1424 "tabId": { 1427 "tabId": {
1425 "type": "integer", 1428 "type": "integer",
1426 "optional": true, 1429 "optional": true,
1427 "minimum": 0, 1430 "minimum": 0,
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
3125 "parameters": [ 3128 "parameters": [
3126 { 3129 {
3127 "type": "string", 3130 "type": "string",
3128 "name": "text" 3131 "name": "text"
3129 } 3132 }
3130 ] 3133 ]
3131 } 3134 }
3132 ] 3135 ]
3133 } 3136 }
3134 ] 3137 ]
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/a11y.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698