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": "input.ime", | 7 "namespace": "input.ime", |
8 "platforms": ["chromeos"], | 8 "platforms": ["chromeos"], |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 "description": "ID of the engine receiving the event" | 428 "description": "ID of the engine receiving the event" |
429 } | 429 } |
430 ] | 430 ] |
431 }, | 431 }, |
432 { | 432 { |
433 "name": "onFocus", | 433 "name": "onFocus", |
434 "type": "function", | 434 "type": "function", |
435 "description": "This event is sent when focus enters a text box. It is s
ent to all extensions that are listening to this event, and enabled by the user.
", | 435 "description": "This event is sent when focus enters a text box. It is s
ent to all extensions that are listening to this event, and enabled by the user.
", |
436 "parameters": [ | 436 "parameters": [ |
437 { | 437 { |
438 "type": "InputContext", | 438 "$ref": "InputContext", |
439 "name": "context", | 439 "name": "context", |
440 "description": "Describes the text field that has acquired focus." | 440 "description": "Describes the text field that has acquired focus." |
441 } | 441 } |
442 ] | 442 ] |
443 }, | 443 }, |
444 { | 444 { |
445 "name": "onBlur", | 445 "name": "onBlur", |
446 "type": "function", | 446 "type": "function", |
447 "description": "This event is sent when focus leaves a text box. It is s
ent to all extensions that are listening to this event, and enabled by the user.
", | 447 "description": "This event is sent when focus leaves a text box. It is s
ent to all extensions that are listening to this event, and enabled by the user.
", |
448 "parameters": [ | 448 "parameters": [ |
449 { | 449 { |
450 "type": "integer", | 450 "type": "integer", |
451 "name": "contextID", | 451 "name": "contextID", |
452 "description": "The ID of the text field that has lost focus. The ID
is invalid after this call" | 452 "description": "The ID of the text field that has lost focus. The ID
is invalid after this call" |
453 } | 453 } |
454 ] | 454 ] |
455 }, | 455 }, |
456 { | 456 { |
457 "name": "onInputContextUpdate", | 457 "name": "onInputContextUpdate", |
458 "type": "function", | 458 "type": "function", |
459 "description": "This event is sent when the properties of the current In
putContext change, such as the the type. It is sent to all extensions that are l
istening to this event, and enabled by the user.", | 459 "description": "This event is sent when the properties of the current In
putContext change, such as the the type. It is sent to all extensions that are l
istening to this event, and enabled by the user.", |
460 "parameters": [ | 460 "parameters": [ |
461 { | 461 { |
462 "type": "InputContext", | 462 "$ref": "InputContext", |
463 "name": "context", | 463 "name": "context", |
464 "description": "An InputContext object describing the text field tha
t has changed." | 464 "description": "An InputContext object describing the text field tha
t has changed." |
465 } | 465 } |
466 ] | 466 ] |
467 }, | 467 }, |
468 { | 468 { |
469 "name": "onKeyEvent", | 469 "name": "onKeyEvent", |
470 "type": "function", | 470 "type": "function", |
471 "description": "This event is sent if this extension owns the active IME
.", | 471 "description": "This event is sent if this extension owns the active IME
.", |
472 "options": { | 472 "options": { |
473 "supportsFilters": false, | 473 "supportsFilters": false, |
474 "supportsListeners": true, | 474 "supportsListeners": true, |
475 "supportsRules": false, | 475 "supportsRules": false, |
476 "maxListeners": 1 | 476 "maxListeners": 1 |
477 }, | 477 }, |
478 "parameters": [ | 478 "parameters": [ |
479 { | 479 { |
480 "type": "string", | 480 "type": "string", |
481 "name": "engineID", | 481 "name": "engineID", |
482 "description": "ID of the engine receiving the event" | 482 "description": "ID of the engine receiving the event" |
483 }, | 483 }, |
484 { | 484 { |
485 "type": "KeyboardEvent", | 485 "$ref": "KeyboardEvent", |
486 "name": "keyData", | 486 "name": "keyData", |
487 "description": "Data on the key event" | 487 "description": "Data on the key event" |
488 } | 488 } |
489 ], | 489 ], |
490 "returns": { | 490 "returns": { |
491 "type": "boolean", | 491 "type": "boolean", |
492 "description": "True if the keystroke was handled, false if not" | 492 "description": "True if the keystroke was handled, false if not" |
493 } | 493 } |
494 }, | 494 }, |
495 { | 495 { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 { | 528 { |
529 "type": "string", | 529 "type": "string", |
530 "name": "name", | 530 "name": "name", |
531 "description": "Name of the MenuItem which was activated" | 531 "description": "Name of the MenuItem which was activated" |
532 } | 532 } |
533 ] | 533 ] |
534 } | 534 } |
535 ] | 535 ] |
536 } | 536 } |
537 ] | 537 ] |
OLD | NEW |