Chromium Code Reviews| 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 "description": "Use the <code>chrome.input.ime</code> API to implement a cus tom IME for Chrome OS. This allows your extension to handle keystrokes, set the composition, and manage the candidate window.", | 8 "description": "Use the <code>chrome.input.ime</code> API to implement a cus tom IME for Chrome OS. This allows your extension to handle keystrokes, set the composition, and manage the candidate window.", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 535 }, | 535 }, |
| 536 { | 536 { |
| 537 "name": "keyEventHandled", | 537 "name": "keyEventHandled", |
| 538 "type": "function", | 538 "type": "function", |
| 539 "description": "Indicates that the key event received by onKeyEvent is h andled. This should only be called if the onKeyEvent listener is asynchronous." , | 539 "description": "Indicates that the key event received by onKeyEvent is h andled. This should only be called if the onKeyEvent listener is asynchronous." , |
| 540 "platforms": ["chromeos", "win", "linux"], | 540 "platforms": ["chromeos", "win", "linux"], |
| 541 "parameters": [ | 541 "parameters": [ |
| 542 {"type": "string", "name": "requestId", "description": "Request id of the event that was handled. This should come from keyEvent.requestId"}, | 542 {"type": "string", "name": "requestId", "description": "Request id of the event that was handled. This should come from keyEvent.requestId"}, |
| 543 {"type": "boolean", "name": "response", "description": "True if the ke ystroke was handled, false if not"} | 543 {"type": "boolean", "name": "response", "description": "True if the ke ystroke was handled, false if not"} |
| 544 ] | 544 ] |
| 545 }, | |
| 546 { | |
| 547 "name": "activate", | |
| 548 "type": "function", | |
| 549 "description": "Activates the self IME extension, so that it can receive events.", | |
|
Devlin
2016/01/11 21:48:34
what does "the self IME extension" mean?
Azure Wei
2016/01/13 02:28:10
I've changed it with 'Activates the IME extension
Devlin
2016/01/13 18:22:59
I would just remove the "itself", too. Just "Acti
Azure Wei
2016/01/14 14:03:48
Done.
| |
| 550 "platforms": ["win", "linux_desktop"], | |
| 551 "parameters": [ | |
| 552 { | |
| 553 "type": "function", | |
| 554 "name": "callback", | |
| 555 "optional": true, | |
| 556 "description": "Called when the operation completes.", | |
| 557 "parameters": [] | |
| 558 } | |
| 559 ] | |
| 560 }, | |
| 561 { | |
| 562 "name": "deactivate", | |
| 563 "type": "function", | |
| 564 "description": "Deactivates the self IME extension, so that it cannot re ceive events.", | |
| 565 "platforms": ["win", "linux_desktop"], | |
| 566 "parameters": [ | |
| 567 { | |
| 568 "type": "function", | |
| 569 "name": "callback", | |
| 570 "optional": true, | |
| 571 "description": "Called when the operation completes.", | |
| 572 "parameters": [] | |
| 573 } | |
| 574 ] | |
| 545 } | 575 } |
| 546 ], | 576 ], |
| 547 "events": [ | 577 "events": [ |
| 548 { | 578 { |
| 549 "name": "onActivate", | 579 "name": "onActivate", |
| 550 "type": "function", | 580 "type": "function", |
| 551 "description": "This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events.", | 581 "description": "This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events.", |
| 552 "platforms": ["chromeos"], | 582 "platforms": ["chromeos"], |
| 553 "parameters": [ | 583 "parameters": [ |
| 554 { | 584 { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 741 { | 771 { |
| 742 "type": "string", | 772 "type": "string", |
| 743 "name": "engineID", | 773 "name": "engineID", |
| 744 "description": "ID of the engine receiving the event" | 774 "description": "ID of the engine receiving the event" |
| 745 } | 775 } |
| 746 ] | 776 ] |
| 747 } | 777 } |
| 748 ] | 778 ] |
| 749 } | 779 } |
| 750 ] | 780 ] |
| OLD | NEW |