aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Dictionary.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-04-17 12:43:53 +0900
committerJean Chalard <jchalard@google.com>2012-04-17 12:43:53 +0900
commitac27e4544b5b5ff7b4f365a4bde5c288d511ae13 (patch)
tree6f16927dea89c7e438aa5ee46d75dfd09b9a5d25 /java/src/com/android/inputmethod/latin/Dictionary.java
parent9c2a96aa6cb6d8c1f7a559dbd7051302cfc6150b (diff)
downloadlatinime-ac27e4544b5b5ff7b4f365a4bde5c288d511ae13.tar.gz
latinime-ac27e4544b5b5ff7b4f365a4bde5c288d511ae13.tar.xz
latinime-ac27e4544b5b5ff7b4f365a4bde5c288d511ae13.zip
Pass the previous word to getSuggestions
This is a preparative change to bug#6313806 Change-Id: I1be9ec49b21005c1f45ce459fa93712bc74ef3f0
Diffstat (limited to '')
-rw-r--r--java/src/com/android/inputmethod/latin/Dictionary.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Dictionary.java b/java/src/com/android/inputmethod/latin/Dictionary.java
index 9d26a2343..a405aa409 100644
--- a/java/src/com/android/inputmethod/latin/Dictionary.java
+++ b/java/src/com/android/inputmethod/latin/Dictionary.java
@@ -61,11 +61,13 @@ public abstract class Dictionary {
* Searches for words in the dictionary that match the characters in the composer. Matched
* words are added through the callback object.
* @param composer the key sequence to match
+ * @param prevWordForBigrams the previous word, or null if none
* @param callback the callback object to send matched words to as possible candidates
* @param proximityInfo the object for key proximity. May be ignored by some implementations.
* @see WordCallback#addWord(char[], int, int, int, int, int)
*/
- abstract public void getWords(final WordComposer composer, final WordCallback callback,
+ abstract public void getWords(final WordComposer composer,
+ final CharSequence prevWordForBigrams, final WordCallback callback,
final ProximityInfo proximityInfo);
/**