aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/InputTransaction.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-06 03:55:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-06 03:55:00 +0000
commit505453093443ce60ee4366e1343098a0e3244d36 (patch)
tree22519679355961b8ee7a4c11acfe6c5708f89854 /java/src/com/android/inputmethod/event/InputTransaction.java
parentdbe531efa8f369d8630b06c85bc190ab6d298e82 (diff)
parent29881854bc5a625d01bad8c678ac10e6d1877e5f (diff)
downloadlatinime-505453093443ce60ee4366e1343098a0e3244d36.tar.gz
latinime-505453093443ce60ee4366e1343098a0e3244d36.tar.xz
latinime-505453093443ce60ee4366e1343098a0e3244d36.zip
Merge "[IL122] Put the code, x and y in the transaction"
Diffstat (limited to 'java/src/com/android/inputmethod/event/InputTransaction.java')
-rw-r--r--java/src/com/android/inputmethod/event/InputTransaction.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/event/InputTransaction.java b/java/src/com/android/inputmethod/event/InputTransaction.java
index 5e046a80e..d770c5af4 100644
--- a/java/src/com/android/inputmethod/event/InputTransaction.java
+++ b/java/src/com/android/inputmethod/event/InputTransaction.java
@@ -30,12 +30,25 @@ public class InputTransaction {
public static final int SHIFT_UPDATE_LATER = 2;
// Initial conditions
+ // If the key inserts a code point, mKeyCode is always equal to the code points. Otherwise,
+ // it's always a code that may not be a code point, typically a negative number.
+ public final int mKeyCode;
+ public final int mX; // Pressed x-coordinate, or one of Constants.*_COORDINATE
+ public final int mY; // Pressed y-coordinate, or one of Constants.*_COORDINATE
+ public final long mTimestamp;
+ public final int mSpaceState;
public final int mShiftState;
// Outputs
private int mRequiredShiftUpdate = SHIFT_NO_UPDATE;
- public InputTransaction(final int shiftState) {
+ public InputTransaction(final int keyCode, final int x, final int y, final long timestamp,
+ final int spaceState, final int shiftState) {
+ mKeyCode = keyCode;
+ mX = x;
+ mY = y;
+ mTimestamp = timestamp;
+ mSpaceState = spaceState;
mShiftState = shiftState;
}