diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-09-27 14:52:15 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-09-27 16:10:17 -0700 |
commit | e65041225ec0bbc3d67a3b70cdc6d598a5760043 (patch) | |
tree | 8eb92db22f21de0a2843aa39b9988d15e00233d9 /include/ui | |
parent | 464fb74e28b6d76d5e741abcdbb714eea2d9b4d1 (diff) | |
download | frameworks_base-e65041225ec0bbc3d67a3b70cdc6d598a5760043.zip frameworks_base-e65041225ec0bbc3d67a3b70cdc6d598a5760043.tar.gz frameworks_base-e65041225ec0bbc3d67a3b70cdc6d598a5760043.tar.bz2 |
Add support for transferring touch focus.
Prerequisite for drag and drop.
Change-Id: Iedbe93ed0f3e1c4083130fe66b4ba06d416afce0
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/InputDispatcher.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h index cc16012..8d4654f 100644 --- a/include/ui/InputDispatcher.h +++ b/include/ui/InputDispatcher.h @@ -355,6 +355,14 @@ public: */ virtual void setInputDispatchMode(bool enabled, bool frozen) = 0; + /* Transfers touch focus from the window associated with one channel to the + * window associated with the other channel. + * + * Returns true on success. False if the window did not actually have touch focus. + */ + virtual bool transferTouchFocus(const sp<InputChannel>& fromChannel, + const sp<InputChannel>& toChannel) = 0; + /* Registers or unregister input channels that may be used as targets for input events. * If monitor is true, the channel will receive a copy of all input events. * @@ -409,6 +417,9 @@ public: virtual void setFocusedApplication(const InputApplication* inputApplication); virtual void setInputDispatchMode(bool enabled, bool frozen); + virtual bool transferTouchFocus(const sp<InputChannel>& fromChannel, + const sp<InputChannel>& toChannel); + virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel, bool monitor); virtual status_t unregisterInputChannel(const sp<InputChannel>& inputChannel); |