aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/Event.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2014-07-30 00:53:24 +0000
committerKen Wakasa <kwakasa@google.com>2014-07-30 00:53:24 +0000
commitbfa6f9533ca0d7ebb2650639765c77a77f37e0d9 (patch)
treecefe60ae9915562451180337c3ff5bad606e2f51 /java/src/com/android/inputmethod/event/Event.java
parent99aff0af98e66b1d8515225a103f5beb84d098b9 (diff)
downloadlatinime-bfa6f9533ca0d7ebb2650639765c77a77f37e0d9.tar.gz
latinime-bfa6f9533ca0d7ebb2650639765c77a77f37e0d9.tar.xz
latinime-bfa6f9533ca0d7ebb2650639765c77a77f37e0d9.zip
Revert "[HW7] Introduce consumed events"
This reverts commit 99aff0af98e66b1d8515225a103f5beb84d098b9. Reverting due to a few critical bugs and unit test failures. Change-Id: Id41d802981d079f17134a03cc30ab36a3cdd4ac1
Diffstat (limited to 'java/src/com/android/inputmethod/event/Event.java')
-rw-r--r--java/src/com/android/inputmethod/event/Event.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/java/src/com/android/inputmethod/event/Event.java b/java/src/com/android/inputmethod/event/Event.java
index 98c827423..d257441e0 100644
--- a/java/src/com/android/inputmethod/event/Event.java
+++ b/java/src/com/android/inputmethod/event/Event.java
@@ -67,8 +67,6 @@ public class Event {
final private static int FLAG_DEAD = 0x1;
// This event is coming from a key repeat, software or hardware.
final private static int FLAG_REPEAT = 0x2;
- // This event has already been consumed.
- final private static int FLAG_CONSUMED = 0x4;
final private int mEventType; // The type of event - one of the constants above
// The code point associated with the event, if relevant. This is a unicode code point, and
@@ -221,17 +219,6 @@ public class Event {
null /* next */);
}
- /**
- * Creates an event identical to the passed event, but that has already been consumed.
- * @param source the event to copy the properties of.
- * @return an identical event marked as consumed.
- */
- public static Event createConsumedEvent(final Event source) {
- return new Event(source.mEventType, source.mText, source.mCodePoint, source.mKeyCode,
- source.mX, source.mY, source.mSuggestedWordInfo, source.mFlags | FLAG_CONSUMED,
- source.mNextEvent);
- }
-
public static Event createNotHandledEvent() {
return new Event(EVENT_TYPE_NOT_HANDLED, null /* text */, NOT_A_CODE_POINT, NOT_A_KEY_CODE,
Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE,
@@ -254,8 +241,6 @@ public class Event {
return 0 != (FLAG_REPEAT & mFlags);
}
- public boolean isConsumed() { return 0 != (FLAG_CONSUMED & mFlags); }
-
// Returns whether this is a fake key press from the suggestion strip. This happens with
// punctuation signs selected from the suggestion strip.
public boolean isSuggestionStripPress() {