summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-05 13:17:04 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-05 13:17:04 -0700
commit56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7 (patch)
tree0ae7fc29d1870e7b13694c7245df6d9ad19b2db3 /include/ui
parentf2cc2e522177683145b2daa0de0ed898b865824d (diff)
parent78d15acfb20269ce263ce19514a2c0e7a98409e2 (diff)
downloadframeworks_base-56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7.zip
frameworks_base-56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7.tar.gz
frameworks_base-56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7.tar.bz2
am 78d15acf: Merge "Make secure views tolerate IME overlays." into gingerbread
Merge commit '78d15acfb20269ce263ce19514a2c0e7a98409e2' into gingerbread-plus-aosp * commit '78d15acfb20269ce263ce19514a2c0e7a98409e2': Make secure views tolerate IME overlays.
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/InputDispatcher.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h
index cc16012..47c5326 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;
};
@@ -962,7 +969,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);