summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputReader.h
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2018-11-30 01:49:43 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-11-30 01:49:43 +0000
commitbd63715a39f577107a23d9068d6b71a3ea0e1c62 (patch)
tree42c9410838f44e9d098147f236f2d2a5c455f360 /services/inputflinger/InputReader.h
parent1d9bcec52aec326fda0cb545feeb44f982ed8637 (diff)
parent8158e7e33a95732b9963909b9fb471678ff8b7d4 (diff)
Merge "Add physical port to display viewport"
Diffstat (limited to 'services/inputflinger/InputReader.h')
-rw-r--r--services/inputflinger/InputReader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/inputflinger/InputReader.h b/services/inputflinger/InputReader.h
index 1786fe8f26..13f1bedb65 100644
--- a/services/inputflinger/InputReader.h
+++ b/services/inputflinger/InputReader.h
@@ -252,6 +252,9 @@ public:
inline bool isExternal() { return mIsExternal; }
inline void setExternal(bool external) { mIsExternal = external; }
+ inline std::optional<uint8_t> getAssociatedDisplayPort() const {
+ return mAssociatedDisplayPort;
+ }
inline void setMic(bool hasMic) { mHasMic = hasMic; }
inline bool hasMic() const { return mHasMic; }
@@ -324,6 +327,7 @@ private:
uint32_t mSources;
bool mIsExternal;
+ std::optional<uint8_t> mAssociatedDisplayPort;
bool mHasMic;
bool mDropUntilNextSync;
@@ -1501,6 +1505,8 @@ private:
VelocityControl mWheelXVelocityControl;
VelocityControl mWheelYVelocityControl;
+ std::optional<DisplayViewport> findViewport();
+
void resetExternalStylus();
void clearStylusDataPendingFlags();