mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 979692 - Extend MouseEvent interface. r=bz
This commit is contained in:
parent
8c754fd2c7
commit
1e437be22f
@ -295,6 +295,12 @@ MouseEvent::GetRelatedTarget()
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
MouseEvent::GetRegion(nsAString& aRegion)
|
||||
{
|
||||
SetDOMStringToNull(aRegion);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
MouseEvent::GetMozMovementX(int32_t* aMovementX)
|
||||
{
|
||||
|
@ -52,6 +52,7 @@ public:
|
||||
int16_t Button();
|
||||
uint16_t Buttons();
|
||||
already_AddRefed<EventTarget> GetRelatedTarget();
|
||||
void GetRegion(nsAString& aRegion);
|
||||
void InitMouseEvent(const nsAString& aType, bool aCanBubble, bool aCancelable,
|
||||
nsIDOMWindow* aView, int32_t aDetail, int32_t aScreenX,
|
||||
int32_t aScreenY, int32_t aClientX, int32_t aClientY,
|
||||
|
@ -22,6 +22,7 @@ interface MouseEvent : UIEvent {
|
||||
readonly attribute short button;
|
||||
readonly attribute unsigned short buttons;
|
||||
readonly attribute EventTarget? relatedTarget;
|
||||
readonly attribute DOMString? region;
|
||||
// Deprecated in DOM Level 3:
|
||||
[Throws]
|
||||
void initMouseEvent(DOMString typeArg,
|
||||
|
Loading…
Reference in New Issue
Block a user