Bug 1046101 part.4 Rename NS_UI_EVENT to eUIEventClass r=smaug

This commit is contained in:
Masayuki Nakano 2014-08-04 14:28:47 +09:00
parent f34a1f1968
commit 1082b45ab4
4 changed files with 8 additions and 8 deletions

View File

@ -690,7 +690,7 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
aEvent->AsMutationEvent());
case eGUIEventClass:
case NS_SCROLLPORT_EVENT:
case NS_UI_EVENT:
case eUIEventClass:
return NS_NewDOMUIEvent(aDOMEvent, aOwner, aPresContext,
aEvent->AsGUIEvent());
case NS_SCROLLAREA_EVENT:

View File

@ -606,15 +606,15 @@ NON_IDL_EVENT(DOMSubtreeModified,
NON_IDL_EVENT(DOMActivate,
NS_UI_ACTIVATE,
EventNameType_HTMLXUL,
NS_UI_EVENT)
eUIEventClass)
NON_IDL_EVENT(DOMFocusIn,
NS_UI_FOCUSIN,
EventNameType_HTMLXUL,
NS_UI_EVENT)
eUIEventClass)
NON_IDL_EVENT(DOMFocusOut,
NS_UI_FOCUSOUT,
EventNameType_HTMLXUL,
NS_UI_EVENT)
eUIEventClass)
NON_IDL_EVENT(DOMMouseScroll,
NS_MOUSE_SCROLL,

View File

@ -47,7 +47,7 @@ UIEvent::UIEvent(EventTarget* aOwner,
// Fill mDetail and mView according to the mEvent (widget-generated
// event) we've got
switch(mEvent->mClass) {
case NS_UI_EVENT:
case eUIEventClass:
{
mDetail = mEvent->AsUIEvent()->detail;
break;

View File

@ -29,7 +29,7 @@ enum EventClassID MOZ_ENUM_TYPE(EventClassIDType)
NS_EVENT, // WidgetEvent
eGUIEventClass, // WidgetGUIEvent
eInputEventClass, // WidgetInputEvent
NS_UI_EVENT, // InternalUIEvent
eUIEventClass, // InternalUIEvent
// TextEvents.h
NS_KEY_EVENT, // WidgetKeyboardEvent
@ -1171,14 +1171,14 @@ public:
virtual InternalUIEvent* AsUIEvent() MOZ_OVERRIDE { return this; }
InternalUIEvent(bool aIsTrusted, uint32_t aMessage)
: WidgetGUIEvent(aIsTrusted, aMessage, nullptr, NS_UI_EVENT)
: WidgetGUIEvent(aIsTrusted, aMessage, nullptr, eUIEventClass)
, detail(0)
{
}
virtual WidgetEvent* Duplicate() const MOZ_OVERRIDE
{
MOZ_ASSERT(mClass == NS_UI_EVENT,
MOZ_ASSERT(mClass == eUIEventClass,
"Duplicate() must be overridden by sub class");
InternalUIEvent* result = new InternalUIEvent(false, message);
result->AssignUIEventData(*this, true);