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

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: Remove extra function 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 { 387 {
388 "type": "function", 388 "type": "function",
389 "name": "callback", 389 "name": "callback",
390 "optional": true, 390 "optional": true,
391 "description": "Called when the operation completes", 391 "description": "Called when the operation completes",
392 "parameters": [] 392 "parameters": []
393 } 393 }
394 ] 394 ]
395 }, 395 },
396 { 396 {
397 "name": "eventHandled", 397 "name": "keyEventHandled",
398 "nodoc": true,
399 "type": "function", 398 "type": "function",
400 "description": "Used internally to send a response for onKeyEvent.", 399 "description": "Indicates that the key event received by onKeyEvent is h andled. This should only be called if the onKeyEvent listener is asynchronous." ,
401 "parameters": [ 400 "parameters": [
402 {"type": "string", "name": "requestId"}, 401 {"type": "string", "name": "requestId", "description": "Request id of the event that was handled. This should come from keyEvent.requestId"},
403 {"type": "boolean", "name": "response"} 402 {"type": "boolean", "name": "response", "description": "True if the ke ystroke was handled, false if not"}
404 ] 403 ]
405 } 404 }
406 ], 405 ],
407 "events": [ 406 "events": [
408 { 407 {
409 "name": "onActivate", 408 "name": "onActivate",
410 "type": "function", 409 "type": "function",
411 "description": "This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events.", 410 "description": "This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events.",
412 "parameters": [ 411 "parameters": [
413 { 412 {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 "type": "string", 479 "type": "string",
481 "name": "engineID", 480 "name": "engineID",
482 "description": "ID of the engine receiving the event" 481 "description": "ID of the engine receiving the event"
483 }, 482 },
484 { 483 {
485 "$ref": "KeyboardEvent", 484 "$ref": "KeyboardEvent",
486 "name": "keyData", 485 "name": "keyData",
487 "description": "Data on the key event" 486 "description": "Data on the key event"
488 } 487 }
489 ], 488 ],
489 "extraParameters": [
490 {
491 "type": "array",
492 "optional": true,
493 "name": "extraInfoSpec",
494 "description": "Array of extra information that should be passed to the listener function.",
495 "items": {
496 "type": "string",
497 "enum": ["async"]
498 }
499 }
500 ],
490 "returns": { 501 "returns": {
491 "type": "boolean", 502 "type": "boolean",
492 "description": "True if the keystroke was handled, false if not" 503 "description": "True if the keystroke was handled, false if not",
504 "optional": true
493 } 505 }
494 }, 506 },
495 { 507 {
496 "name": "onCandidateClicked", 508 "name": "onCandidateClicked",
497 "type": "function", 509 "type": "function",
498 "description": "This event is sent if this extension owns the active IME .", 510 "description": "This event is sent if this extension owns the active IME .",
499 "parameters": [ 511 "parameters": [
500 { 512 {
501 "type": "string", 513 "type": "string",
502 "name": "engineID", 514 "name": "engineID",
(...skipping 25 matching lines...) Expand all
528 { 540 {
529 "type": "string", 541 "type": "string",
530 "name": "name", 542 "name": "name",
531 "description": "Name of the MenuItem which was activated" 543 "description": "Name of the MenuItem which was activated"
532 } 544 }
533 ] 545 ]
534 } 546 }
535 ] 547 ]
536 } 548 }
537 ] 549 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698