зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1046101 part.19 Rename NS_SCROLLPORT_EVENT to eScrollPortEventClass r=smaug
This commit is contained in:
Родитель
fbbc8bd11e
Коммит
7b6186eb7e
|
@ -689,7 +689,7 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
|
|||
return NS_NewDOMMutationEvent(aDOMEvent, aOwner, aPresContext,
|
||||
aEvent->AsMutationEvent());
|
||||
case eGUIEventClass:
|
||||
case NS_SCROLLPORT_EVENT:
|
||||
case eScrollPortEventClass:
|
||||
case eUIEventClass:
|
||||
return NS_NewDOMUIEvent(aDOMEvent, aOwner, aPresContext,
|
||||
aEvent->AsGUIEvent());
|
||||
|
|
|
@ -53,7 +53,7 @@ UIEvent::UIEvent(EventTarget* aOwner,
|
|||
break;
|
||||
}
|
||||
|
||||
case NS_SCROLLPORT_EVENT:
|
||||
case eScrollPortEventClass:
|
||||
{
|
||||
InternalScrollPortEvent* scrollEvent = mEvent->AsScrollPortEvent();
|
||||
mDetail = (int32_t)scrollEvent->orient;
|
||||
|
|
|
@ -52,7 +52,7 @@ enum EventClassID MOZ_ENUM_TYPE(EventClassIDType)
|
|||
eTouchEventClass, // WidgetTouchEvent
|
||||
|
||||
// ContentEvents.h
|
||||
NS_SCROLLPORT_EVENT, // InternalScrollPortEvent
|
||||
eScrollPortEventClass, // InternalScrollPortEvent
|
||||
NS_SCROLLAREA_EVENT, // InternalScrollAreaEvent
|
||||
NS_FORM_EVENT, // InternalFormEvent
|
||||
NS_FOCUS_EVENT, // InternalFocusEvent
|
||||
|
|
|
@ -39,15 +39,15 @@ public:
|
|||
};
|
||||
|
||||
InternalScrollPortEvent(bool aIsTrusted, uint32_t aMessage,
|
||||
nsIWidget* aWidget) :
|
||||
WidgetGUIEvent(aIsTrusted, aMessage, aWidget, NS_SCROLLPORT_EVENT),
|
||||
orient(vertical)
|
||||
nsIWidget* aWidget)
|
||||
: WidgetGUIEvent(aIsTrusted, aMessage, aWidget, eScrollPortEventClass)
|
||||
, orient(vertical)
|
||||
{
|
||||
}
|
||||
|
||||
virtual WidgetEvent* Duplicate() const MOZ_OVERRIDE
|
||||
{
|
||||
MOZ_ASSERT(mClass == NS_SCROLLPORT_EVENT,
|
||||
MOZ_ASSERT(mClass == eScrollPortEventClass,
|
||||
"Duplicate() must be overridden by sub class");
|
||||
// Not copying widget, it is a weak reference.
|
||||
InternalScrollPortEvent* result =
|
||||
|
|
Загрузка…
Ссылка в новой задаче