summaryrefslogtreecommitdiffstats
path: root/libs/input/InputWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/input/InputWindow.h')
-rw-r--r--libs/input/InputWindow.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/input/InputWindow.h b/libs/input/InputWindow.h
index 28fa7ab..9618ffe 100644
--- a/libs/input/InputWindow.h
+++ b/libs/input/InputWindow.h
@@ -19,16 +19,17 @@
#include <input/Input.h>
#include <input/InputTransport.h>
+#include <ui/Rect.h>
+#include <ui/Region.h>
#include <utils/RefBase.h>
#include <utils/Timers.h>
#include <utils/String8.h>
-#include <SkRegion.h>
-
#include "InputApplication.h"
namespace android {
+
/*
* Describes the properties of a window that can receive input.
*/
@@ -125,7 +126,7 @@ struct InputWindowInfo {
int32_t frameRight;
int32_t frameBottom;
float scaleFactor;
- SkRegion touchableRegion;
+ Region touchableRegion;
bool visible;
bool canReceiveKeys;
bool hasFocus;
@@ -137,6 +138,8 @@ struct InputWindowInfo {
int32_t inputFeatures;
int32_t displayId;
+ void addTouchableRegion(const Rect& region);
+
bool touchableRegionContainsPoint(int32_t x, int32_t y) const;
bool frameContainsPoint(int32_t x, int32_t y) const;