aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/CombinerChain.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-07-30 04:13:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-24 16:04:26 +0000
commit0f6807bfb44ca82e224921af1f16f18cdaa8b4e1 (patch)
treed2a36bd74683e29dcdd3f2cae9fd1766c8be3293 /java/src/com/android/inputmethod/event/CombinerChain.java
parentbf2a32100568a01d25edb56d3d9d46b5f5d2c0eb (diff)
parent8e38b12e9ccc48bcb18b2eeec4d53d19cf7a29c9 (diff)
downloadlatinime-0f6807bfb44ca82e224921af1f16f18cdaa8b4e1.tar.gz
latinime-0f6807bfb44ca82e224921af1f16f18cdaa8b4e1.tar.xz
latinime-0f6807bfb44ca82e224921af1f16f18cdaa8b4e1.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);