mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00

Currently, it takes a raw native message value, but it makes JS content too complicated. And on Linux, it cannot synthesize non-primary button events because GDK has only button press and release messages which dont' include mouse button information. For solving these problems, this patch creates a new abstract native message as `nsIWidget::NativeMouseMessage` and makes each widget converts it to a platform native message. Additionally, this patch adds an argument to make it possible its callers to specify pressing or releasing mouse button with a DOM mouse button value. Note that the following patch adds new argument to `synthesizeNativeEventMouse*` for mochitests and which will be tested by new tests. Differential Revision: https://phabricator.services.mozilla.com/D105763