diff options
author | Moonchild <moonchild@palemoon.org> | 2022-09-08 16:50:40 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-09-08 16:50:40 +0000 |
commit | 00c5c3e7c2ed8b627fe1af2496945b583ea8d29a (patch) | |
tree | db89a071c364318fa6c2007917715623d8d5fdec /gfx/layers/apz/public/IAPZCTreeManager.h | |
parent | b8cebb4993a27b3aaaa08550c6ae4f20cdca8819 (diff) | |
download | uxp-00c5c3e7c2ed8b627fe1af2496945b583ea8d29a.tar.gz |
Re-unify most of gfxre-unify
Diffstat (limited to 'gfx/layers/apz/public/IAPZCTreeManager.h')
-rw-r--r-- | gfx/layers/apz/public/IAPZCTreeManager.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gfx/layers/apz/public/IAPZCTreeManager.h b/gfx/layers/apz/public/IAPZCTreeManager.h index f3cc37a716..2bd50fb986 100644 --- a/gfx/layers/apz/public/IAPZCTreeManager.h +++ b/gfx/layers/apz/public/IAPZCTreeManager.h @@ -11,6 +11,7 @@ #include "FrameMetrics.h" // for FrameMetrics, etc #include "mozilla/EventForwards.h" // for WidgetInputEvent, nsEventStatus #include "mozilla/layers/APZUtils.h" // for HitTestResult +#include "mozilla/MouseEvents.h" // for WidgetMouseEvent #include "nsTArrayForwardDeclare.h" // for nsTArray, nsTArray_Impl, etc #include "nsISupportsImpl.h" // for MOZ_COUNT_CTOR, etc #include "Units.h" // for CSSPoint, CSSRect, etc @@ -38,6 +39,15 @@ enum ZoomToRectBehavior : uint32_t { class AsyncDragMetrics; +static bool +WillHandleMouseEvent(const WidgetMouseEventBase& aEvent) +{ + return aEvent.mMessage == eMouseMove || + aEvent.mMessage == eMouseDown || + aEvent.mMessage == eMouseUp || + aEvent.mMessage == eDragEnd; +} + class IAPZCTreeManager { NS_INLINE_DECL_THREADSAFE_VIRTUAL_REFCOUNTING(IAPZCTreeManager) |