diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-10-07 12:20:45 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-10-07 12:20:45 -0700 |
commit | 928b5bfa7db23cddc93624a6ff31ff208e8b24bf (patch) | |
tree | 4d6dd5b5b085c4cf6000b4c0d51b6d53f11b5e06 /include | |
parent | 13297fddcbac3247d78f4c7e6408fa6dd8011d9f (diff) | |
parent | 56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7 (diff) | |
download | frameworks_base-928b5bfa7db23cddc93624a6ff31ff208e8b24bf.zip frameworks_base-928b5bfa7db23cddc93624a6ff31ff208e8b24bf.tar.gz frameworks_base-928b5bfa7db23cddc93624a6ff31ff208e8b24bf.tar.bz2 |
am 56364bcd: am 78d15acf: Merge "Make secure views tolerate IME overlays." into gingerbread
Merge commit '56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7'
* commit '56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7':
Make secure views tolerate IME overlays.
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/InputDispatcher.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h index 8d4654f..246df8f 100644 --- a/include/ui/InputDispatcher.h +++ b/include/ui/InputDispatcher.h @@ -212,8 +212,15 @@ struct InputWindow { int32_t ownerPid; int32_t ownerUid; - bool visibleFrameIntersects(const InputWindow* other) const; bool touchableAreaContainsPoint(int32_t x, int32_t y) const; + bool frameContainsPoint(int32_t x, int32_t y) const; + + /* Returns true if the window is of a trusted type that is allowed to silently + * overlay other windows for the purpose of implementing the secure views feature. + * Trusted overlays, such as IME windows, can partly obscure other windows without causing + * motion events to be delivered to them with AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED. + */ + bool isTrustedOverlay() const; }; @@ -973,7 +980,7 @@ private: bool shouldPokeUserActivityForCurrentInputTargetsLocked(); void pokeUserActivityLocked(nsecs_t eventTime, int32_t eventType); bool checkInjectionPermission(const InputWindow* window, const InjectionState* injectionState); - bool isWindowObscuredLocked(const InputWindow* window); + bool isWindowObscuredAtPointLocked(const InputWindow* window, int32_t x, int32_t y) const; bool isWindowFinishedWithPreviousInputLocked(const InputWindow* window); String8 getApplicationWindowLabelLocked(const InputApplication* application, const InputWindow* window); |