aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/CombinerChain.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-07-29 09:31:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-25 11:19:20 +0000
commit3042452170e9d8bd2d80abd7514b40b1974741f7 (patch)
tree647e093edcf2be502330a599defa559be6b25450 /java/src/com/android/inputmethod/event/CombinerChain.java
parent6c3b0d3caa8af9b513573486c12bddacd5f03d03 (diff)
parent99aff0af98e66b1d8515225a103f5beb84d098b9 (diff)
downloadlatinime-3042452170e9d8bd2d80abd7514b40b1974741f7.tar.gz
latinime-3042452170e9d8bd2d80abd7514b40b1974741f7.tar.xz
latinime-3042452170e9d8bd2d80abd7514b40b1974741f7.zip
Merge "[HW7] Introduce consumed events" into lmp-dev
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);