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

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

Issue 11299270: Add a parameter that specifies whether onKeyEvent is asynchronous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fix Created 8 years 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 | Annotate | Revision Log
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 "platforms": ["chromeos"], 8 "platforms": ["chromeos"],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 { 396 {
397 "type": "function", 397 "type": "function",
398 "name": "callback", 398 "name": "callback",
399 "optional": true, 399 "optional": true,
400 "description": "Called when the operation completes", 400 "description": "Called when the operation completes",
401 "parameters": [] 401 "parameters": []
402 } 402 }
403 ] 403 ]
404 }, 404 },
405 { 405 {
406 "name": "eventHandled", 406 "name": "keyEventHandled",
407 "nodoc": true,
408 "type": "function", 407 "type": "function",
409 "description": "Used internally to send a response for onKeyEvent.", 408 "description": "Indicates that the key event received by onKeyEvent is h andled. This should only be called if the onKeyEvent listener is asynchronous." ,
410 "parameters": [ 409 "parameters": [
411 {"type": "string", "name": "requestId"}, 410 {"type": "string", "name": "requestId", "description": "Request id of the event that was handled. This should come from keyEvent.requestId"},
412 {"type": "boolean", "name": "response"} 411 {"type": "boolean", "name": "response", "description": "True if the ke ystroke was handled, false if not"}
413 ] 412 ]
414 } 413 }
415 ], 414 ],
416 "events": [ 415 "events": [
417 { 416 {
418 "name": "onActivate", 417 "name": "onActivate",
419 "type": "function", 418 "type": "function",
420 "description": "This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events.", 419 "description": "This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events.",
421 "parameters": [ 420 "parameters": [
422 { 421 {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 "type": "string", 488 "type": "string",
490 "name": "engineID", 489 "name": "engineID",
491 "description": "ID of the engine receiving the event" 490 "description": "ID of the engine receiving the event"
492 }, 491 },
493 { 492 {
494 "$ref": "KeyboardEvent", 493 "$ref": "KeyboardEvent",
495 "name": "keyData", 494 "name": "keyData",
496 "description": "Data on the key event" 495 "description": "Data on the key event"
497 } 496 }
498 ], 497 ],
498 "extraParameters": [
499 {
500 "type": "array",
501 "optional": true,
502 "name": "extraInfoSpec",
503 "description": "Array of extra information that should be passed to the listener function.",
504 "items": {
505 "type": "string",
506 "enum": ["async"]
507 }
508 }
509 ],
499 "returns": { 510 "returns": {
500 "type": "boolean", 511 "type": "boolean",
501 "description": "True if the keystroke was handled, false if not" 512 "description": "True if the keystroke was handled, false if not",
513 "optional": true
502 } 514 }
503 }, 515 },
504 { 516 {
505 "name": "onCandidateClicked", 517 "name": "onCandidateClicked",
506 "type": "function", 518 "type": "function",
507 "description": "This event is sent if this extension owns the active IME .", 519 "description": "This event is sent if this extension owns the active IME .",
508 "parameters": [ 520 "parameters": [
509 { 521 {
510 "type": "string", 522 "type": "string",
511 "name": "engineID", 523 "name": "engineID",
(...skipping 25 matching lines...) Expand all
537 { 549 {
538 "type": "string", 550 "type": "string",
539 "name": "name", 551 "name": "name",
540 "description": "Name of the MenuItem which was activated" 552 "description": "Name of the MenuItem which was activated"
541 } 553 }
542 ] 554 ]
543 } 555 }
544 ] 556 ]
545 } 557 }
546 ] 558 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698