mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 1046101 part.4 Rename NS_UI_EVENT to eUIEventClass r=smaug
This commit is contained in:
parent
f34a1f1968
commit
1082b45ab4
@ -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:
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user