aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/CombinerChain.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-07-30 16:57:59 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-07-30 16:57:59 +0000
commit14d985bdbdfd4a237add1009912a6920573c1a9d (patch)
treeac0d5f6e58d3ce0fd124599a1ae347aea8a3a388 /java/src/com/android/inputmethod/event/CombinerChain.java
parent99e13e485a314615a6523794fbb26eecb6e67a74 (diff)
parent0f6807bfb44ca82e224921af1f16f18cdaa8b4e1 (diff)
downloadlatinime-14d985bdbdfd4a237add1009912a6920573c1a9d.tar.gz
latinime-14d985bdbdfd4a237add1009912a6920573c1a9d.tar.xz
latinime-14d985bdbdfd4a237add1009912a6920573c1a9d.zip
am 0f6807bf: Merge "[HW7] Introduce consumed events" into lmp-dev
* commit '0f6807bfb44ca82e224921af1f16f18cdaa8b4e1': [HW7] Introduce consumed events
Diffstat (limited to 'java/src/com/android/inputmethod/event/CombinerChain.java')
-rw-r--r--java/src/com/android/inputmethod/event/CombinerChain.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/event/CombinerChain.java b/java/src/com/android/inputmethod/event/CombinerChain.java
index 8c6b3d949..8ddc9e7d9 100644
--- a/java/src/com/android/inputmethod/event/CombinerChain.java
+++ b/java/src/com/android/inputmethod/event/CombinerChain.java
@@ -84,6 +84,8 @@ public class CombinerChain {
* Process an event through the combining chain, and return a processed event to apply.
* @param previousEvents the list of previous events in this composition
* @param newEvent the new event to process
+ * @return the processed event. It may be the same event, or a consumed event, or a completely
+ * new event. However it may never be null.
*/
public Event processEvent(final ArrayList<Event> previousEvents, final Event newEvent) {
final ArrayList<Event> modifiablePreviousEvents = new ArrayList<>(previousEvents);