Bug 1259669 Rename WidgetCommandEvent::command to WidgetCommandEvent::mCommand r=masayuki

--HG--
extra : rebase_source : 75298d438e6c6c77113ba252c955bc084f216015
This commit is contained in:
Takahiro Aoyagi 2016-05-12 13:28:31 +09:00
parent a369570d88
commit 75f4ef756f
2 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ NS_IMPL_RELEASE_INHERITED(CommandEvent, Event)
NS_IMETHODIMP
CommandEvent::GetCommand(nsAString& aCommand)
{
nsIAtom* command = mEvent->AsCommandEvent()->command;
nsIAtom* command = mEvent->AsCommandEvent()->mCommand;
if (command) {
command->ToString(aCommand);
} else {
@ -53,7 +53,7 @@ CommandEvent::InitCommandEvent(const nsAString& aTypeArg,
{
Event::InitEvent(aTypeArg, aCanBubbleArg, aCancelableArg);
mEvent->AsCommandEvent()->command = NS_Atomize(aCommand);
mEvent->AsCommandEvent()->mCommand = NS_Atomize(aCommand);
return NS_OK;
}

View File

@ -110,7 +110,7 @@ public:
nsIAtom* aCommand, nsIWidget* aWidget)
: WidgetGUIEvent(aIsTrusted, eUnidentifiedEvent, aWidget,
eCommandEventClass)
, command(aCommand)
, mCommand(aCommand)
{
mSpecifiedEventType = aEventType;
}
@ -121,13 +121,13 @@ public:
"Duplicate() must be overridden by sub class");
// Not copying widget, it is a weak reference.
WidgetCommandEvent* result =
new WidgetCommandEvent(false, mSpecifiedEventType, command, nullptr);
new WidgetCommandEvent(false, mSpecifiedEventType, mCommand, nullptr);
result->AssignCommandEventData(*this, true);
result->mFlags = mFlags;
return result;
}
nsCOMPtr<nsIAtom> command;
nsCOMPtr<nsIAtom> mCommand;
// XXX Not tested by test_assign_event_data.html
void AssignCommandEventData(const WidgetCommandEvent& aEvent,
@ -135,7 +135,7 @@ public:
{
AssignGUIEventData(aEvent, aCopyTargets);
// command must have been initialized with the constructor.
// mCommand must have been initialized with the constructor.
}
};