Bug 1046101 part.23 Rename NS_CLIPBOARD_EVENT to eClipboardEventClass r=smaug

This commit is contained in:
Masayuki Nakano 2014-08-04 14:28:55 +09:00
parent 2949e98f35
commit 53aa82be8c
5 changed files with 10 additions and 10 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -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);