aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LastComposedWord.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-01-26 16:05:09 +0900
committerJean Chalard <jchalard@google.com>2012-01-26 17:49:55 +0900
commit1f8fc62ccb5018716457dc309ab11ad3e1506ad1 (patch)
tree1351a2fd9eba0f4b72227d37eac5090a5044d82e /java/src/com/android/inputmethod/latin/LastComposedWord.java
parent95eeb2df63edf11d9500b9ff48b0b13a94712ba6 (diff)
downloadlatinime-1f8fc62ccb5018716457dc309ab11ad3e1506ad1.tar.gz
latinime-1f8fc62ccb5018716457dc309ab11ad3e1506ad1.tar.xz
latinime-1f8fc62ccb5018716457dc309ab11ad3e1506ad1.zip
Add useful information to LastComposedWord (A2)
Change-Id: Idf47f2e2bdd1d6394fc4b1ab7df28d64a808da1e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LastComposedWord.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LastComposedWord.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LastComposedWord.java b/java/src/com/android/inputmethod/latin/LastComposedWord.java
index dcecdb3b5..612ed424d 100644
--- a/java/src/com/android/inputmethod/latin/LastComposedWord.java
+++ b/java/src/com/android/inputmethod/latin/LastComposedWord.java
@@ -16,6 +16,8 @@
package com.android.inputmethod.latin;
+import java.util.ArrayList;
+
/**
* This class encapsulates data about a word previously composed, but that has been
* committed already. This is used for resuming suggestion, and cancel auto-correction.
@@ -37,8 +39,19 @@ public class LastComposedWord {
public static final int COMMIT_TYPE_CANCEL_AUTO_CORRECT = 3;
public final int mType;
+ public final ArrayList<int[]> mCodes;
+ public final int[] mXCoordinates;
+ public final int[] mYCoordinates;
+ public final String mTypedWord;
+ public final String mAutoCorrection;
- public LastComposedWord(final int type) {
+ public LastComposedWord(final int type, final ArrayList<int[]> codes, final int[] xCoordinates,
+ final int[] yCoordinates, final String typedWord, final String autoCorrection) {
mType = type;
+ mCodes = codes;
+ mXCoordinates = xCoordinates;
+ mYCoordinates = yCoordinates;
+ mTypedWord = typedWord;
+ mAutoCorrection = autoCorrection;
}
}