summaryrefslogtreecommitdiffstats
path: root/dom/events/EventStateManager.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-04 23:15:50 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-04 23:15:50 +0100
commit80f9b75efa08ea449937298b791ff278cbf5fa22 (patch)
tree24175cc50098581dd604d32d84fe27249931792f /dom/events/EventStateManager.h
parent3ef4f63ec257cf90ad4bf8695a1e4e291f811af2 (diff)
downloadUXP-80f9b75efa08ea449937298b791ff278cbf5fa22.tar
UXP-80f9b75efa08ea449937298b791ff278cbf5fa22.tar.gz
UXP-80f9b75efa08ea449937298b791ff278cbf5fa22.tar.lz
UXP-80f9b75efa08ea449937298b791ff278cbf5fa22.tar.xz
UXP-80f9b75efa08ea449937298b791ff278cbf5fa22.zip
Implement auxclick
Bug(s): https://bugzilla.mozilla.org/show_bug.cgi?id=1304044 (native in moebius)
Diffstat (limited to 'dom/events/EventStateManager.h')
-rw-r--r--dom/events/EventStateManager.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/dom/events/EventStateManager.h b/dom/events/EventStateManager.h
index 49ecf0586..d0461e7fa 100644
--- a/dom/events/EventStateManager.h
+++ b/dom/events/EventStateManager.h
@@ -415,6 +415,13 @@ protected:
*/
void UpdateDragDataTransfer(WidgetDragEvent* dragEvent);
+ static nsresult InitAndDispatchClickEvent(WidgetMouseEvent* aEvent,
+ nsEventStatus* aStatus,
+ EventMessage aMessage,
+ nsIPresShell* aPresShell,
+ nsIContent* aMouseTarget,
+ nsWeakFrame aCurrentTarget,
+ bool aNoContentDispatch);
nsresult SetClickCount(WidgetMouseEvent* aEvent, nsEventStatus* aStatus);
nsresult CheckForAndDispatchClick(WidgetMouseEvent* aEvent,
nsEventStatus* aStatus);
@@ -1046,6 +1053,7 @@ private:
#define NS_EVENT_NEEDS_FRAME(event) \
(!(event)->HasPluginActivationEventMessage() && \
(event)->mMessage != eMouseClick && \
- (event)->mMessage != eMouseDoubleClick)
+ (event)->mMessage != eMouseDoubleClick && \
+ (event)->mMessage != eMouseAuxClick)
#endif // mozilla_EventStateManager_h_