Bug 979692 - Extend MouseEvent interface. r=bz

This commit is contained in:
Rik Cabanier 2014-04-26 18:32:00 -04:00
parent f65d94f073
commit ec972af3a6
3 changed files with 8 additions and 0 deletions

View File

@ -295,6 +295,12 @@ MouseEvent::GetRelatedTarget()
return nullptr;
}
void
MouseEvent::GetRegion(nsAString& aRegion)
{
SetDOMStringToNull(aRegion);
}
NS_IMETHODIMP
MouseEvent::GetMozMovementX(int32_t* aMovementX)
{

View File

@ -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,

View File

@ -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,