Bug 1046101 part.30 Rename NS_PLUGIN_COMMAND_EVENT to ePluginEventClass r=smaug

This commit is contained in:
Masayuki Nakano 2014-08-04 14:28:57 +09:00
parent 3468c847e3
commit dbb2618438
3 changed files with 6 additions and 6 deletions

View File

@ -65,7 +65,7 @@ enum EventClassID MOZ_ENUM_TYPE(EventClassIDType)
// MiscEvents.h
eCommandEventClass, // WidgetCommandEvent
eContentCommandEventClass, // WidgetContentCommandEvent
NS_PLUGIN_EVENT, // WidgetPluginEvent
ePluginEventClass, // WidgetPluginEvent
// InternalMutationEvent.h (dom/events)
NS_MUTATION_EVENT // InternalMutationEvent

View File

@ -145,9 +145,9 @@ class WidgetPluginEvent : public WidgetGUIEvent
public:
virtual WidgetPluginEvent* AsPluginEvent() MOZ_OVERRIDE { return this; }
WidgetPluginEvent(bool aIsTrusted, uint32_t aMessage, nsIWidget* aWidget) :
WidgetGUIEvent(aIsTrusted, aMessage, aWidget, NS_PLUGIN_EVENT),
retargetToFocusedDocument(false)
WidgetPluginEvent(bool aIsTrusted, uint32_t aMessage, nsIWidget* aWidget)
: WidgetGUIEvent(aIsTrusted, aMessage, aWidget, ePluginEventClass)
, retargetToFocusedDocument(false)
{
}
@ -155,7 +155,7 @@ public:
{
// NOTE: PluginEvent has to be dispatched to nsIFrame::HandleEvent().
// So, this event needs to support Duplicate().
MOZ_ASSERT(mClass == NS_PLUGIN_EVENT,
MOZ_ASSERT(mClass == ePluginEventClass,
"Duplicate() must be overridden by sub class");
// Not copying widget, it is a weak reference.
WidgetPluginEvent* result = new WidgetPluginEvent(false, message, nullptr);

View File

@ -64,7 +64,7 @@ WidgetEvent::IsContentCommandEvent() const
bool
WidgetEvent::IsNativeEventDelivererForPlugin() const
{
return mClass == NS_PLUGIN_EVENT;
return mClass == ePluginEventClass;
}