From 8e38b12e9ccc48bcb18b2eeec4d53d19cf7a29c9 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 1 Jul 2014 13:07:47 +0900 Subject: [HW7] Introduce consumed events Change-Id: I692c35b8e701d5a84500b949884472545b1f424d --- java/src/com/android/inputmethod/event/CombinerChain.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'java/src/com/android/inputmethod/event/CombinerChain.java') 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 previousEvents, final Event newEvent) { final ArrayList modifiablePreviousEvents = new ArrayList<>(previousEvents); -- cgit v1.2.3-83-g751a