Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: chrome/common/extensions/api/input_ime.json

Issue 1528483002: Add chrome.input.ime.activate and chrome.input.ime.deactivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Devlin's comments. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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",
Devlin 2016/01/13 18:22:59 Could we instead just have one function, setActive
Azure Wei 2016/01/14 14:03:48 'setActive' is little wired since we don't have 'g
Devlin 2016/01/15 22:06:02 I don't really think setActive is weird, and we tr
548 "type": "function",
549 "description": "Activates the IME extension itself, so that it can recei ve events.",
550 "platforms": ["win", "linux"],
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 IME extension itself, so that it cannot receive events.",
565 "platforms": ["win", "linux"],
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
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 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698