diff options
Diffstat (limited to 'widget/InputData.cpp')
-rw-r--r-- | widget/InputData.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/widget/InputData.cpp b/widget/InputData.cpp index 3d1695dd8e..8f06a51c1c 100644 --- a/widget/InputData.cpp +++ b/widget/InputData.cpp @@ -303,6 +303,9 @@ MouseInput::MouseInput(const WidgetMouseEventBase& aMouseEvent) case eMouseHitTest: mType = MOUSE_HITTEST; break; + case eContextMenu: + mType = MOUSE_CONTEXTMENU; + break; default: MOZ_ASSERT_UNREACHABLE("Mouse event type not supported"); break; @@ -364,6 +367,9 @@ WidgetMouseEvent MouseInput::ToWidgetEvent(nsIWidget* aWidget) const { case MOUSE_HITTEST: msg = eMouseHitTest; break; + case MOUSE_CONTEXTMENU: + msg = eContextMenu; + break; default: MOZ_ASSERT_UNREACHABLE( "Did not assign a type to WidgetMouseEvent in MouseInput"); |