summaryrefslogtreecommitdiffstats
path: root/layout/base/nsPresShell.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-26 14:13:32 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-26 14:13:32 +0200
commit3424afccaebc71c4acd4fa9eadf519c408c5965b (patch)
treeb9c79b7f13f0fac5ad645c07e77892596cfb122a /layout/base/nsPresShell.h
parentace7f20fa76c0a1594ab80d3a07fda92a7edea67 (diff)
downloadUXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.tar
UXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.tar.gz
UXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.tar.lz
UXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.tar.xz
UXP-3424afccaebc71c4acd4fa9eadf519c408c5965b.zip
Capture delayed events and cancel as necessary.
Tag #1052
Diffstat (limited to 'layout/base/nsPresShell.h')
-rw-r--r--layout/base/nsPresShell.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/layout/base/nsPresShell.h b/layout/base/nsPresShell.h
index 7a9056a38..1a8dd3fef 100644
--- a/layout/base/nsPresShell.h
+++ b/layout/base/nsPresShell.h
@@ -617,6 +617,7 @@ protected:
public:
virtual ~DelayedEvent() { }
virtual void Dispatch() { }
+ virtual bool IsKeyPressEvent() { return false; }
};
class DelayedInputEvent : public DelayedEvent
@@ -641,6 +642,7 @@ protected:
{
public:
explicit DelayedKeyEvent(mozilla::WidgetKeyboardEvent* aEvent);
+ virtual bool IsKeyPressEvent() override;
};
// Check if aEvent is a mouse event and record the mouse location for later
@@ -951,6 +953,8 @@ protected:
// Whether the widget has received a paint message yet.
bool mHasReceivedPaintMessage : 1;
+ bool mIsLastKeyDownCanceled : 1;
+
static bool sDisableNonTestMouseEvents;
};