mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1046101 part.23 Rename NS_CLIPBOARD_EVENT to eClipboardEventClass r=smaug
This commit is contained in:
parent
1db16ad1d5
commit
274dc61dc9
@ -171,7 +171,7 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(Event)
|
||||
dragEvent->relatedTarget = nullptr;
|
||||
break;
|
||||
}
|
||||
case NS_CLIPBOARD_EVENT:
|
||||
case eClipboardEventClass:
|
||||
tmp->mEvent->AsClipboardEvent()->clipboardData = nullptr;
|
||||
break;
|
||||
case NS_MUTATION_EVENT:
|
||||
@ -212,7 +212,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(Event)
|
||||
cb.NoteXPCOMChild(dragEvent->relatedTarget);
|
||||
break;
|
||||
}
|
||||
case NS_CLIPBOARD_EVENT:
|
||||
case eClipboardEventClass:
|
||||
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(cb, "mEvent->clipboardData");
|
||||
cb.NoteXPCOMChild(tmp->mEvent->AsClipboardEvent()->clipboardData);
|
||||
break;
|
||||
|
@ -723,7 +723,7 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
|
||||
case eTextEventClass:
|
||||
return NS_NewDOMUIEvent(aDOMEvent, aOwner, aPresContext,
|
||||
aEvent->AsTextEvent());
|
||||
case NS_CLIPBOARD_EVENT:
|
||||
case eClipboardEventClass:
|
||||
return NS_NewDOMClipboardEvent(aDOMEvent, aOwner, aPresContext,
|
||||
aEvent->AsClipboardEvent());
|
||||
case NS_SVGZOOM_EVENT:
|
||||
|
@ -407,15 +407,15 @@ EVENT(wheel,
|
||||
EVENT(copy,
|
||||
NS_COPY,
|
||||
EventNameType_HTMLXUL,
|
||||
NS_CLIPBOARD_EVENT)
|
||||
eClipboardEventClass)
|
||||
EVENT(cut,
|
||||
NS_CUT,
|
||||
EventNameType_HTMLXUL,
|
||||
NS_CLIPBOARD_EVENT)
|
||||
eClipboardEventClass)
|
||||
EVENT(paste,
|
||||
NS_PASTE,
|
||||
EventNameType_HTMLXUL,
|
||||
NS_CLIPBOARD_EVENT)
|
||||
eClipboardEventClass)
|
||||
// Gecko-specific extensions that apply to elements
|
||||
EVENT(beforescriptexecute,
|
||||
NS_BEFORE_SCRIPT_EXECUTE,
|
||||
|
@ -56,7 +56,7 @@ enum EventClassID MOZ_ENUM_TYPE(EventClassIDType)
|
||||
eScrollAreaEventClass, // InternalScrollAreaEvent
|
||||
eFormEventClass, // InternalFormEvent
|
||||
eFocusEventClass, // InternalFocusEvent
|
||||
NS_CLIPBOARD_EVENT, // InternalClipboardEvent
|
||||
eClipboardEventClass, // InternalClipboardEvent
|
||||
NS_TRANSITION_EVENT, // InternalTransitionEvent
|
||||
NS_ANIMATION_EVENT, // InternalAnimationEvent
|
||||
NS_SVGZOOM_EVENT, // InternalSVGZoomEvent
|
||||
|
@ -159,14 +159,14 @@ public:
|
||||
return this;
|
||||
}
|
||||
|
||||
InternalClipboardEvent(bool aIsTrusted, uint32_t aMessage) :
|
||||
WidgetEvent(aIsTrusted, aMessage, NS_CLIPBOARD_EVENT)
|
||||
InternalClipboardEvent(bool aIsTrusted, uint32_t aMessage)
|
||||
: WidgetEvent(aIsTrusted, aMessage, eClipboardEventClass)
|
||||
{
|
||||
}
|
||||
|
||||
virtual WidgetEvent* Duplicate() const MOZ_OVERRIDE
|
||||
{
|
||||
MOZ_ASSERT(mClass == NS_CLIPBOARD_EVENT,
|
||||
MOZ_ASSERT(mClass == eClipboardEventClass,
|
||||
"Duplicate() must be overridden by sub class");
|
||||
InternalClipboardEvent* result = new InternalClipboardEvent(false, message);
|
||||
result->AssignClipboardEventData(*this, true);
|
||||
|
Loading…
Reference in New Issue
Block a user