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

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

Issue 1282823002: Add text offset to OnSurroundingTextChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 "name": "engineID", 686 "name": "engineID",
687 "description": "ID of the engine receiving the event" 687 "description": "ID of the engine receiving the event"
688 }, 688 },
689 { 689 {
690 "type": "object", 690 "type": "object",
691 "name": "surroundingInfo", 691 "name": "surroundingInfo",
692 "description": "The surrounding information.", 692 "description": "The surrounding information.",
693 "properties": { 693 "properties": {
694 "text": { 694 "text": {
695 "type": "string", 695 "type": "string",
696 "description": "The text around cursor." 696 "description": "The text around the cursor. This is only a subse t of all text in the input field."
697 }, 697 },
698 "focus": { 698 "focus": {
699 "type": "integer", 699 "type": "integer",
700 "description": "The ending position of the selection. This value indicates caret position if there is no selection." 700 "description": "The ending position of the selection. This value indicates caret position if there is no selection."
701 }, 701 },
702 "anchor": { 702 "anchor": {
703 "type": "integer", 703 "type": "integer",
704 "description": "The beginning position of the selection. This va lue indicates caret position if is no selection." 704 "description": "The beginning position of the selection. This va lue indicates caret position if there is no selection."
705 },
706 "offset": {
707 "type": "integer",
708 "description": "The offset position of <code>text</code>. Since <code>text</code> only includes a subset of text around the cursor, offset indic ates the absolute position of the first character of <code>text</code>."
705 } 709 }
706 } 710 }
707 } 711 }
708 ] 712 ]
709 }, 713 },
710 { 714 {
711 "name": "onReset", 715 "name": "onReset",
712 "type": "function", 716 "type": "function",
713 "description": "This event is sent when chrome terminates ongoing text i nput session.", 717 "description": "This event is sent when chrome terminates ongoing text i nput session.",
714 "parameters": [ 718 "parameters": [
715 { 719 {
716 "type": "string", 720 "type": "string",
717 "name": "engineID", 721 "name": "engineID",
718 "description": "ID of the engine receiving the event" 722 "description": "ID of the engine receiving the event"
719 } 723 }
720 ] 724 ]
721 } 725 }
722 ] 726 ]
723 } 727 }
724 ] 728 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.cc ('k') | chrome/test/data/extensions/input_ime/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698