summaryrefslogtreecommitdiffstats
path: root/services/input/InputWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/input/InputWindow.h')
-rw-r--r--services/input/InputWindow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/input/InputWindow.h b/services/input/InputWindow.h
index 9c43067..72f1773 100644
--- a/services/input/InputWindow.h
+++ b/services/input/InputWindow.h
@@ -131,6 +131,7 @@ struct InputWindow {
int32_t frameTop;
int32_t frameRight;
int32_t frameBottom;
+ float scaleFactor;
SkRegion touchableRegion;
bool visible;
bool canReceiveKeys;
@@ -144,6 +145,11 @@ struct InputWindow {
bool touchableRegionContainsPoint(int32_t x, int32_t y) const;
bool frameContainsPoint(int32_t x, int32_t y) const;
+ /* These use the globalScale to convert a given screen offset to the
+ * corresponding location within the window.
+ */
+ int32_t displayToWindowX(int32_t x) 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