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 | af30ff6020990427e0e0e73e4ac4a85a6f26a8ff (patch) | |
tree | cd1ecd559519bdfb59d347bf969fef364be0ae28 /include/ui/Input.h | |
parent | d71a3160ae23c4a7af59360c0c68b6e2f8020ac9 (diff) | |
download | frameworks_native-af30ff6020990427e0e0e73e4ac4a85a6f26a8ff.zip frameworks_native-af30ff6020990427e0e0e73e4ac4a85a6f26a8ff.tar.gz frameworks_native-af30ff6020990427e0e0e73e4ac4a85a6f26a8ff.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 'include/ui/Input.h')
-rw-r--r-- | include/ui/Input.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index 3fa825f..b587e94 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -78,6 +78,11 @@ enum { POLICY_FLAG_RAW_MASK = 0x0000ffff, + /* These flags are set by the input dispatcher. */ + + // Indicates that the input event was injected. + POLICY_FLAG_INJECTED = 0x01000000, + /* These flags are set by the input reader policy as it intercepts each event. */ // Indicates that the screen was off when the event was received and the event @@ -225,6 +230,8 @@ public: inline int32_t getAction() const { return mAction; } + inline int32_t getFlags() const { return mFlags; } + inline int32_t getEdgeFlags() const { return mEdgeFlags; } inline int32_t getMetaState() const { return mMetaState; } @@ -343,6 +350,7 @@ public: int32_t deviceId, int32_t source, int32_t action, + int32_t flags, int32_t edgeFlags, int32_t metaState, float xOffset, @@ -370,6 +378,7 @@ public: private: int32_t mAction; + int32_t mFlags; int32_t mEdgeFlags; int32_t mMetaState; float mXOffset; |