mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1046101 part.30 Rename NS_PLUGIN_COMMAND_EVENT to ePluginEventClass r=smaug
This commit is contained in:
parent
3468c847e3
commit
dbb2618438
@ -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
|
||||
|
@ -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);
|
||||
|
@ -64,7 +64,7 @@ WidgetEvent::IsContentCommandEvent() const
|
||||
bool
|
||||
WidgetEvent::IsNativeEventDelivererForPlugin() const
|
||||
{
|
||||
return mClass == NS_PLUGIN_EVENT;
|
||||
return mClass == ePluginEventClass;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user