| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "contextMenus", | 7 "namespace": "contextMenus", |
| 8 "dependencies": [ "tabs" ], | 8 "dependencies": [ "tabs" ], |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 "optional": true, | 70 "optional": true, |
| 71 "description": "A flag indicating the state of a checkbox or radio i
tem after it is clicked." | 71 "description": "A flag indicating the state of a checkbox or radio i
tem after it is clicked." |
| 72 } | 72 } |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 ], | 75 ], |
| 76 "functions": [ | 76 "functions": [ |
| 77 { | 77 { |
| 78 "name": "create", | 78 "name": "create", |
| 79 "type": "function", | 79 "type": "function", |
| 80 "allow_functions_in_objects": true, |
| 80 "description": "Creates a new context menu item. Note that if an error o
ccurs during creation, you may not find out until the creation callback fires (t
he details will be in chrome.extension.lastError).", | 81 "description": "Creates a new context menu item. Note that if an error o
ccurs during creation, you may not find out until the creation callback fires (t
he details will be in chrome.extension.lastError).", |
| 81 "returns": { | 82 "returns": { |
| 82 "choices": [ | 83 "choices": [ |
| 83 { "type": "integer" }, | 84 { "type": "integer" }, |
| 84 { "type": "string" } | 85 { "type": "string" } |
| 85 ], | 86 ], |
| 86 "description": "The ID of the newly created item." | 87 "description": "The ID of the newly created item." |
| 87 }, | 88 }, |
| 88 "parameters": [ | 89 "parameters": [ |
| 89 { | 90 { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 "name": "callback", | 171 "name": "callback", |
| 171 "optional": true, | 172 "optional": true, |
| 172 "description": "Called when the item has been created in the browser
. If there were any problems creating the item, details will be available in chr
ome.extension.lastError.", | 173 "description": "Called when the item has been created in the browser
. If there were any problems creating the item, details will be available in chr
ome.extension.lastError.", |
| 173 "parameters": [] | 174 "parameters": [] |
| 174 } | 175 } |
| 175 ] | 176 ] |
| 176 }, | 177 }, |
| 177 { | 178 { |
| 178 "name": "update", | 179 "name": "update", |
| 179 "type": "function", | 180 "type": "function", |
| 181 "allow_functions_in_objects": true, |
| 180 "description": "Updates a previously created context menu item.", | 182 "description": "Updates a previously created context menu item.", |
| 181 "parameters": [ | 183 "parameters": [ |
| 182 { | 184 { |
| 183 "choices": [ | 185 "choices": [ |
| 184 { "type": "integer" }, | 186 { "type": "integer" }, |
| 185 { "type": "string" } | 187 { "type": "string" } |
| 186 ], | 188 ], |
| 187 "name": "id", | 189 "name": "id", |
| 188 "description": "The ID of the item to update." | 190 "description": "The ID of the item to update." |
| 189 }, | 191 }, |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 "name": "tab", | 305 "name": "tab", |
| 304 "$ref": "tabs.Tab", | 306 "$ref": "tabs.Tab", |
| 305 "description": "The details of the tab where the click took place. I
f the click did not take place in a tab, this parameter will be missing.", | 307 "description": "The details of the tab where the click took place. I
f the click did not take place in a tab, this parameter will be missing.", |
| 306 "optional": true | 308 "optional": true |
| 307 } | 309 } |
| 308 ] | 310 ] |
| 309 } | 311 } |
| 310 ] | 312 ] |
| 311 } | 313 } |
| 312 ] | 314 ] |
| OLD | NEW |