diff options
| author | Jeff Brown <jeffbrown@google.com> | 2010-09-01 17:01:00 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2010-09-08 11:50:55 -0700 |
| commit | 85a3176704b5bfbeece9bd928369fbb76eec7dc6 (patch) | |
| tree | 1a84f21c037b514c5b6717b106f5a9a2c4fd6c99 /libs/ui/Input.cpp | |
| parent | c0b4f6d30d962d75125628317b5f5ea622531dfe (diff) | |
| download | frameworks_base-85a3176704b5bfbeece9bd928369fbb76eec7dc6.zip frameworks_base-85a3176704b5bfbeece9bd928369fbb76eec7dc6.tar.gz frameworks_base-85a3176704b5bfbeece9bd928369fbb76eec7dc6.tar.bz2 | |
Add support for secure views.
Added the MotionEvent.FLAG_WINDOW_IS_OBSCURED flag which is set by the
input manager whenever another visible window is partly or wholly obscured
the target of a touch event so that applications can filter touches
accordingly.
Added a "filterTouchesWhenObscured" attribute to View which can be used to
enable filtering of touches when the view's window is obscured.
Change-Id: I936d9c85013fd2d77fb296a600528d30a29027d2
Diffstat (limited to 'libs/ui/Input.cpp')
| -rw-r--r-- | libs/ui/Input.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ui/Input.cpp b/libs/ui/Input.cpp index 4973cd8..811edaf 100644 --- a/libs/ui/Input.cpp +++ b/libs/ui/Input.cpp @@ -129,6 +129,7 @@ void MotionEvent::initialize( int32_t deviceId, int32_t source, int32_t action, + int32_t flags, int32_t edgeFlags, int32_t metaState, float xOffset, @@ -142,6 +143,7 @@ void MotionEvent::initialize( const PointerCoords* pointerCoords) { InputEvent::initialize(deviceId, source); mAction = action; + mFlags = flags; mEdgeFlags = edgeFlags; mMetaState = metaState; mXOffset = xOffset; |
