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

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: Fix formatting. 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 "text": { 694 "text": {
695 "type": "string", 695 "type": "string",
696 "description": "The text around cursor." 696 "description": "The text around cursor."
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 the selection. This value indicates the number of characters not included in the surrounding text."
Shu Chen 2015/08/12 07:23:15 Please describe clearly for the difference between
rsadam 2015/08/12 21:46:52 Done.
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

Powered by Google App Engine
This is Rietveld 408576698