| 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 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2347 "description": "Details about the tab's process." | 2347 "description": "Details about the tab's process." |
| 2348 } | 2348 } |
| 2349 ] | 2349 ] |
| 2350 } | 2350 } |
| 2351 ] | 2351 ] |
| 2352 } | 2352 } |
| 2353 ], | 2353 ], |
| 2354 "events": [] | 2354 "events": [] |
| 2355 }, | 2355 }, |
| 2356 { | 2356 { |
| 2357 "namespace": "experimental.contextMenu", |
| 2358 "types": [], |
| 2359 "functions": [ |
| 2360 { |
| 2361 "name": "create", |
| 2362 "type": "function", |
| 2363 "description": "An API to add items to context menus.", |
| 2364 "parameters": [ |
| 2365 { |
| 2366 "type": "object", |
| 2367 "name": "createProperties", |
| 2368 "properties": { |
| 2369 "type": { |
| 2370 "type": "string", |
| 2371 "optional": true, |
| 2372 "description": "The type of menu item - one of 'NORMAL', 'CHECKB
OX', 'RADIO', or 'SEPARATOR'. Defaults to 'NORMAL' if not specified." |
| 2373 }, |
| 2374 "title": { |
| 2375 "type": "string", |
| 2376 "optional": "true", |
| 2377 "description": "This must be specified unless type is 'SEPARATOR
'." |
| 2378 }, |
| 2379 "checked": { |
| 2380 "type": "boolean", |
| 2381 "optional": true, |
| 2382 "description": " For items of type CHECKBOX or RADIO, should thi
s be selected (RADIO) or checked (CHECKBOX)? Only one RADIO item can be selected
at a time in a given group of RADIO items, with the last one to have checked ==
true winning." |
| 2383 }, |
| 2384 "contexts": { |
| 2385 "type": "array", |
| 2386 "items": {"type": "string"}, |
| 2387 "minItems": 1, |
| 2388 "optional": true, |
| 2389 "description": "List of contexts this menu item will appear in.
Legal values are: 'ALL', 'PAGE', 'SELECTION', 'LINK', 'EDITABLE', 'IMAGE', 'VIDE
O', and 'AUDIO'. Defaults to ['PAGE']." |
| 2390 }, |
| 2391 "enabledContexts": { |
| 2392 "type": "array", |
| 2393 "optional": true, |
| 2394 "items": {"type": "string"}, |
| 2395 "minItems": 1, |
| 2396 "description": "By default the values you pass for the contexts
parameter make an item both shown and selectable in those contexts. If you want
to limit the contexts where an item is selectable (i.e. not greyed out), you put
the ones you want selectable in enabledContexts and any not listed will be show
n but disabled. So, for example, if you wanted an item to appear for links and i
mages but only be enabled for links, you would set 'contexts' : ['LINK', 'IMAGE'
] and 'enabledContexts' : ['LINK']." |
| 2397 }, |
| 2398 "onclick": { |
| 2399 "type": "function", |
| 2400 "optional": true, |
| 2401 "description": "Function to be called back when your menu item o
r one of its children is clicked." |
| 2402 }, |
| 2403 "parentId": { |
| 2404 "type": "integer", |
| 2405 "optional": true, |
| 2406 "description": "The id of a parent menu item - this makes the it
em a child of a previously added item." |
| 2407 } |
| 2408 } |
| 2409 }, |
| 2410 { |
| 2411 "type": "function", |
| 2412 "name": "callback", |
| 2413 "optional": true, |
| 2414 "parameters": [ |
| 2415 { |
| 2416 "name": "menuItemId", |
| 2417 "type": "integer", |
| 2418 "description": "The id of the newly created context menu item." |
| 2419 } |
| 2420 ] |
| 2421 } |
| 2422 ] |
| 2423 }, |
| 2424 { |
| 2425 "name": "remove", |
| 2426 "type": "function", |
| 2427 "description": "Remove a context menu item.", |
| 2428 "parameters": [ |
| 2429 { |
| 2430 "type": "integer", |
| 2431 "name": "menuItemId", |
| 2432 "description": "The id of the context menu item to remove." |
| 2433 }, |
| 2434 { |
| 2435 "type": "function", |
| 2436 "name": "callback", |
| 2437 "optional": true, |
| 2438 "parameters": [], |
| 2439 "description": "Called when the context menu has been removed." |
| 2440 } |
| 2441 ] |
| 2442 } |
| 2443 ] |
| 2444 }, |
| 2445 { |
| 2357 "namespace": "experimental.metrics", | 2446 "namespace": "experimental.metrics", |
| 2358 "nodoc": true, | 2447 "nodoc": true, |
| 2359 "types": [ | 2448 "types": [ |
| 2360 { | 2449 { |
| 2361 "id": "MetricType", | 2450 "id": "MetricType", |
| 2362 "type": "object", | 2451 "type": "object", |
| 2363 "description": "Describes the type of metric that is to be collected.", | 2452 "description": "Describes the type of metric that is to be collected.", |
| 2364 "properties": { | 2453 "properties": { |
| 2365 "metricName": {"type": "string", "description": "A unique name within
the extension for the metric."}, | 2454 "metricName": {"type": "string", "description": "A unique name within
the extension for the metric."}, |
| 2366 "type": { | 2455 "type": { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2533 "description": "Triggers a paste operation in the specified tab.", | 2622 "description": "Triggers a paste operation in the specified tab.", |
| 2534 "parameters": [ | 2623 "parameters": [ |
| 2535 {"type": "integer", "name": "tabId", "minimum": 0}, | 2624 {"type": "integer", "name": "tabId", "minimum": 0}, |
| 2536 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 2625 {"type": "function", "name": "callback", "optional": true, "parameters
": []} |
| 2537 ] | 2626 ] |
| 2538 } | 2627 } |
| 2539 ], | 2628 ], |
| 2540 "events": [] | 2629 "events": [] |
| 2541 } | 2630 } |
| 2542 ] | 2631 ] |
| OLD | NEW |