summaryrefslogtreecommitdiffstats
path: root/include/ui/InputTransport.h
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-06-29 19:20:40 -0700
committerDianne Hackborn <hackbod@google.com>2010-06-30 10:49:40 -0700
commit3c80a4a044865bdf1289c7896baffa1c082d835c (patch)
tree557c89a685e672e44f90f55660da1f989d00a113 /include/ui/InputTransport.h
parent92dbad8ab0c8e242c4c3e52c339ed3296ae7901c (diff)
downloadframeworks_base-3c80a4a044865bdf1289c7896baffa1c082d835c.zip
frameworks_base-3c80a4a044865bdf1289c7896baffa1c082d835c.tar.gz
frameworks_base-3c80a4a044865bdf1289c7896baffa1c082d835c.tar.bz2
Implement default key handling for native code.
The native code now maintains a list of all keys that may use default handling. If the app finishes one of these keys without handling it, the key will be passed back off to Java for default treatment. Change-Id: I6a842a0d728eeafa4de7142fae573f8c11099e18
Diffstat (limited to 'include/ui/InputTransport.h')
-rw-r--r--include/ui/InputTransport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ui/InputTransport.h b/include/ui/InputTransport.h
index 4e76051..2dfe2a8 100644
--- a/include/ui/InputTransport.h
+++ b/include/ui/InputTransport.h
@@ -339,12 +339,14 @@ public:
explicit AInputQueue(const android::sp<android::InputChannel>& channel);
/* Destroys the consumer and releases its input channel. */
- ~AInputQueue();
+ virtual ~AInputQueue();
inline android::InputConsumer& getConsumer() { return mConsumer; }
android::status_t consume(android::InputEvent** event);
+ virtual void doDefaultKey(android::KeyEvent* keyEvent) = 0;
+
private:
android::InputConsumer mConsumer;
android::PreallocatedInputEventFactory mInputEventFactory;