OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "MessageSender", | 6 "id": "MessageSender", |
7 "type": "object", | 7 "type": "object", |
8 "description": "An object containing information about the script contex
t that sent a message or request.", | 8 "description": "An object containing information about the script contex
t that sent a message or request.", |
9 "properties": { | 9 "properties": { |
10 "tab": {"$ref": "Tab", "optional": true, "description":"This property
will <b>only</b> be present when the connection was opened from a tab or content
script."}, | 10 "tab": {"$ref": "Tab", "optional": true, "description":"This property
will <b>only</b> be present when the connection was opened from a tab or content
script."}, |
(...skipping 3353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3364 "selectionStart": { | 3364 "selectionStart": { |
3365 "description": "Position in the text that the selection starts a
t.", | 3365 "description": "Position in the text that the selection starts a
t.", |
3366 "type": "integer" | 3366 "type": "integer" |
3367 }, | 3367 }, |
3368 "selectionEnd": { | 3368 "selectionEnd": { |
3369 "description": "Position in the text that the selection ends at.
", | 3369 "description": "Position in the text that the selection ends at.
", |
3370 "type": "integer" | 3370 "type": "integer" |
3371 }, | 3371 }, |
3372 "segments": { | 3372 "segments": { |
3373 "description": "List of segments and their associated types.", | 3373 "description": "List of segments and their associated types.", |
3374 "type": "object", | 3374 "type": "array", |
3375 "optional": true, | 3375 "optional": true, |
3376 "properties": { | 3376 "items": { |
3377 "start": { | 3377 "type": "object", |
3378 "description": "Index of the character to start this segment
at", | 3378 "properties": { |
3379 "type": "integer" | 3379 "start": { |
3380 }, | 3380 "description": "Index of the character to start this segme
nt at", |
3381 "end": { | 3381 "type": "integer" |
3382 "description": "Index of the character to end this segment a
fter.", | 3382 }, |
3383 "type": "integer" | 3383 "end": { |
3384 }, | 3384 "description": "Index of the character to end this segment
after.", |
3385 "style": { | 3385 "type": "integer" |
3386 "description": "How to render this segment", | 3386 }, |
3387 "enum": ["underline", "doubleUnderline"], | 3387 "style": { |
3388 "type": "string" | 3388 "description": "How to render this segment", |
| 3389 "enum": ["underline", "doubleUnderline"], |
| 3390 "type": "string" |
| 3391 } |
3389 } | 3392 } |
3390 } | 3393 } |
3391 } | 3394 } |
3392 } | 3395 } |
3393 }, | 3396 }, |
3394 { | 3397 { |
3395 "type": "function", | 3398 "type": "function", |
3396 "name": "callback", | 3399 "name": "callback", |
3397 "optional": true, | 3400 "optional": true, |
3398 "description": "Called when the operation completes with a boolean i
ndicating if the text was accepted or not. On failure, chrome.extension.lastErro
r is set.", | 3401 "description": "Called when the operation completes with a boolean i
ndicating if the text was accepted or not. On failure, chrome.extension.lastErro
r is set.", |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3591 "description": "ID of the candidate to select.", | 3594 "description": "ID of the candidate to select.", |
3592 "type": "integer" | 3595 "type": "integer" |
3593 } | 3596 } |
3594 } | 3597 } |
3595 }, | 3598 }, |
3596 { | 3599 { |
3597 "type": "function", | 3600 "type": "function", |
3598 "name": "callback", | 3601 "name": "callback", |
3599 "optional": true, | 3602 "optional": true, |
3600 "description": "Called when the operation completes", | 3603 "description": "Called when the operation completes", |
3601 "parameters": [] | 3604 "parameters": [ |
| 3605 { |
| 3606 "name": "success", |
| 3607 "type": "boolean" |
| 3608 } |
| 3609 ] |
3602 } | 3610 } |
3603 ] | 3611 ] |
3604 }, | 3612 }, |
3605 { | 3613 { |
3606 "name": "setMenuItems", | 3614 "name": "setMenuItems", |
3607 "type": "function", | 3615 "type": "function", |
3608 "description": "Adds the provided menu items to the language menu when t
his IME is active.", | 3616 "description": "Adds the provided menu items to the language menu when t
his IME is active.", |
3609 "parameters": [ | 3617 "parameters": [ |
3610 { | 3618 { |
3611 "name": "parameters", | 3619 "name": "parameters", |
(...skipping 5620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9232 } | 9240 } |
9233 } | 9241 } |
9234 } | 9242 } |
9235 ] | 9243 ] |
9236 } | 9244 } |
9237 ] | 9245 ] |
9238 } | 9246 } |
9239 ] | 9247 ] |
9240 } | 9248 } |
9241 ] | 9249 ] |
OLD | NEW |