aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/CombinerChain.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-07-01 13:07:47 +0900
committerJean Chalard <jchalard@google.com>2014-07-30 11:37:19 +0900
commit8e38b12e9ccc48bcb18b2eeec4d53d19cf7a29c9 (patch)
treeef259a541bf20b2dc41f2fdc61c6e642cdd73a47 /java/src/com/android/inputmethod/event/CombinerChain.java
parent7196566d4f2048a4160acc6271ccb26c73d6fcd6 (diff)
downloadlatinime-8e38b12e9ccc48bcb18b2eeec4d53d19cf7a29c9.tar.gz
latinime-8e38b12e9ccc48bcb18b2eeec4d53d19cf7a29c9.tar.xz
latinime-8e38b12e9ccc48bcb18b2eeec4d53d19cf7a29c9.zip
[HW7] Introduce consumed events
Change-Id: I692c35b8e701d5a84500b949884472545b1f424d
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);