Loading
Bug 1691622 - part 9: Make `nsIWidget::SynthesizeNativeMouseEvent` take an XP...
Bug 1691622 - part 9: Make `nsIWidget::SynthesizeNativeMouseEvent` take an XP button ID and abstract message value r=smaug,geckoview-reviewers,agi,m_kato 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