Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1046101 part.19 Rename NS_SCROLLPORT_EVENT to eScrollPortEventCla…
Browse files Browse the repository at this point in the history
…ss r=smaug
  • Loading branch information
masayuki-nakano committed Aug 4, 2014
1 parent 4416f10 commit aa98f87
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dom/events/EventDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion dom/events/UIEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ UIEvent::UIEvent(EventTarget* aOwner,
break;
}

case NS_SCROLLPORT_EVENT:
case eScrollPortEventClass:
{
InternalScrollPortEvent* scrollEvent = mEvent->AsScrollPortEvent();
mDetail = (int32_t)scrollEvent->orient;
Expand Down
2 changes: 1 addition & 1 deletion widget/BasicEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions widget/ContentEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ class InternalScrollPortEvent : public WidgetGUIEvent
};

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 =
Expand Down

0 comments on commit aa98f87

Please sign in to comment.